// Azure Storage JavaScript Client Library 2.10.102 // Copyright (c) Microsoft and contributors. All rights reserved. /* eslint-disable */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).AzureStorage||(t.AzureStorage={})).Queue=e()}}(function(){var define,module,exports;return function o(s,a,u){function c(t,e){if(!a[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(f)return f(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=a[t]={exports:{}};s[t][0].call(i.exports,function(e){return c(s[t][1][e]||e)},i,i.exports,o,s,a,u)}return a[t].exports}for(var f="function"==typeof require&&require,e=0;e 0.9.0 and < 0.10.3. Please upgrade to node >= 0.10.3");r.xmlbuilder=e("xmlbuilder"),r.xml2js=e("xml2js"),r.Logger=e("./diagnostics/logger"),r.WebResource=e("./http/webresource"),r.StorageServiceClient=e("./services/storageserviceclient"),r.ServicePropertiesResult=e("./models/servicepropertiesresult"),r.ServiceStatsParser=e("./models/servicestatsparser"),r.AclResult=e("./models/aclresult"),r.TokenCredential=e("./models/tokencredential"),r.LinearRetryPolicyFilter=e("./filters/linearretrypolicyfilter"),r.ExponentialRetryPolicyFilter=e("./filters/exponentialretrypolicyfilter"),r.RetryPolicyFilter=e("./filters/retrypolicyfilter"),r.SharedAccessSignature=e("./signing/sharedaccesssignature"),r.SharedKey=e("./signing/sharedkey"),r.BatchOperation=e("./streams/batchoperation"),r.ChunkAllocator=e("./streams/chunkallocator"),r.ChunkStream=e("./streams/chunkstream"),r.ChunkStreamWithStream=e("./streams/chunkstreamwithstream"),r.SpeedSummary=e("./streams/speedsummary"),r.BufferStream=e("./streams/bufferstream"),r.Constants=e("./util/constants"),r.SR=e("./util/sr"),r.date=e("./util/date"),r.ISO8061Date=e("./util/iso8061date"),r.util=e("./util/util"),r.validate=e("./util/validate"),r.StorageUtilities=e("./util/storageutilities"),r.AccessCondition=e("./util/accesscondition")},{"./diagnostics/logger":4,"./filters/exponentialretrypolicyfilter":6,"./filters/linearretrypolicyfilter":7,"./filters/retrypolicyfilter":8,"./http/webresource":9,"./models/aclresult":11,"./models/servicepropertiesresult":12,"./models/servicestatsparser":13,"./models/tokencredential":14,"./services/storageserviceclient":17,"./signing/sharedaccesssignature":20,"./signing/sharedkey":21,"./streams/batchoperation":23,"./streams/bufferstream":25,"./streams/chunkallocator":26,"./streams/chunkstream":27,"./streams/chunkstreamwithstream":28,"./streams/speedsummary":29,"./util/accesscondition":30,"./util/constants":31,"./util/date":32,"./util/iso8061date":33,"./util/patch-xmlbuilder":34,"./util/sr":35,"./util/storageutilities":36,"./util/util":37,"./util/validate":38,xml2js:306,xmlbuilder:328}],4:[function(e,t,r){function o(e,t){this.level=e,this.loggerFunction=t,this.loggerFunction||(this.loggerFunction=this.defaultLoggerFunction)}o.logPriority=[(o.LogLevels={EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warning",NOTICE:"notice",INFO:"info",DEBUG:"debug"}).EMERGENCY,o.LogLevels.ALERT,o.LogLevels.CRITICAL,o.LogLevels.ERROR,o.LogLevels.WARNING,o.LogLevels.NOTICE,o.LogLevels.INFO,o.LogLevels.DEBUG],o.prototype.log=function(e,t){this.loggerFunction(e,t)},o.prototype.emergency=function(e){this.log(o.LogLevels.EMERGENCY,e)},o.prototype.critical=function(e){this.log(o.LogLevels.CRITICAL,e)},o.prototype.alert=function(e){this.log(o.LogLevels.ALERT,e)},o.prototype.error=function(e){this.log(o.LogLevels.ERROR,e)},o.prototype.warn=function(e){this.log(o.LogLevels.WARNING,e)},o.prototype.notice=function(e){this.log(o.LogLevels.NOTICE,e)},o.prototype.info=function(e){this.log(o.LogLevels.INFO,e)},o.prototype.debug=function(e){this.log(o.LogLevels.DEBUG,e)},o.prototype.defaultLoggerFunction=function(e,t){var r=o.logPriority.indexOf(this.level),n=o.logPriority.indexOf(e),i=(new Date).toISOString();n<=r&&console.log("["+i+"]"+this.level+" : "+t)},t.exports=o},{}],5:[function(e,t,r){var n=e("util"),i=e("underscore");function o(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e,t){o(this,this.constructor),this.name=this.constructor.name,this.argumentName=e,this.message=t||n.format("Invalid or missing argument supplied: %s",e)}function a(e,t){o(this,this.constructor),this.name=this.constructor.name,this.argumentName=e,this.message=t||n.format("Missing argument: %s",e)}function u(e,t){o(this,this.constructor),this.name=this.constructor.name,this.message=e,t&&i.extend(this,t)}function c(e){o(this,this.constructor),this.name=this.constructor.name,this.message=e}n.inherits(s,Error),n.inherits(a,Error),n.inherits(u,Error),n.inherits(c,Error),t.exports.ArgumentError=s,t.exports.ArgumentNullError=a,t.exports.StorageError=u,t.exports.TimeoutError=c,t.exports.captureStackTrace=o},{underscore:223,util:228}],6:[function(e,t,r){"use strict";var i=e("./retrypolicyfilter");function o(e,t,r,n){this.retryCount=e||o.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||o.DEFAULT_CLIENT_RETRY_INTERVAL,this.minRetryInterval=r||o.DEFAULT_CLIENT_MIN_RETRY_INTERVAL,this.maxRetryInterval=n||o.DEFAULT_CLIENT_MAX_RETRY_INTERVAL}o.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,o.DEFAULT_CLIENT_RETRY_COUNT=3,o.DEFAULT_CLIENT_MAX_RETRY_INTERVAL=9e4,o.DEFAULT_CLIENT_MIN_RETRY_INTERVAL=3e3,o.prototype.shouldRetry=function(e,t){var r=t&&t.retryContext?t.retryContext:{},n=Math.pow(2,r.retryCount)-1;return n*=.8*this.retryInterval+Math.floor(Math.random()*(1.2*this.retryInterval-.8*this.retryInterval)),r.retryInterval=Math.min(this.minRetryInterval+n,this.maxRetryInterval),i._shouldRetryOnError(e,t)},o.prototype.handle=function(e,t){i._handle(this,e,t)},t.exports=o},{"./retrypolicyfilter":8}],7:[function(e,t,r){"use strict";var n=e("./retrypolicyfilter");function i(e,t){this.retryCount=e||i.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||i.DEFAULT_CLIENT_RETRY_INTERVAL}i.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,i.DEFAULT_CLIENT_RETRY_COUNT=3,i.prototype.shouldRetry=function(e,t){return(t&&t.retryContext?t.retryContext:{}).retryInterval=this.retryInterval,n._shouldRetryOnError(e,t)},i.prototype.handle=function(e,t){n._handle(this,e,t)},t.exports=i},{"./retrypolicyfilter":8}],8:[function(e,t,r){var d=e("../util/util"),p=e("../util/constants"),b=e("../util/storageutilities"),n=e("util")._extend;function i(e,t){this.retryCount=e||i.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||i.DEFAULT_CLIENT_RETRY_INTERVAL}i.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,i.DEFAULT_CLIENT_RETRY_COUNT=3,i.prototype.handle=function(e,t){i._handle(this,e,t)},i._handle=function(u,e,t){var c,f,l=n({},e);l.retryInterval=0,l.retryContext={retryCount:0,error:null,retryInterval:l.retryInterval,locationMode:l.locationMode,currentLocation:l.currentLocation};var h=function(){t&&t(l,function(e,t,r){e.error&&(l.retryContext.error&&(e.error.innerError=l.retryContext.error),l.retryContext.error=e.error);var n=l.currentLocation===p.StorageLocation.SECONDARY&&(e.response&&404===e.response.statusCode||e.error&&"ENOTFOUND"===e.error.code),i=!l.retryContext.retryCount||l.retryContext.retryCount<=u.retryCount,o=u.shouldRetry(n?500:d.objectIsNull(e.response)?306:e.response.statusCode,l);if(l.retryContext.retryCount++,o.ignore&&(e.error=null),d.objectIsNull(o.targetLocation)&&(o.targetLocation=d.getNextLocation(l.currentLocation,l.locationMode)),d.objectIsNull(o.retryInterval)&&(o.retryInterval=u.retryInterval),!e.outputStreamSent&&e.error&&d.objectIsNull(e.retryable)&&i&&(!d.objectIsNull(e.response)&&o.retryable||"ECONNREFUSED"===e.error.code||"ETIMEDOUT"===e.error.code||"ESOCKETTIMEDOUT"===e.error.code||"ECONNRESET"===e.error.code||"EAI_AGAIN"===e.error.code||"XHR error"===e.error.message)){l.currentLocation===p.StorageLocation.PRIMARY?c=e.operationEndTime:f=e.operationEndTime,n&&l.locationMode!==b.LocationMode.SECONDARY_ONLY&&(o.locationMode=b.LocationMode.PRIMARY_ONLY,o.targetLocation=p.StorageLocation.PRIMARY);var s=o.targetLocation===p.StorageLocation.PRIMARY?c:f;if(d.objectIsNull(s))l.retryInterval=0;else{var a=(new Date).getTime()-s.getTime();a<0&&(a=0),l.retryInterval=o.retryInterval-a}d.objectIsNull(o.locationMode)||(l.locationMode=o.locationMode),l.currentLocation=o.targetLocation,h()}else r?r(e):t&&t(e)})};h()},i._shouldRetryOnError=function(e,t){var r=t&&t.retryContext?t.retryContext:{};if(300<=e&&408!=e){if(501==e||505==e)return r.retryable=!1,r;t&&t.absorbConditionalErrorsOnRetry?412==e?r.lastServerError?(r.ignore=!0,r.retryable=!0):r.retryable=!1:r.retryable&&500<=e&&e<600&&(r.retryable=!0,r.lastServerError=!0):e<500&&(r.retryable=!1)}return r},t.exports=i},{"../util/constants":31,"../util/storageutilities":36,"../util/util":37,util:228}],9:[function(e,t,r){var a=e("../util/util"),u=e("../util/sr"),n=e("../util/constants"),c=e("../errors/errors").ArgumentError,f=n.HeaderConstants,i=n.HttpConstants,o=(i=n.HttpConstants).HttpVerbs;function s(e){return e.replace(/'/g,"%27")}function l(){this.rawResponse=!1,this.queryString={}}l.put=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.PUT,t},l.get=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.GET,t},l.head=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.HEAD,t},l.del=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.DELETE,t},l.post=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.POST,t},l.merge=function(e){var t=new l;return t.path=e?s(e):null,t.method=i.HttpVerbs.MERGE,t},l.prototype.withProperty=function(e,t){return this.properties||(this.properties={}),this.properties[e]=t,this},l.prototype.withRawResponse=function(e){return this.rawResponse=e,a.objectIsNull(this.rawResponse)&&(this.rawResponse=!0),this},l.prototype.withHeadersOnly=function(e){return this.headersOnly=void 0===e||e,this},l.prototype.withQueryOption=function(e,t,r){return a.objectIsNull(t)?r&&(this.queryString[e]=r):this.queryString[e]=t,this},l.prototype.withQueryOptions=function(e){if(e)for(var t=1;t=e*this.concurrency||this._isLowMemory()},y.prototype._getApproximateMemoryUsage=function(){return(s.isBrowser()?d:e.memoryUsage().rss)+this._queuedOperation*this.operationMemoryUsage},y.prototype._isLowMemory=function(){var e=this._getApproximateMemoryUsage();return i.freemem()=this.concurrency&&.5*pt.operationId)throw new Error("Debug error: current callback operation id cannot be larger than operation id");r.logger.debug(o.format("Operation %d is waiting for firing callback %s",t.operationId,r._currentOperationId))}else r._fireOperationUserCallback(t);r._tryEmitDrainEvent(),r=t=null}},y.prototype._fireOperationUserCallback=function(e){var t=this._getCallbackOperationIndex();e||-1==t||(e=this._operations[t]),e&&!this._paused?(e._userCallback&&(this.logger.debug(o.format("Fire user call back for operation %d",e.operationId)),e._fireUserCallback()),this._operations.splice(t,1),this._activeOperation--,e.status=g.COMPLETE,t=e=null,this.callbackInOrder&&this._currentOperationId++,this._fireOperationUserCallback()):this._paused?this._tryEmitDrainEvent():this._tryEmitEndEvent()},y.prototype._tryEmitEndEvent=function(){return this._enableComplete&&0===this._activeOperation&&0===this._operations.length?(this._ended=!0,this.logger.debug(o.format("Batch operation %s emits the end event",this.name)),this._emitter.emit("end",this._error,null),!0):(this._tryEmitDrainEvent(),!1)},y.prototype._tryEmitDrainEvent=function(){return!!this._emitter&&((!this.IsWorkloadHeavy()||this._activeOperation=this._size)this.push(null);else{var e=this._offset+this._highWaterMark,t=this._file.slice(this._offset,e);this._fileReader.readAsArrayBuffer(t),this._offset=e}},t.exports=a},{"../util/constants":31,buffer:94,stream:204,util:228}],25:[function(e,t,r){var n=e("stream");function i(e,t){n.Readable.call(this,t),this._buffer=e,this._offset=0,this._chunkSize=4194304,this._bufferSize=e.length}e("util").inherits(i,n.Readable),i.prototype._read=function(){for(;this.push(this._readNextChunk()););},i.prototype._readNextChunk=function(){var e=null;if(this._offsetthis._bufferSize?this._bufferSize:t,e=this._buffer.slice(this._offset,t),this._offset=t}return e},t.exports=i},{stream:204,util:228}],26:[function(e,t,r){(function(i){function e(e,t){this._pool=[],this._inuse=0,this._chunkSize=e,this._maxCount=t||10,this._extendMemoryPool()}e.prototype.getBuffer=function(e){var t=this._getBufferFromPool(e);return null===t&&(t=i.alloc(e)),this._inuse++,t},e.prototype._getBufferFromPool=function(e){return e!==this._chunkSize?null:(0===this._pool.length&&this._extendMemoryPool(),0!==this._pool.length?this._pool.pop():null)},e.prototype._extendMemoryPool=function(){var e=this._pool.length+this._inuse;if(!(e>=this._maxCount))for(var t=(Math.min(2*e,this._maxCount)||1)-e,r=0;rthis._outputLengthLimit&&(e=e.slice(0,e.length-(this._offset-this._outputLengthLimit))),this._md5hash&&this._md5hash.update(e)):this._md5hash&&this._md5hash.update(e),this.emit("data",e,r)},o.prototype._copyToInternalBuffer=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length),this._buffer||(this._buffer=this._allocateNewBuffer(),this._internalBufferSize=0);var n=e.copy(this._buffer,this._internalBufferSize,t,r);if(this._internalBufferSize+=n,this._stream&&this._stream._allocator&&this._stream._allocator.releaseBuffer&&this._stream._allocator.releaseBuffer(e),n!=r-t)throw new Error("Can not copy entire data to buffer")},o.prototype._flushInternalBuffer=function(){var e=this._popInternalBuffer();e&&this._emitBufferData(e)},o.prototype._popInternalBuffer=function(){var e=null;return e=this._buffer&&0!==this._internalBufferSize?this._internalBufferSize==this._highWaterMark?this._buffer:this._buffer.slice(0,this._internalBufferSize):null,this._buffer=null,this._internalBufferSize=0,e},o.prototype._allocateNewBuffer=function(){var e=this._highWaterMark;return this._allocator&&r.objectIsFunction(this._allocator.getBuffer)?this._allocator.getBuffer(e):a.alloc(e)},o.prototype.getContentMd5=function(e){if(e||(e="base64"),this._md5hash){if(this._streamEnded)return this._md5sum||(this._md5sum=this._md5hash.digest(e)),this._md5sum;throw new Error("Stream has not ended.")}throw new Error("Can't get content md5, please set the calcContentMd5 option for FileReadStream.")},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused&&(this._paused=!1,this.emit("drain"))},u.exports=o}).call(this,s("buffer").Buffer)},{"../md5-wrapper":10,"../util/constants":31,"../util/util":37,buffer:94,stream:204,util:228}],28:[function(e,t,r){var n=e("./chunkstream"),i=e("events").EventEmitter,o=e("util"),s=e("./../util/util");function a(e,t){n.call(this,t),e.pause(),this._stream=e,this._stream.on("end",this.end.bind(this))}o.inherits(a,n),a.prototype.on=function(e,t){return"end"===e&&this._streamEnded?t():i.prototype.on.call(this,e,t),"data"===e&&(this._isStreamOpened||(this._isStreamOpened=!0,this._stream.on("data",this._buildChunk.bind(this))),void 0===this._paused&&this._stream.resume()),this},a.prototype.stop=function(e,t,r){s.objectIsFunction(this._stream.destroy)?this._stream.destroy():this.pause(),n.prototype.end.call(this,e,t,r)},a.prototype.pause=function(){n.prototype.pause.call(this),this._stream.pause()},a.prototype.resume=function(){n.prototype.resume.call(this),this._stream.resume()},a.prototype.finish=function(){n.prototype.finish.call(this),this._stream.emit.call(this._stream,"finish")},a.prototype.destroy=function(){n.prototype.destroy.call(this),this._stream.emit.call(this._stream,"close")},t.exports=a},{"./../util/util":37,"./chunkstream":27,events:130,util:228}],29:[function(n,o,e){(function(r){var e=n("events"),s=n("util"),a=n("../util/util");function t(e){this.name=e,this._startTime=Date.now(),this._timeWindowInSeconds=10,this._timeWindow=1e3*this._timeWindowInSeconds,this._totalWindowSize=0,this._speedTracks=new Array(this._timeWindowInSeconds),this._speedTrackPtr=0,this.totalSize=void 0,this.completeSize=0}function i(e,t){if(!e)return"0B";(!t||t<=0)&&(t=2);var r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(t)+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}s.inherits(t,e),t.prototype.getElapsedSeconds=function(e){var t=Date.now(),r=parseInt((t-this._startTime)/1e3,10);if(!1!==e){var n=parseInt(r%60,10);r/=60;var i=Math.floor(r%60);r/=60;var o=Math.floor(r);r=s.format("%s:%s:%s",a.zeroPaddingString(o,2),a.zeroPaddingString(i,2),a.zeroPaddingString(n,2))}return r},t.prototype.getCompletePercent=function(e){return this.totalSize?((!e||e<=0)&&(e=1),(100*this.completeSize/this.totalSize).toFixed(e)):0===this.totalSize?100:0},t.prototype.getAverageSpeed=function(e){var t=this.getElapsedSeconds(!1);return this._getInternalSpeed(this.completeSize,t,e)},t.prototype.getSpeed=function(e){this._refreshSpeedTracks();var t=this.getElapsedSeconds(!1);return t=Math.min(t,this._timeWindowInSeconds),this._getInternalSpeed(this._totalWindowSize,t,e)},t.prototype._getInternalSpeed=function(e,t,r){t<=0&&(t=1);var n=e/t;return!1!==r&&(n=i(n)+"/s"),n},t.prototype._refreshSpeedTracks=function(){for(var e=Date.now(),t=0,r=0;rthis._timeWindow?(r.timeStamp=t,r.size=e):n<=1e3?r.size+=e:(this._speedTrackPtr=(this._speedTrackPtr+1)%this._timeWindowInSeconds,this._recordSpeed(e))}else r={timeStamp:t,size:e},this._speedTracks[this._speedTrackPtr]=r},t.prototype.getAutoIncrementFunction=function(n){var i=this;return function(e,t){if(!e){var r=0;r=!t&&0!==t||isNaN(t)?n:t,i.increment(r)}}},t.prototype.getTotalSize=function(e){return!1!==e?i(this.totalSize):this.totalSize},t.prototype.getCompleteSize=function(e){return!1!==e?i(this.completeSize):this.completeSize},o.exports=t}).call(this,n("_process"))},{"../util/util":37,_process:170,events:130,util:228}],30:[function(e,t,r){"use strict";(r=t.exports).generateEmptyCondition=function(){return{}},r.generateIfNotExistsCondition=function(){var e={EtagNonMatch:"*"};return e},r.generateIfExistsCondition=function(){var e={EtagMatch:"*"};return e},r.generateIfNoneMatchCondition=function(e){var t={};return t.EtagNonMatch=e,t},r.generateIfMatchCondition=function(e){var t={};return t.EtagMatch=e,t},r.generateIfModifiedSinceCondition=function(e){var t={};return t.DateModifedSince=e,t},r.generateIfNotModifiedSinceCondition=function(e){var t={};return t.DateUnModifiedSince=e,t},r.generateSequenceNumberEqualCondition=function(e){var t={};return t.SequenceNumberEqual=e,t},r.generateSequenceNumberLessThanCondition=function(e){var t={};return t.SequenceNumberLessThan=e,t},r.generateSequenceNumberLessThanOrEqualCondition=function(e){var t={};return t.SequenceNumberLessThanOrEqual=e,t}},{}],31:[function(e,n,t){(function(e){n.exports;var t=e.env.AZURE_STORAGE_DNS_SUFFIX||"core.windows.net",r={USER_AGENT_PRODUCT_NAME:"Azure-Storage",USER_AGENT_PRODUCT_VERSION:"2.10.2",DEFAULT_PARALLEL_OPERATION_THREAD_COUNT:5,DEFAULT_ENABLE_REUSE_SOCKET:!0,KB:1024,MB:1048576,GB:1073741824,HTTP:"http:",HTTPS:"https:",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS:12e4,XML_METADATA_MARKER:"$",XML_VALUE_MARKER:"_",ServiceType:{Blob:"blob",Queue:"queue",Table:"table",File:"file"},RequestLocationMode:{PRIMARY_ONLY:0,SECONDARY_ONLY:1,PRIMARY_OR_SECONDARY:2},StorageLocation:{PRIMARY:0,SECONDARY:1},AccountSasConstants:{Permissions:{READ:"r",ADD:"a",CREATE:"c",UPDATE:"u",PROCESS:"p",WRITE:"w",DELETE:"d",LIST:"l"},Services:{BLOB:"b",FILE:"f",QUEUE:"q",TABLE:"t"},Resources:{SERVICE:"s",CONTAINER:"c",OBJECT:"o"},Protocols:{HTTPSONLY:"https",HTTPSORHTTP:"https,http"}},AclConstants:{ACCESS_POLICY:"AccessPolicy",EXPIRY:"Expiry",ID:"Id",PERMISSION:"Permission",SIGNED_IDENTIFIER_ELEMENT:"SignedIdentifier",SIGNED_IDENTIFIERS_ELEMENT:"SignedIdentifiers",START:"Start"},ServicePropertiesConstants:{STORAGE_SERVICE_PROPERTIES_ELEMENT:"StorageServiceProperties",DEFAULT_ANALYTICS_VERSION:"1.0",LOGGING_ELEMENT:"Logging",VERSION_ELEMENT:"Version",DELETE_ELEMENT:"Delete",READ_ELEMENT:"Read",WRITE_ELEMENT:"Write",RETENTION_POLICY_ELEMENT:"RetentionPolicy",ENABLED_ELEMENT:"Enabled",DAYS_ELEMENT:"Days",HOUR_METRICS_ELEMENT:"HourMetrics",MINUTE_METRICS_ELEMENT:"MinuteMetrics",CORS_ELEMENT:"Cors",CORS_RULE_ELEMENT:"CorsRule",ALLOWED_ORIGINS_ELEMENT:"AllowedOrigins",ALLOWED_METHODS_ELEMENT:"AllowedMethods",MAX_AGE_IN_SECONDS_ELEMENT:"MaxAgeInSeconds",EXPOSED_HEADERS_ELEMENT:"ExposedHeaders",ALLOWED_HEADERS_ELEMENT:"AllowedHeaders",INCLUDE_APIS_ELEMENT:"IncludeAPIs",DEFAULT_SERVICE_VERSION_ELEMENT:"DefaultServiceVersion",DEFAULT_DELETE_RETENTION_POLICY_ELEMENT:"DeleteRetentionPolicy",DEFAULT_STATIC_WEBSITE_ELEMENT:"StaticWebsite",DEFAULT_INDEX_DOCUMENT_ELEMENT:"IndexDocument",DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT:"ErrorDocument404Path"},BlobConstants:{LATEST_ELEMENT:"Latest",UNCOMMITTED_ELEMENT:"Uncommitted",BLOCK_LIST_ELEMENT:"BlockList",COMMITTED_ELEMENT:"Committed",DEFAULT_WRITE_PAGE_SIZE_IN_BYTES:4194304,MIN_WRITE_PAGE_SIZE_IN_BYTES:2097152,DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES:33554432,DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES:4194304,DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES:838860800,DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES:1073741824,DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES:4194304,MAX_BLOCK_BLOB_BLOCK_SIZE:104857600,MAX_APPEND_BLOB_BLOCK_SIZE:4194304,MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES:67108864,MAX_RANGE_GET_SIZE_WITH_MD5:4194304,MAX_UPDATE_PAGE_SIZE:4194304,MAX_QUEUED_WRITE_DISK_BUFFER_SIZE:67108864,MAX_SINGLE_GET_PAGE_RANGE_SIZE:155189248,PAGE_SIZE:512,ResourceTypes:{CONTAINER:"c",BLOB:"b"},ListBlobTypes:{Blob:"b",Directory:"d"},PageWriteOptions:{UPDATE:"update",CLEAR:"clear"},BlobTypes:{BLOCK:"BlockBlob",PAGE:"PageBlob",APPEND:"AppendBlob"},LeaseOperation:{ACQUIRE:"acquire",RENEW:"renew",CHANGE:"change",RELEASE:"release",BREAK:"break"}},FileConstants:{DEFAULT_WRITE_SIZE_IN_BYTES:4194304,MAX_RANGE_GET_SIZE_WITH_MD5:4194304,MAX_UPDATE_FILE_SIZE:4194304,DEFAULT_SINGLE_FILE_GET_THRESHOLD_IN_BYTES:33554432,MIN_WRITE_FILE_SIZE_IN_BYTES:2097152,RangeWriteOptions:{UPDATE:"update",CLEAR:"clear"},ResourceTypes:{SHARE:"s",FILE:"f"}},QueueConstants:{QUEUE_MESSAGE_ELEMENT:"QueueMessage",MESSAGE_TEXT_ELEMENT:"MessageText"},TableConstants:{CHANGESET_DELIMITER:"--changesetresponse_",BATCH_DELIMITER:"--batchresponse_",CONTINUATION_NEXT_ROW_KEY:"x-ms-continuation-nextrowkey",CONTINUATION_NEXT_PARTITION_KEY:"x-ms-continuation-nextpartitionkey",CONTINUATION_NEXT_TABLE_NAME:"x-ms-continuation-nexttablename",NEXT_ROW_KEY:"NextRowKey",NEXT_PARTITION_KEY:"NextPartitionKey",NEXT_TABLE_NAME:"NextTableName",ODATA_PREFIX:"odata.",ODATA_TYPE_SUFFIX:"@odata.type",ODATA_METADATA_MARKER:".metadata",ODATA_VALUE_MARKER:"_",ODATA_TYPE_MARKER:"$",DEFAULT_DATA_SERVICE_VERSION:"3.0;NetFx",TABLE_NAME:"TableName",TABLE_SERVICE_TABLE_NAME:"Tables",Operations:{RETRIEVE:"RETRIEVE",INSERT:"INSERT",REPLACE:"REPLACE",MERGE:"MERGE",DELETE:"DELETE",INSERT_OR_REPLACE:"INSERT_OR_REPLACE",INSERT_OR_MERGE:"INSERT_OR_MERGE"}},HeaderConstants:{ACCEPT_RANGES:"accept_ranges",CONTENT_TRANSFER_ENCODING:"content-transfer-encoding",TRANSFER_ENCODING:"transfer-encoding",SERVER:"server",LOCATION:"location",LAST_MODIFIED:"Last-Modified",CREATION_TIME:"x-ms-creation-time",DATA_SERVICE_VERSION:"dataserviceversion",MAX_DATA_SERVICE_VERSION:"maxdataserviceversion",PREFIX_FOR_STORAGE:"x-ms-",CLIENT_REQUEST_ID:"x-ms-client-request-id",APPROXIMATE_MESSAGES_COUNT:"x-ms-approximate-messages-count",AUTHORIZATION:"authorization",FORCE_NO_CACHE_IN_BROWSER:"_",BLOB_PUBLIC_ACCESS:"x-ms-blob-public-access",HAS_IMMUTABILITY_POLICY:"x-ms-has-immutability-policy",HAS_LEGAL_HOLD:"x-ms-has-legal-hold",BLOB_TYPE:"x-ms-blob-type",TYPE:"x-ms-type",BLOCK_BLOB:"blockblob",CACHE_CONTROL:"cache-control",BLOB_CACHE_CONTROL:"x-ms-blob-cache-control",FILE_CACHE_CONTROL:"x-ms-cache-control",COPY_STATUS:"x-ms-copy-status",COPY_COMPLETION_TIME:"x-ms-copy-completion-time",COPY_STATUS_DESCRIPTION:"x-ms-copy-status-description",COPY_ID:"x-ms-copy-id",COPY_PROGRESS:"x-ms-copy-progress",COPY_ACTION:"x-ms-copy-action",INCREMENTAL_COPY:"x-ms-incremental-copy",COPY_DESTINATION_SNAPSHOT:"x-ms-copy-destination-snapshot",CONTENT_ID:"content-id",CONTENT_ENCODING:"content-encoding",BLOB_CONTENT_ENCODING:"x-ms-blob-content-encoding",FILE_CONTENT_ENCODING:"x-ms-content-encoding",CONTENT_LANGUAGE:"content-language",BLOB_CONTENT_LANGUAGE:"x-ms-blob-content-language",FILE_CONTENT_LANGUAGE:"x-ms-content-language",CONTENT_LENGTH:"content-length",BLOB_CONTENT_LENGTH:"x-ms-blob-content-length",FILE_CONTENT_LENGTH:"x-ms-content-length",CONTENT_DISPOSITION:"content-disposition",BLOB_CONTENT_DISPOSITION:"x-ms-blob-content-disposition",FILE_CONTENT_DISPOSITION:"x-ms-content-disposition",CONTENT_MD5:"content-md5",BLOB_CONTENT_MD5:"x-ms-blob-content-md5",FILE_CONTENT_MD5:"x-ms-content-md5",CONTENT_RANGE:"cache-range",CONTENT_TYPE:"content-type",BLOB_CONTENT_TYPE:"x-ms-blob-content-type",FILE_CONTENT_TYPE:"x-ms-content-type",COPY_SOURCE:"x-ms-copy-source",DATE:"date",MS_DATE:"x-ms-date",DELETE_SNAPSHOT:"x-ms-delete-snapshots",ETAG:"etag",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",INCLUDE_SNAPSHOTS_VALUE:"include",JSON_CONTENT_TYPE_VALUE:"application/json",SKU_NAME:"x-ms-sku-name",ACCOUNT_KIND:"x-ms-account-kind",LEASE_ID:"x-ms-lease-id",LEASE_BREAK_PERIOD:"x-ms-lease-break-period",PROPOSED_LEASE_ID:"x-ms-proposed-lease-id",LEASE_DURATION:"x-ms-lease-duration",SOURCE_LEASE_ID:"x-ms-source-lease-id",LEASE_TIME:"x-ms-lease-time",LEASE_STATUS:"x-ms-lease-status",LEASE_STATE:"x-ms-lease-state",PAGE_BLOB:"PageBlob",PAGE_WRITE:"x-ms-page-write",FILE_WRITE:"x-ms-write",PREFER:"Prefer",PREFER_CONTENT:"return-content",PREFER_NO_CONTENT:"return-no-content",PREFIX_FOR_STORAGE_METADATA:"x-ms-meta-",PREFIX_FOR_STORAGE_PROPERTIES:"x-ms-prop-",RANGE:"Range",SOURCE_RANGE:"x-ms-source-range",RANGE_GET_CONTENT_MD5:"x-ms-range-get-content-md5",RANGE_HEADER_FORMAT:"bytes:%d-%d",REQUEST_ID:"x-ms-request-id",SEQUENCE_NUMBER:"x-ms-blob-sequence-number",SEQUENCE_NUMBER_EQUAL:"x-ms-if-sequence-number-eq",SEQUENCE_NUMBER_LESS_THAN:"x-ms-if-sequence-number-lt",SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL:"x-ms-if-sequence-number-le",SEQUENCE_NUMBER_ACTION:"x-ms-sequence-number-action",SIZE:"x-ms-blob-content-length",SNAPSHOT:"x-ms-snapshot",SNAPSHOTS_ONLY_VALUE:"only",SOURCE_IF_MATCH:"x-ms-source-if-match",SOURCE_IF_MODIFIED_SINCE:"x-ms-source-if-modified-since",SOURCE_IF_NONE_MATCH:"x-ms-source-if-none-match",SOURCE_IF_UNMODIFIED_SINCE:"x-ms-source-if-unmodified-since",STORAGE_RANGE:"x-ms-range",STORAGE_VERSION:"x-ms-version",TARGET_STORAGE_VERSION:"2018-03-28",USER_AGENT:"user-agent",POP_RECEIPT:"x-ms-popreceipt",TIME_NEXT_VISIBLE:"x-ms-time-next-visible",APPROXIMATE_MESSAGE_COUNT:"x-ms-approximate-message-count",LEASE_ACTION:"x-ms-lease-action",ACCEPT:"accept",ACCEPT_CHARSET:"Accept-Charset",HOST:"host",CORRELATION_ID:"x-ms-correlation-id",GROUP_ID:"x-ms-group-id",SHARE_QUOTA:"x-ms-share-quota",BLOB_CONDITION_MAX_SIZE:"x-ms-blob-condition-maxsize",BLOB_CONDITION_APPEND_POSITION:"x-ms-blob-condition-appendpos",BLOB_APPEND_OFFSET:"x-ms-blob-append-offset",BLOB_COMMITTED_BLOCK_COUNT:"x-ms-blob-committed-block-count",REQUEST_SERVER_ENCRYPTED:"x-ms-request-server-encrypted",SERVER_ENCRYPTED:"x-ms-server-encrypted",ACCESS_TIER:"x-ms-access-tier",ACCESS_TIER_CHANGE_TIME:"x-ms-access-tier-change-time",ACCESS_TIER_INFERRED:"x-ms-access-tier-inferred",ARCHIVE_STATUS:"x-ms-archive-status"},QueryStringConstants:{API_VERSION:"api-version",COMP:"comp",RESTYPE:"restype",COPY_ID:"copyid",SNAPSHOT:"snapshot",SHARE_SNAPSHOT:"sharesnapshot",PREV_SNAPSHOT:"prevsnapshot",TIMEOUT:"timeout",SIGNED_START:"st",SIGNED_EXPIRY:"se",SIGNED_RESOURCE:"sr",SIGNED_PERMISSIONS:"sp",SIGNED_SERVICES:"ss",SIGNED_RESOURCE_TYPES:"srt",SIGNED_IP:"sip",SIGNED_PROTOCOL:"spr",SIGNED_IDENTIFIER:"si",SIGNATURE:"sig",SIGNED_VERSION:"sv",CACHE_CONTROL:"rscc",CONTENT_TYPE:"rsct",CONTENT_ENCODING:"rsce",CONTENT_LANGUAGE:"rscl",CONTENT_DISPOSITION:"rscd",BLOCK_ID:"blockid",BLOCK_LIST_TYPE:"blocklisttype",PREFIX:"prefix",MARKER:"marker",MAX_RESULTS:"maxresults",DELIMITER:"delimiter",INCLUDE:"include",PEEK_ONLY:"peekonly",NUM_OF_MESSAGES:"numofmessages",POP_RECEIPT:"popreceipt",VISIBILITY_TIMEOUT:"visibilitytimeout",MESSAGE_TTL:"messagettl",SELECT:"$select",FILTER:"$filter",TOP:"$top",SKIP:"$skip",NEXT_PARTITION_KEY:"NextPartitionKey",NEXT_ROW_KEY:"NextRowKey",LOCK_ID:"lockid",TABLENAME:"tn",STARTPK:"spk",STARTRK:"srk",ENDPK:"epk",ENDRK:"erk"},StorageServiceClientConstants:{DEFAULT_PROTOCOL:"https:",EnvironmentVariables:{AZURE_STORAGE_ACCOUNT:"AZURE_STORAGE_ACCOUNT",AZURE_STORAGE_ACCESS_KEY:"AZURE_STORAGE_ACCESS_KEY",AZURE_STORAGE_DNS_SUFFIX:"AZURE_STORAGE_DNS_SUFFIX",AZURE_STORAGE_CONNECTION_STRING:"AZURE_STORAGE_CONNECTION_STRING",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",EMULATED:"EMULATED"},DEVSTORE_STORAGE_ACCOUNT:"devstoreaccount1",DEVSTORE_STORAGE_ACCESS_KEY:"Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",DEV_STORE_URI:"http://127.0.0.1",DEVSTORE_DEFAULT_PROTOCOL:"http://",DEVSTORE_BLOB_HOST:"127.0.0.1:10000",DEVSTORE_QUEUE_HOST:"127.0.0.1:10001",DEVSTORE_TABLE_HOST:"127.0.0.1:10002",CLOUD_BLOB_HOST:"blob."+t,CLOUD_QUEUE_HOST:"queue."+t,CLOUD_TABLE_HOST:"table."+t,CLOUD_FILE_HOST:"file."+t},HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD"},HttpResponseCodes:{Ok:200,Created:201,Accepted:202,NoContent:204,PartialContent:206,BadRequest:400,Unauthorized:401,Forbidden:403,NotFound:404,Conflict:409,LengthRequired:411,PreconditionFailed:412}},CompatibleVersionConstants:{AUGUST_2013:"2013-08-15",FEBRUARY_2012:"2012-02-12"},BlobErrorCodeStrings:{INVALID_BLOCK_ID:"InvalidBlockId",BLOB_NOT_FOUND:"BlobNotFound",BLOB_ALREADY_EXISTS:"BlobAlreadyExists",CONTAINER_ALREADY_EXISTS:"ContainerAlreadyExists",CONTAINER_NOT_FOUND:"ContainerNotFound",INVALID_BLOB_OR_BLOCK:"InvalidBlobOrBlock",INVALID_BLOCK_LIST:"InvalidBlockList"},FileErrorCodeStrings:{SHARE_ALREADY_EXISTS:"ShareAlreadyExists",SHARE_NOT_FOUND:"ShareNotFound",FILE_NOT_FOUND:"FileNotFound"},QueueErrorCodeStrings:{QUEUE_NOT_FOUND:"QueueNotFound",QUEUE_DISABLED:"QueueDisabled",QUEUE_ALREADY_EXISTS:"QueueAlreadyExists",QUEUE_NOT_EMPTY:"QueueNotEmpty",QUEUE_BEING_DELETED:"QueueBeingDeleted",POP_RECEIPT_MISMATCH:"PopReceiptMismatch",INVALID_PARAMETER:"InvalidParameter",MESSAGE_NOT_FOUND:"MessageNotFound",MESSAGE_TOO_LARGE:"MessageTooLarge",INVALID_MARKER:"InvalidMarker"},StorageErrorCodeStrings:{CONDITION_NOT_MET:"ConditionNotMet",MISSING_REQUIRED_HEADER:"MissingRequiredHeader",MISSING_REQUIRED_XML_NODE:"MissingRequiredXmlNode",UNSUPPORTED_HEADER:"UnsupportedHeader",UNSUPPORTED_XML_NODE:"UnsupportedXmlNode",INVALID_HEADER_VALUE:"InvalidHeaderValue",INVALID_XML_NODE_VALUE:"InvalidXmlNodeValue",MISSING_REQUIRED_QUERY_PARAMETER:"MissingRequiredQueryParameter",UNSUPPORTED_QUERY_PARAMETER:"UnsupportedQueryParameter",INVALID_QUERY_PARAMETER_VALUE:"InvalidQueryParameterValue",OUT_OF_RANGE_QUERY_PARAMETER_VALUE:"OutOfRangeQueryParameterValue",REQUEST_URL_FAILED_TO_PARSE:"RequestUrlFailedToParse",INVALID_URI:"InvalidUri",INVALID_HTTP_VERB:"InvalidHttpVerb",EMPTY_METADATA_KEY:"EmptyMetadataKey",INVALID_XML_DOCUMENT:"InvalidXmlDocument",MD5_MISMATCH:"Md5Mismatch",INVALID_MD5:"InvalidMd5",OUT_OF_RANGE_INPUT:"OutOfRangeInput",INVALID_AUTHENTICATION_INFO:"InvalidAuthenticationInfo",INVALID_INPUT:"InvalidInput",INVALID_METADATA:"InvalidMetadata",INVALID_RESOURCE_NAME:"InvalidResourceName",METADATA_TOO_LARGE:"MetadataTooLarge",CONDITION_HEADER_NOT_SUPPORTED:"ConditionHeadersNotSupported",MULTIPLE_CONDITION_HEADER_NOT_SUPPORTED:"MultipleConditionHeadersNotSupported",AUTHENTICATION_FAILED:"AuthenticationFailed",INSUFFICIENT_ACCOUNT_PERMISSIONS:"InsufficientAccountPermissions",RESOURCE_NOT_FOUND:"ResourceNotFound",ACCOUNT_IS_DISABLED:"AccountIsDisabled",UNSUPPORTED_HTTP_VERB:"UnsupportedHttpVerb",ACCOUNT_ALREADY_EXISTS:"AccountAlreadyExists",ACCOUNT_BEING_CREATED:"AccountBeingCreated",RESOURCE_ALREADY_EXISTS:"ResourceAlreadyExists",RESOURCE_TYPE_MISMATCH:"ResourceTypeMismatch",MISSING_CONTENT_LENGTH_HEADER:"MissingContentLengthHeader",REQUEST_BODY_TOO_LARGE:"RequestBodyTooLarge",INVALID_RANGE:"InvalidRange",INTERNAL_ERROR:"InternalError",OPERATION_TIMED_OUT:"OperationTimedOut",SERVER_BUSY:"ServerBusy",UPDATE_CONDITION_NOT_SATISFIED:"UpdateConditionNotSatisfied",CONTAINER_NOT_FOUND:"ContainerNotFound",CONTAINER_ALREADY_EXISTS:"ContainerAlreadyExists",CONTAINER_DISABLED:"ContainerDisabled",CONTAINER_BEING_DELETED:"ContainerBeingDeleted"},TableErrorCodeStrings:{XMETHOD_NOT_USING_POST:"XMethodNotUsingPost",XMETHOD_INCORRECT_VALUE:"XMethodIncorrectValue",XMETHOD_INCORRECT_COUNT:"XMethodIncorrectCount",TABLE_HAS_NO_PROPERTIES:"TableHasNoProperties",DUPLICATE_PROPERTIES_SPECIFIED:"DuplicatePropertiesSpecified",TABLE_HAS_NO_SUCH_PROPERTY:"TableHasNoSuchProperty",DUPLICATE_KEY_PROPERTY_SPECIFIED:"DuplicateKeyPropertySpecified",TABLE_ALREADY_EXISTS:"TableAlreadyExists",TABLE_NOT_FOUND:"TableNotFound",ENTITY_NOT_FOUND:"EntityNotFound",ENTITY_ALREADY_EXISTS:"EntityAlreadyExists",PARTITION_KEY_NOT_SPECIFIED:"PartitionKeyNotSpecified",OPERATOR_INVALID:"OperatorInvalid",UPDATE_CONDITION_NOT_SATISFIED:"UpdateConditionNotSatisfied",PROPERTIES_NEED_VALUE:"PropertiesNeedValue",PARTITION_KEY_PROPERTY_CANNOT_BE_UPDATED:"PartitionKeyPropertyCannotBeUpdated",TOO_MANY_PROPERTIES:"TooManyProperties",ENTITY_TOO_LARGE:"EntityTooLarge",PROPERTY_VALUE_TOO_LARGE:"PropertyValueTooLarge",INVALID_VALUE_TYPE:"InvalidValueType",TABLE_BEING_DELETED:"TableBeingDeleted",TABLE_SERVER_OUT_OF_MEMORY:"TableServerOutOfMemory",PRIMARY_KEY_PROPERTY_IS_INVALID_TYPE:"PrimaryKeyPropertyIsInvalidType",PROPERTY_NAME_TOO_LONG:"PropertyNameTooLong",PROPERTY_NAME_INVALID:"PropertyNameInvalid",BATCH_OPERATION_NOT_SUPPORTED:"BatchOperationNotSupported",JSON_FORMAT_NOT_SUPPORTED:"JsonFormatNotSupported",METHOD_NOT_ALLOWED:"MethodNotAllowed",NOT_IMPLEMENTED:"NotImplemented"},ConnectionStringKeys:{USE_DEVELOPMENT_STORAGE_NAME:"UseDevelopmentStorage",DEVELOPMENT_STORAGE_PROXY_URI_NAME:"DevelopmentStorageProxyUri",DEFAULT_ENDPOINTS_PROTOCOL_NAME:"DefaultEndpointsProtocol",ACCOUNT_NAME_NAME:"AccountName",ACCOUNT_KEY_NAME:"AccountKey",BLOB_ENDPOINT_NAME:"BlobEndpoint",FILE_ENDPOINT_NAME:"FileEndpoint",QUEUE_ENDPOINT_NAME:"QueueEndpoint",TABLE_ENDPOINT_NAME:"TableEndpoint",SHARED_ACCESS_SIGNATURE_NAME:"SharedAccessSignature",ENDPOINT_SUFFIX_NAME:"EndpointSuffix",BLOB_BASE_DNS_NAME:"blob.core.windows.net",FILE_BASE_DNS_NAME:"file.core.windows.net",QUEUE_BASE_DNS_NAME:"queue.core.windows.net",TABLE_BASE_DNS_NAME:"table.core.windows.net"}};n.exports=r}).call(this,e("_process"))},{_process:170}],32:[function(e,t,r){r.daysFromNow=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},r.hoursFromNow=function(e){var t=new Date;return t.setHours(t.getHours()+e),t},r.minutesFromNow=function(e){var t=new Date;return t.setMinutes(t.getMinutes()+e),t},r.secondsFromNow=function(e){var t=new Date;return t.setSeconds(t.getSeconds()+e),t}},{}],33:[function(e,t,r){r.format=function(e){var t=e.toISOString();return t.substring(0,t.length-1)+"0000Z"},r.parse=function(e){var t=e.split("T"),r=t[0].split("-"),n=t[1].split("."),i=n[0].split(":"),o=0;return n[1]&&(o=n[1].split("Z")),new Date(Date.UTC(parseInt(r[0],10),parseInt(r[1],10)-1,parseInt(r[2],10),parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10),Math.round(parseInt(function(e,t){for(var r=""+e;r.lengthn){var t=n-o;0/gm,">").replace(/"/gm,""").replace(/'/gm,"'")},o.prototype.decode=function(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"').replace(/'/gm,"'")},a.exports=r,a.exports.TextBase64QueueMessageEncoder=n,a.exports.BinaryBase64QueueMessageEncoder=i,a.exports.TextXmlQueueMessageEncoder=o}).call(this,s("buffer").Buffer)},{buffer:94,util:228}],44:[function(r,n,e){(function(l){var e=r("util"),c=r("underscore"),h=r("extend"),t=r("./../../common/common.core"),d=t.util,p=t.SR,b=t.validate,a=t.StorageServiceClient,m=t.WebResource,u=t.Constants,y=u.QueryStringConstants,g=u.HeaderConstants,f=u.RequestLocationMode,_=r("./models/queueresult"),v=t.AclResult,E=r("./models/queuemessageresult"),w=r("./queuemessageencoder"),o=t.ServiceStatsParser;function S(e,t,r,n,i,o){var s=a.getStorageSettings(e,t,r,n,i,o);if(S.super_.call(this,s._name,s._key,s._queueEndpoint,s._usePathStyleUri,s._sasToken,o),this.anonymous)throw new Error(p.ANONYMOUS_ACCESS_BLOBSERVICE_ONLY);this.messageEncoder=new w.TextXmlQueueMessageEncoder}e.inherits(S,a),S.prototype.getServiceStats=function(e,r){var n;d.normalizeArgs(e,r,function(e,t){n=e,r=t}),b.validateArgs("getServiceStats",function(e){e.callback(r)});var t=h(!0,{},n),i=m.get().withQueryOption(y.COMP,"stats").withQueryOption(y.RESTYPE,"service");t.requestLocationMode=f.PRIMARY_OR_SECONDARY;this.performRequest(i,null,t,function(e,t){e.serviceStatsResult=null,e.error||(e.serviceStatsResult=o.parse(e.response.body.StorageServiceStats));t(e,function(e){r(e.error,e.serviceStatsResult,e.response)})})},S.prototype.getServiceProperties=function(e,t){return this.getAccountServiceProperties(e,t)},S.prototype.setServiceProperties=function(e,t,r){return this.setAccountServiceProperties(e,t,r)},S.prototype.listQueuesSegmented=function(e,t,r){this.listQueuesSegmentedWithPrefix(null,e,t,r)},S.prototype.listQueuesSegmentedWithPrefix=function(e,t,r,n){var i;d.normalizeArgs(r,n,function(e,t){i=e,n=t}),b.validateArgs("listQueuesSegmentedWithPrefix",function(e){e.callback(n)});var o=h(!0,{},i),s=m.get();s.withQueryOption(y.COMP,"list").withQueryOption(y.MAX_RESULTS,o.maxResults).withQueryOption(y.INCLUDE,o.include).withQueryOption(y.PREFIX,e),d.objectIsNull(t)||s.withQueryOption(y.MARKER,t.nextMarker),o.requestLocationMode=d.getNextListingLocationMode(t);this.performRequest(s,null,o,function(r,e){if(r.listQueuesResult=null,!r.error){r.listQueuesResult={entries:null,continuationToken:null},r.listQueuesResult.entries=[];var t=[];r.response.body.EnumerationResults.Queues&&r.response.body.EnumerationResults.Queues.Queue&&(t=r.response.body.EnumerationResults.Queues.Queue,c.isArray(t)||(t=[t]),t.forEach(function(e){var t=_.parse(e);r.listQueuesResult.entries.push(t)}),r.response.body.EnumerationResults.NextMarker&&(r.listQueuesResult.continuationToken={nextMarker:null,targetLocation:null},r.listQueuesResult.continuationToken.nextMarker=r.response.body.EnumerationResults.NextMarker,r.listQueuesResult.continuationToken.targetLocation=r.targetLocation))}e(r,function(e){n(e.error,e.listQueuesResult,e.response)})})},S.prototype.doesQueueExist=function(e,t,r){this._doesQueueExist(e,!1,t,r)},S.prototype.createQueue=function(r,e,n){var i;d.normalizeArgs(e,n,function(e,t){i=e,n=t}),b.validateArgs("createQueue",function(e){e.string(r,"queue"),e.queueNameIsValid(r),e.callback(n)});var o=h(!0,{},i),t=m.put(r);o&&t.addOptionalMetadataHeaders(o.metadata);this.performRequest(t,null,o,function(e,t){e.queueResult=null,e.error||(e.queueResult=new _(r),o&&o.metadata&&(e.queueResult.metadata=o.metadata));t(e,function(e){n(e.error,e.queueResult,e.response)})})},S.prototype.createQueueIfNotExists=function(i,e,o){var r;d.normalizeArgs(e,o,function(e,t){r=e,o=t}),b.validateArgs("createQueueIfNotExists",function(e){e.string(i,"queue"),e.queueNameIsValid(i),e.callback(o)});var s=h(!0,{},r),a=this;a._doesQueueExist(i,!0,s,function(e,t,r){var n=t.exists;t.created=!1,delete t.exists,e?o(e,t,r):n?(r.isSuccessful=!0,o(e,t,r)):a.createQueue(i,s,function(e,t,r){e?e&&e.statusCode===u.HttpConstants.HttpResponseCodes.Conflict&&e.code===u.QueueErrorCodeStrings.QUEUE_ALREADY_EXISTS&&(e=null,t.created=!1,r.isSuccessful=!0):t.created=!0,o(e,t,r)})})},S.prototype.deleteQueue=function(t,e,r){var n;d.normalizeArgs(e,r,function(e,t){n=e,r=t}),b.validateArgs("deleteQueue",function(e){e.string(t,"queue"),e.queueNameIsValid(t),e.callback(r)});var i=h(!0,{},n),o=m.del(t);this.performRequest(o,null,i,function(e,t){t(e,function(e){r(e.error,e.response)})})},S.prototype.deleteQueueIfExists=function(n,e,i){var r;d.normalizeArgs(e,i,function(e,t){r=e,i=t}),b.validateArgs("deleteQueueIfExists",function(e){e.string(n,"queue"),e.queueNameIsValid(n),e.callback(i)});var o=h(!0,{},r),s=this;s._doesQueueExist(n,!0,o,function(e,t,r){e?i(e,t.exists,r):t.exists?s.deleteQueue(n,o,function(e,t){var r;e?e&&e.statusCode===u.HttpConstants.HttpResponseCodes.NotFound&&e.code===u.QueueErrorCodeStrings.QUEUE_NOT_FOUND&&(r=!1,e=null,t.isSuccessful=!0):r=!0,i(e,r,t)}):(r.isSuccessful=!0,i(e,!1,r))})},S.prototype.getQueueMetadata=function(r,e,n){var i;d.normalizeArgs(e,n,function(e,t){i=e,n=t}),b.validateArgs("getQueueMetadata",function(e){e.string(r,"queue"),e.queueNameIsValid(r),e.callback(n)});var t=h(!0,{},i),o=m.get(r).withQueryOption(y.COMP,"metadata");t.requestLocationMode=u.RequestLocationMode.PRIMARY_OR_SECONDARY;var s=this;this.performRequest(o,null,t,function(e,t){e.queueResult=null,e.error||(e.queueResult=new _(r),e.queueResult.metadata=s.parseMetadataHeaders(e.response.headers),e.queueResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){n(e.error,e.queueResult,e.response)})})},S.prototype.setQueueMetadata=function(r,n,e,i){var o;d.normalizeArgs(e,i,function(e,t){o=e,i=t}),b.validateArgs("setQueueMetadata",function(e){e.string(r,"queue"),e.queueNameIsValid(r),e.callback(i)});var t=h(!0,{},o),s=m.put(r).withQueryOption(y.COMP,"metadata").addOptionalMetadataHeaders(n);this.performRequest(s,null,t,function(e,t){e.queueResult=null,e.error||(e.queueResult=new _(r,n),e.queueResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){i(e.error,e.queueResult,e.response)})})},S.prototype.createMessage=function(t,e,r,n){var i;d.normalizeArgs(r,n,function(e,t){i=e,n=t}),b.validateArgs("createMessage",function(e){e.string(t,"queue"),e.queueNameIsValid(t),e.callback(n)});var o=E.serialize(e,this.messageEncoder),s=h(!0,{},i),a=m.post(t+"/messages").withHeader(g.CONTENT_TYPE,'application/atom+xml;charset="utf-8"').withHeader(g.CONTENT_LENGTH,l.byteLength(o,"utf8")).withQueryOption(y.MESSAGE_TTL,s.messageTimeToLive).withQueryOption(y.VISIBILITY_TIMEOUT,s.visibilityTimeout).withBody(o),u=this.messageEncoder;this.performRequest(a,a.body,s,function(r,e){if(r.queueMessageResults=[],r.response&&r.response.body&&r.response.body.QueueMessagesList&&r.response.body.QueueMessagesList.QueueMessage){var t=r.response.body.QueueMessagesList.QueueMessage;c.isArray(t)||(t=[t]),t.forEach(function(e){var t=E.parse(e,u);r.queueMessageResults.push(t)})}e(r,function(e){n(e.error,r.queueMessageResults[0],e.response)})})},S.prototype.getMessages=function(t,e,r){var n;d.normalizeArgs(e,r,function(e,t){n=e,r=t}),b.validateArgs("getMessages",function(e){e.string(t,"queue"),e.queueNameIsValid(t),e.callback(r)});var i=h(!0,{},n);delete i.peekOnly,this._getOrPeekMessages(t,i,r)},S.prototype.getMessage=function(t,e,i){var r;d.normalizeArgs(e,i,function(e,t){r=e,i=t}),b.validateArgs("getMessage",function(e){e.string(t,"queue"),e.queueNameIsValid(t),e.callback(i)});var n=h(!0,{},r);n.numOfMessages=1;this.getMessages(t,n,function(e,t,r){var n;t&&0>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(4>=8)s++;(i=new c(2+s))[0]=o,i[1]=128|s;a=1+s;for(var u=n.length;0>=8)i[a]=255&u;return this._createEncoderBuffer([i,n])},a.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new c(2*e.length),n=0;n>=7)i++}var s=new c(i),a=s.length-1;for(n=e.length-1;0<=n;n--){o=e[n];for(s[a--]=127&o;0<(o>>=7);)s[a--]=128|127&o}return this._createEncoderBuffer(s)},a.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!c.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new c(r)}if(c.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new c(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;256<=o;o>>=8)n++;for(o=(i=new Array(n)).length-1;0<=o;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i))},a.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},a.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},a.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;var c,f;2===i&&(t=l[e.charCodeAt(u)]<<2|l[e.charCodeAt(u+1)]>>4,o[s++]=255&t);1===i&&(t=l[e.charCodeAt(u)]<<10|l[e.charCodeAt(u+1)]<<4|l[e.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],o=0,s=r-n;o>2]+a[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return i.join("")};for(var a=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>18&63]+a[i>>12&63]+a[i>>6&63]+a[63&i]);return o.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],62:[function(S,e,t){!function(e,t){"use strict";function m(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function y(e,t,r){if(y.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var n;"object"==typeof e?e.exports=y:t.BN=y,(y.BN=y).wordSize=26;try{n=S("buffer").Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o>>26-s&67108863,26<=(s+=24)&&(s-=26,i++);else if("le"===r)for(i=n=0;n>>26-s&67108863,26<=(s+=24)&&(s-=26,i++);return this.strip()},y.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r>>26-o&4194303,26<=(o+=24)&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},y.prototype._parseBase=function(e,t,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function i(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;n=(r.length=n)-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;f+=(s=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}y.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215)||o!==this.length-1?h[6-a.length]+a+r:a+r,26<=(n+=2)&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var u=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(c).toString(e);r=(f=f.idivn(c)).isZero()?l+r:h[u-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},y.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},y.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},y.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},y.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},y.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},y.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},y.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},y.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},y.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},y.prototype.inotn=function(e){m("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0>26-r),this.strip()},y.prototype.notn=function(e){return this.clone().inotn(e)},y.prototype.setn=function(e,t){m("number"==typeof e&&0<=e);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},y.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;0>26,this.words[s]=67108863&t;for(;0!==o&&s>26,this.words[s]=67108863&t;if(0===o&&s>>13,d=0|s[1],p=8191&d,b=d>>>13,m=0|s[2],y=8191&m,g=m>>>13,_=0|s[3],v=8191&_,E=_>>>13,w=0|s[4],S=8191&w,A=w>>>13,T=0|s[5],I=8191&T,M=T>>>13,N=0|s[6],O=8191&N,R=N>>>13,C=0|s[7],L=8191&C,x=C>>>13,D=0|s[8],P=8191&D,k=D>>>13,B=0|s[9],U=8191&B,j=B>>>13,F=0|a[0],q=8191&F,H=F>>>13,V=0|a[1],G=8191&V,z=V>>>13,Y=0|a[2],X=8191&Y,K=Y>>>13,W=0|a[3],Q=8191&W,$=W>>>13,Z=0|a[4],J=8191&Z,ee=Z>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,ce=ae>>>13,fe=0|a[8],le=8191&fe,he=fe>>>13,de=0|a[9],pe=8191&de,be=de>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(l,q))|0)+((8191&(i=(i=Math.imul(l,H))+Math.imul(h,q)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(b,q)|0,o=Math.imul(b,H);var ye=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,z)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,H))+Math.imul(g,q)|0,o=Math.imul(g,H),n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,z)|0;var ge=(c+(n=n+Math.imul(l,X)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(h,X)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,K)|0;var _e=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,$)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,H))+Math.imul(A,q)|0,o=Math.imul(A,H),n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,z)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,$)|0;var ve=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,H))+Math.imul(M,q)|0,o=Math.imul(M,H),n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,ee)|0;var Ee=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,H))+Math.imul(R,q)|0,o=Math.imul(R,H),n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,z)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var we=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,se)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(x,q)|0,o=Math.imul(x,H),n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,z)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,z)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0;var Se=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(k,q)|0,o=Math.imul(k,H),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,z)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var Ae=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,z)|0,n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Te=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,z))+Math.imul(j,G)|0,o=Math.imul(j,z),n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,$)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,se)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(y,le)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(g,le)|0,o=o+Math.imul(g,he)|0;var Ie=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,K))+Math.imul(j,X)|0,o=Math.imul(j,K),n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,$)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(v,le)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,he)|0;var Me=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,be)|0)+Math.imul(g,pe)|0))<<13)|0;c=((o=o+Math.imul(g,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,$))+Math.imul(j,Q)|0,o=Math.imul(j,$),n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,se)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,se)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,he)|0;var Ne=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,be)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,ee))+Math.imul(j,J)|0,o=Math.imul(j,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,se)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,se)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Oe=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),i=(i=Math.imul(U,ne))+Math.imul(j,re)|0,o=Math.imul(j,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,he)|0;var Re=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(j,oe)|0,o=Math.imul(j,se),n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(L,le)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,he)|0;var Ce=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,be)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(U,ue),i=(i=Math.imul(U,ce))+Math.imul(j,ue)|0,o=Math.imul(j,ce),n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,he)|0;var Le=(c+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,be)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,be)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(U,le),i=(i=Math.imul(U,he))+Math.imul(j,le)|0,o=Math.imul(j,he);var xe=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863;var De=(c+(n=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,be))+Math.imul(j,pe)|0))<<13)|0;return c=((o=Math.imul(j,be))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=me,u[1]=ye,u[2]=ge,u[3]=_e,u[4]=ve,u[5]=Ee,u[6]=we,u[7]=Se,u[8]=Ae,u[9]=Te,u[10]=Ie,u[11]=Me,u[12]=Ne,u[13]=Oe,u[14]=Re,u[15]=Ce,u[16]=Le,u[17]=xe,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function a(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(o=i),y.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?o(this,e,t):r<63?i(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):a(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=y.prototype._countBits(e)-1,n=0;n>=1;return n},u.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},y.prototype.muln=function(e){return this.clone().imuln(e)},y.prototype.sqr=function(){return this.mul(this)},y.prototype.isqr=function(){return this.imul(this.clone())},y.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new y(1);for(var r=this,n=0;n>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;0<=t;t--)this.words[t+n]=this.words[t];for(t=0;t>>i<o)for(this.length-=o,u=0;u>>i,c=f&s}return a&&0!==c&&(a.words[a.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},y.prototype.ishrn=function(e,t,r){return m(0===this.negative),this.iushrn(e,t,r)},y.prototype.shln=function(e){return this.clone().ishln(e)},y.prototype.ushln=function(e){return this.clone().iushln(e)},y.prototype.shrn=function(e){return this.clone().ishrn(e)},y.prototype.ushrn=function(e){return this.clone().iushrn(e)},y.prototype.testn=function(e){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<>>t<>26)-(a/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===s)return this.strip();for(m(-1===s),n=s=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},y.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,a=n.length-i.length;if("mod"!==t){(s=new y(null)).length=a+1,s.words=new Array(s.length);for(var u=0;uthis.length||this.cmp(e)<0?{div:new y(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new y(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new y(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},y.prototype.div=function(e){return this.divmod(e,"div",!1).div},y.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},y.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},y.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},y.prototype.modn=function(e){m(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;0<=n;n--)r=(t*r+(0|this.words[n]))%e;return r},y.prototype.idivn=function(e){m(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},y.prototype.divn=function(e){return this.clone().idivn(e)},y.prototype.egcd=function(e){m(0===e.negative),m(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new y(1),i=new y(0),o=new y(0),s=new y(1),a=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++a;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var f=0,l=1;0==(t.words[0]&l)&&f<26;++f,l<<=1);if(0>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},y.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},y.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1e.length)return 1;if(this.lengththis.n;);var n=t>>22,i=o}i>>>=22,0===(e.words[n-10]=i)&&10>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},y._prime=function(e){if(c[e])return c[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new g;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return c[e]=t},E.prototype._verify1=function(e){m(0===e.negative,"red works only with positives"),m(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){m(0==(e.negative|t.negative),"red works only with positives"),m(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(m(t%2==1),3===t){var r=this.m.add(new y(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);m(!n.isZero());var o=new y(1).toRed(this),s=o.redNeg(),a=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new y(2*u*u).toRed(this);0!==this.pow(u,a).cmp(s);)u.redIAdd(s);for(var c=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var d=l,p=0;0!==d.cmp(o);p++)d=d.redSqr();m(p>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),o=s=0)):s=0}a=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},y.mont=function(e){return new w(e)},r(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new y(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:64}],63:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},(t.exports.Rand=i).prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>24]^f[p>>>16&255]^l[b>>>8&255]^h[255&m]^t[y++],s=c[p>>>24]^f[b>>>16&255]^l[m>>>8&255]^h[255&d]^t[y++],a=c[b>>>24]^f[m>>>16&255]^l[d>>>8&255]^h[255&p]^t[y++],u=c[m>>>24]^f[d>>>16&255]^l[p>>>8&255]^h[255&b]^t[y++],d=o,p=s,b=a,m=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&m])^t[y++],s=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[m>>>8&255]<<8|n[255&d])^t[y++],a=(n[b>>>24]<<24|n[m>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[y++],u=(n[m>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[y++],[o>>>=0,s>>>=0,a>>>=0,u>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99;var f=e[n[r[s]=c]=s],l=e[f],h=e[l],d=257*e[c]^16843008*c;i[0][s]=d<<24|d>>>8,i[1][s]=d<<16|d>>>16,i[2][s]=d<<8|d>>>24,i[3][s]=d,d=16843009*h^65537*l^257*f^16843008*s,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===s?s=a=1:(s=f^e[e[e[h^f]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function a(e){this._key=o(e),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,s=h.SBOX[s>>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s],s^=l[o/t|0]<<24):6>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s]),i[o]=i[o-t]^s}for(var a=[],u=0;u>>24]]^h.INV_SUB_MIX[1][h.SBOX[f>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[f>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(e){return s(e=o(e),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},a.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},a.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},a.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=a},{"safe-buffer":194}],66:[function(e,t,r){var s=e("./aes"),c=e("safe-buffer").Buffer,a=e("cipher-base"),n=e("inherits"),f=e("./ghash"),i=e("buffer-xor"),l=e("./incr32");function o(e,t,r,n){a.call(this);var i=c.alloc(4,0);this._cipher=new s.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new f(o),r=function(e,t,r){if(12===t.length)return e._finID=c.concat([t,c.from([0,0,0,1])]),c.concat([t,c.from([0,0,0,2])]);var n=new f(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(c.alloc(o,0))),n.update(c.alloc(8,0));var s=8*i,a=c.alloc(8);a.writeUIntBE(s,0,8),n.update(a),e._finID=n.state;var u=c.from(e._finID);return l(u),u}(this,r,o),this._prev=c.from(r),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}n(o,a),o.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=c.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=s(i)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(s([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":194}],71:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],72:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":93}],73:[function(e,t,r){var o=e("safe-buffer").Buffer,s=e("buffer-xor");function a(e,t,r){var n=t.length,i=s(t,e._cache);return e._cache=e._cache.slice(n),e._prev=o.concat([e._prev,r?t:i]),i}r.encrypt=function(e,t,r){for(var n,i=o.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=o.allocUnsafe(0)),!(e._cache.length<=t.length)){i=o.concat([i,a(e,t,r)]);break}n=e._cache.length,i=o.concat([i,a(e,t.slice(0,n),r)]),t=t.slice(n)}return i}},{"buffer-xor":93,"safe-buffer":194}],74:[function(e,t,r){var s=e("safe-buffer").Buffer;function a(e,t,r){for(var n,i,o=-1,s=0;++o<8;)n=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=u(e._prev,r?n:i);return s}function u(e,t){var r=e.length,n=-1,i=s.allocUnsafe(e.length);for(e=s.concat([e,s.from([t])]);++n>7;return i}r.encrypt=function(e,t,r){for(var n=t.length,i=s.allocUnsafe(n),o=-1;++o=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var o=b(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=m[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new p(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,s=r.data.pub_key,a=b.signature.decode(e,"der"),u=a.s,c=a.r;y(u,i),y(c,i);var f=d.mont(n),l=u.invm(i);return 0===o.toRed(f).redPow(new d(t).mul(l).mod(i)).fromRed().mul(s.toRed(f).redPow(c.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(e,t,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");t=h.concat([i,t]);for(var s=o.modulus.byteLength(),a=[1],u=0;t.length+a.length+2>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1>>1;case"base64":return D(e).length;default:if(i)return n?-1:x(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a/=s=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var f=-1;for(o=r;o>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),""},l.prototype.compare=function(e,t,r,n,i){if(k(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,s,a,u,c,f,l,h,d,p=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return h=t,d=r,P(x(e,(l=this).length-h),l,h,d);case"ascii":return g(this,e,t,r);case"latin1":case"binary":return g(this,e,t,r);case"base64":return u=this,c=t,f=r,P(D(e),u,c,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=t,a=r,P(function(e,t){for(var r,n,i,o=[],s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,(o=this).length-s),o,s,a);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function w(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;ie.length)throw new RangeError("Index out of range")}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,i){return t=+t,r>>>=0,i||N(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return t=+t,r>>>=0,i||N(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e+--t],i=1;0>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||I(e,t,this.length);for(var n=t,i=1,o=this[e+--n];0>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;0<=--o&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function k(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}},{"base64-js":61,ieee754:148}],95:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],96:[function(e,t,r){var i=e("safe-buffer").Buffer,n=e("stream").Transform,o=e("string_decoder").StringDecoder;function s(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(s,n),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=s},{inherits:149,"safe-buffer":194,stream:204,string_decoder:92}],97:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":150}],98:[function(e,a,t){(function(o){var t=e("elliptic"),n=e("bn.js");a.exports=function(e){return new i(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new o(e);if(r&&n.lengthr)?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,e.keys,i)}},u.prototype._update=function(e,t,r,n){var i=this._desState,o=h.readUInt32BE(e,t),s=h.readUInt32BE(e,t+4);h.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],h.writeUInt32BE(r,o,n),h.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=l}h.rip(s,o,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,a=e.keys.length-2;0<=a;a-=2){var u=e.keys[a],c=e.keys[a+1];h.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=h.substitute(u,c),l=o;o=(s^h.permute(f))>>>0,s=l}h.rip(o,s,n,i)}},{"../des":104,inherits:149,"minimalistic-assert":156}],108:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),n=e("inherits"),i=e("../des"),s=i.Cipher,a=i.DES;function u(e,t){o.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:n}),a.create({type:"encrypt",key:i})]:[a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:r})]}function c(e){s.call(this,e);var t=new u(this.type,this.options.key);this._edeState=t}n(c,s),(t.exports=c).create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},{"../des":104,inherits:149,"minimalistic-assert":156}],109:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,s=6;0<=s;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;0<=a;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,s=7;5<=s;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<>>28-t};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var i=0,o=0,s=u.length>>>1,a=0;a>>u[a]&1;for(a=s;a>>u[a]&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;15<=o;o-=4)n<<=6,n|=e>>>o&63;for(o=11;3<=o;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>n[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))for(;r.mod(l).cmp(h);)r.iadd(p)}else for(;r.mod(s).cmp(d);)r.iadd(p);if(m(n=r.shrn(1))&&m(r)&&y(n)&&y(r)&&a.test(n)&&a.test(r))return r}}},{"bn.js":62,"miller-rabin":155,randombytes:181}],113:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],114:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":129,"./elliptic/curve":117,"./elliptic/curves":120,"./elliptic/ec":121,"./elliptic/eddsa":124,"./elliptic/utils":128,brorand:63}],115:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils,T=i.getNAF,I=i.getJSF,l=i.assert;function o(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||0>1]):s.mixedAdd(i[-u-1>>1].neg()):0>1]):s.add(i[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},o.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,s=this._wnafT2,a=this._wnafT3,u=0,c=0;c>1]:A<0&&(S=s[m][-A-1>>1].neg()),_="affine"===S.type?_.mixedAdd(S):_.add(S))}}for(c=0;c=Math.ceil((e.bitLength()+1)/t.step)},s.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),u=i.redMul(s),c=o.redMul(a),f=i.redMul(a),l=s.redMul(o);return this.curve.point(u,c,l,f)},f.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(c.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),u=s.redSub(a).redISub(a);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(c.redSub(o)),r=s.redMul(u)}}else{var c=i.redAdd(o);a=this.curve._mulC(this.z).redSqr(),u=c.redSub(a).redSub(a);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(t),c=o.redMul(s),f=a.redMul(u),l=o.redMul(u),h=s.redMul(a);return this.curve.point(c,f,h,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),c=i.redAdd(a),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"../../elliptic":114,"../curve":117,"bn.js":62,inherits:149}],117:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":115,"./edwards":116,"./mont":118,"./short":119}],118:[function(e,t,r){"use strict";var n=e("../curve"),i=e("bn.js"),o=e("inherits"),s=n.base,a=e("../../elliptic").utils;function u(e){s.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,s),(t.exports=u).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,s.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},u.prototype.point=function(e,t){return new c(this,e,t)},u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;0<=o;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":114,"../curve":117,"bn.js":62,inherits:149}],119:[function(e,t,r){"use strict";var n=e("../curve"),i=e("../../elliptic"),E=e("bn.js"),o=e("inherits"),s=n.base,a=i.utils.assert;function u(e){s.call(this,"short",e),this.a=new E(e.a,16).toRed(this.red),this.b=new E(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new E(t,16),this.y=new E(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new E(0)):(this.x=new E(t,16),this.y=new E(r,16),this.z=new E(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),(t.exports=u).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new E(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new E(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new E(e.a,16),b:new E(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:E.mont(e),r=new E(2).toRed(t).redInvm(),n=r.redNeg(),i=new E(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,a,u,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),d=new E(1),p=new E(0),b=new E(0),m=new E(1),y=0;0!==l.cmpn(0);){var g=h.div(l);u=h.sub(g.mul(l)),c=b.sub(g.mul(d));var _=m.sub(g.mul(p));if(!n&&u.cmp(f)<0)t=a.neg(),r=d,n=u.neg(),i=c;else if(n&&2==++y)break;h=l,l=a=u,b=d,d=c,m=p,p=_}o=u.neg(),s=c;var v=n.sqr().add(i.sqr());return 0<=o.sqr().add(s.sqr()).cmp(v)&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new E(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new E(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),l=n.redMul(c),h=u.redSqr().redIAdd(f).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,d,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),f=r.redMul(u),l=a.redSqr().redIAdd(c).redISub(f).redISub(f),h=a.redMul(f.redISub(l)).redISub(i.redMul(c)),d=this.z.redMul(s);return this.curve.jpoint(l,h,d)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":114,"../curve":117,"bn.js":62,inherits:149}],120:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),s=e("../elliptic"),a=s.utils.assert;function u(e){"short"===e.type?this.curve=new s.curve.short(e):"edwards"===e.type?this.curve=new s.curve.edwards(e):this.curve=new s.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,r){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new u(r);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"../elliptic":114,"./precomputed/secp256k1":127,"hash.js":134}],121:[function(e,t,r){"use strict";var m=e("bn.js"),y=e("hmac-drbg"),o=e("../../elliptic"),d=o.utils.assert,n=e("./key"),g=e("./signature");function i(e){if(!(this instanceof i))return new i(e);"string"==typeof e&&(d(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=i).prototype.keyPair=function(e){return new n(this,e)},i.prototype.keyFromPrivate=function(e,t){return n.fromPrivate(this,e,t)},i.prototype.keyFromPublic=function(e,t){return n.fromPublic(this,e,t)},i.prototype.genKeyPair=function(e){e||(e={});for(var t=new y({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(t.generate(r));if(!(0>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&c)throw new Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var f=t.r.invm(i),l=i.sub(o).mul(f).umod(i),h=a.mul(f).umod(i);return this.g.mulAdd(l,s,h)},i.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new g(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":114,"./key":122,"./signature":123,"bn.js":62,"hmac-drbg":146}],122:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=o).fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},{"../../elliptic":114,"bn.js":62}],123:[function(e,t,r){"use strict";var a=e("bn.js"),u=e("../../elliptic").utils,n=u.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new a(e.r,16),this.s=new a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,s=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=i).prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new c;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=f(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=f(e,r);if(e.length!==o+r.place)return!1;var s=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),this.r=new a(i),this.s=new a(s),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=s(t),r=s(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var i=n.concat(r),o=[48];return l(o,i.length),o=o.concat(i),u.encode(o,e)}},{"../../elliptic":114,"bn.js":62}],124:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../../elliptic"),o=i.utils,s=o.assert,u=o.parseBytes,a=e("./key"),c=e("./signature");function f(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}(t.exports=f).prototype.sign=function(e,t){e=u(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),a=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},f.prototype.verify=function(e,t,r){e=u(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t>1)-1>1)-s:s,i.isubn(o)}else o=0;r.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;ui){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",a.name,a.message)}}else s=o[t]=r,++e._eventsCount;return e}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t=this._blockSize;){for(var i=this._blockOffset;i=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":145}],145:[function(e,t,r){"use strict";var c=e("minimalistic-assert"),n=e("inherits");function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=n,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,s=255&i;o?r.push(o,s):r.push(s)}else for(n=0;n>>0}return o},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,o,s,a){var u=0,c=t;return u+=(c=c+n>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},r.sum64_5_hi=function(e,t,r,n,i,o,s,a,u,c){var f=0,l=t;return f+=(l=l+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,i,o,s,a,u,c){return t+n+o+a+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:149,"minimalistic-assert":156}],146:[function(e,t,r){"use strict";var n=e("hash.js"),s=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=s.toArray(e.entropy,e.entropyEnc||"hex"),r=s.toArray(e.nonce,e.nonceEnc||"hex"),n=s.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}(t.exports=o).prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=s.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=a;0>=-f,f+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(t+=1<=s+l?h/u:h*Math.pow(2,1-l))*u&&(s++,u/=2),f<=s+l?(a=0,s=f):1<=s+l?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));8<=i;e[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<e.length){for(var o=0;o<=e.length-1-r;o++)this.temp_buffs[this.bytes_in_sequence][o]=e[r+o];this.bytes_remaining=r+this.bytes_in_sequence-e.length,r=e.length-1}else this.string+=e.slice(r,r+this.bytes_in_sequence).toString(),r=r+this.bytes_in_sequence-1}else if(34===t)this.tState=_,this.onToken(y,this.string),this.offset+=a.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===t)this.tState=x;else{if(!(32<=t))return this.charError(e,r);this.string+=String.fromCharCode(t)}else if(this.tState===x)if(34===(t=e[r]))this.string+='"',this.tState=L;else if(92===t)this.string+="\\",this.tState=L;else if(47===t)this.string+="/",this.tState=L;else if(98===t)this.string+="\b",this.tState=L;else if(102===t)this.string+="\f",this.tState=L;else if(110===t)this.string+="\n",this.tState=L;else if(114===t)this.string+="\r",this.tState=L;else if(116===t)this.string+="\t",this.tState=L;else{if(117!==t)return this.charError(e,r);this.unicode="",this.tState=D}else if(this.tState===D||this.tState===P||this.tState===k||this.tState===B){if(!(48<=(t=e[r])&&t<64||64>>32-t}function u(e,t,r,n,i,o,s){return a(e+(t&r|~t&n)+i+o|0,s)+t|0}function c(e,t,r,n,i,o,s){return a(e+(t&n|r&~n)+i+o|0,s)+t|0}function f(e,t,r,n,i,o,s){return a(e+(t^r^n)+i+o|0,s)+t|0}function l(e,t,r,n,i,o,s){return a(e+(r^(t|~n))+i+o|0,s)+t|0}e(n,r),n.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;n=l(n=l(n=l(n=l(n=f(n=f(n=f(n=f(n=c(n=c(n=c(n=c(n=u(n=u(n=u(n=u(n,i=u(i,o=u(o,r=u(r,n,i,o,e[0],3614090360,7),n,i,e[1],3905402710,12),r,n,e[2],606105819,17),o,r,e[3],3250441966,22),i=u(i,o=u(o,r=u(r,n,i,o,e[4],4118548399,7),n,i,e[5],1200080426,12),r,n,e[6],2821735955,17),o,r,e[7],4249261313,22),i=u(i,o=u(o,r=u(r,n,i,o,e[8],1770035416,7),n,i,e[9],2336552879,12),r,n,e[10],4294925233,17),o,r,e[11],2304563134,22),i=u(i,o=u(o,r=u(r,n,i,o,e[12],1804603682,7),n,i,e[13],4254626195,12),r,n,e[14],2792965006,17),o,r,e[15],1236535329,22),i=c(i,o=c(o,r=c(r,n,i,o,e[1],4129170786,5),n,i,e[6],3225465664,9),r,n,e[11],643717713,14),o,r,e[0],3921069994,20),i=c(i,o=c(o,r=c(r,n,i,o,e[5],3593408605,5),n,i,e[10],38016083,9),r,n,e[15],3634488961,14),o,r,e[4],3889429448,20),i=c(i,o=c(o,r=c(r,n,i,o,e[9],568446438,5),n,i,e[14],3275163606,9),r,n,e[3],4107603335,14),o,r,e[8],1163531501,20),i=c(i,o=c(o,r=c(r,n,i,o,e[13],2850285829,5),n,i,e[2],4243563512,9),r,n,e[7],1735328473,14),o,r,e[12],2368359562,20),i=f(i,o=f(o,r=f(r,n,i,o,e[5],4294588738,4),n,i,e[8],2272392833,11),r,n,e[11],1839030562,16),o,r,e[14],4259657740,23),i=f(i,o=f(o,r=f(r,n,i,o,e[1],2763975236,4),n,i,e[4],1272893353,11),r,n,e[7],4139469664,16),o,r,e[10],3200236656,23),i=f(i,o=f(o,r=f(r,n,i,o,e[13],681279174,4),n,i,e[0],3936430074,11),r,n,e[3],3572445317,16),o,r,e[6],76029189,23),i=f(i,o=f(o,r=f(r,n,i,o,e[9],3654602809,4),n,i,e[12],3873151461,11),r,n,e[15],530742520,16),o,r,e[2],3299628645,23),i=l(i,o=l(o,r=l(r,n,i,o,e[0],4096336452,6),n,i,e[7],1126891415,10),r,n,e[14],2878612391,15),o,r,e[5],4237533241,21),i=l(i,o=l(o,r=l(r,n,i,o,e[12],1700485571,6),n,i,e[3],2399980690,10),r,n,e[10],4293915773,15),o,r,e[1],2240044497,21),i=l(i,o=l(o,r=l(r,n,i,o,e[8],1873313359,6),n,i,e[15],4264355552,10),r,n,e[6],2734768916,15),o,r,e[13],1309151649,21),i=l(i,o=l(o,r=l(r,n,i,o,e[4],4149444226,6),n,i,e[11],3174756917,10),r,n,e[2],718787259,15),o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56>8,s=255&i;o?r.push(o,s):r.push(s)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},{}],158:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"}},{}],159:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],160:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});r.PublicKey=s;var a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});r.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=f,r.DSAparam=n.define("DSAparam",function(){this.int()});var l=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=l;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":161,"asn1.js":47}],161:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":47}],162:[function(e,t,r){(function(h){var d=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,p=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,b=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,m=e("evp_bytestokey"),y=e("browserify-aes");t.exports=function(e,t){var r,n=e.toString(),i=n.match(d);if(i){var o="aes"+i[1],s=new h(i[2],"hex"),a=new h(i[3].replace(/[\r\n]/g,""),"base64"),u=m(t,s.slice(0,8),parseInt(i[1],10)).key,c=[],f=y.createDecipheriv(o,u,s);c.push(f.update(a)),c.push(f.final()),r=h.concat(c)}else{var l=n.match(b);r=new h(l[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(p)[1],data:r}}}).call(this,e("buffer").Buffer)},{"browserify-aes":67,buffer:94,evp_bytestokey:131}],163:[function(t,r,e){(function(g){var _=t("./asn1"),v=t("./aesid.json"),E=t("./fixProc"),w=t("browserify-aes"),S=t("pbkdf2");function e(e){var t;"object"!=typeof e||g.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new g(e));var r,n,i,o,s,a,u,c,f,l,h,d,p,b=E(e,t),m=b.tag,y=b.data;switch(m){case"CERTIFICATE":n=_.certificate.decode(y,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=_.PublicKey.decode(y,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return _.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=_.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+m);case"ENCRYPTED PRIVATE KEY":y=_.EncryptedPrivateKey.decode(y,"der"),o=t,s=(i=y).algorithm.decrypt.kde.kdeparams.salt,a=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),u=v[i.algorithm.decrypt.cipher.algo.join(".")],c=i.algorithm.decrypt.cipher.iv,f=i.subjectPrivateKey,l=parseInt(u.split("-")[1],10)/8,h=S.pbkdf2Sync(o,s,a,l),d=w.createDecipheriv(u,h,c),(p=[]).push(d.update(f)),p.push(d.final()),y=g.concat(p);case"PRIVATE KEY":switch(r=(n=_.PrivateKey.decode(y,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return _.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:_.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=_.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+m);case"RSA PUBLIC KEY":return _.RSAPublicKey.decode(y,"der");case"RSA PRIVATE KEY":return _.RSAPrivateKey.decode(y,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:_.DSAPrivateKey.decode(y,"der")};case"EC PRIVATE KEY":return{curve:(y=_.ECPrivateKey.decode(y,"der")).parameters.value,privateKey:y.privateKey};default:throw new Error("unknown key type "+m)}}(r.exports=e).signature=_.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":159,"./asn1":160,"./fixProc":162,"browserify-aes":67,buffer:94,pbkdf2:164}],164:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":165,"./lib/sync":168}],165:[function(e,t,r){(function(c,f){var l,h=e("./precondition"),d=e("./default-encoding"),p=e("./sync"),b=e("safe-buffer").Buffer,m=f.crypto&&f.crypto.subtle,y={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},g=[];function _(e,t,r,n,i){return m.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return m.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return b.from(e)})}t.exports=function(t,r,n,i,o,s){"function"==typeof o&&(s=o,o=void 0);var e,a,u=y[(o=o||"sha1").toLowerCase()];if(!u||"function"!=typeof f.Promise)return c.nextTick(function(){var e;try{e=p(t,r,n,i,o)}catch(e){return s(e)}s(null,e)});if(h(t,r,n,i),"function"!=typeof s)throw new Error("No callback provided to pbkdf2");b.isBuffer(t)||(t=b.from(t,d)),b.isBuffer(r)||(r=b.from(r,d)),e=function(e){if(f.process&&!f.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==g[e])return g[e];var t=_(l=l||b.alloc(8),l,10,128,e).then(function(){return!0}).catch(function(){return!1});return g[e]=t}(u).then(function(e){return e?_(t,r,n,i,u):p(t,r,n,i,o)}),a=s,e.then(function(e){c.nextTick(function(){a(null,e)})},function(e){c.nextTick(function(){a(e)})})}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":166,"./precondition":167,"./sync":168,_process:170,"safe-buffer":194}],166:[function(e,r,t){(function(e){var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:170}],167:[function(e,t,r){(function(r){var i=Math.pow(2,30)-1;function o(e,t){if("string"!=typeof e&&!r.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}t.exports=function(e,t,r,n){if(o(e,"Password"),o(t,"Salt"),"number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||io?t=i(t):t.lengths||0<=new c(t).cmp(o.modulus))throw new Error("decryption error");i=r?p(new c(t),o):h(t,o);var a=b.alloc(s-i.length);if(i=b.concat([a,i],s),4===n)return function(e,t){var r=e.modulus.byteLength(),n=d("sha1").update(b.alloc(0)).digest(),i=n.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),s=t.slice(i+1),a=l(o,f(s,i)),u=l(s,f(a,r-i-1));if(function(e,t){e=b.from(e),t=b.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var s=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;s.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,i,r);if(3===n)return i;throw new Error("unknown padding")}},{"./mgf":172,"./withPublic":175,"./xor":176,"bn.js":62,"browserify-rsa":85,"create-hash":99,"parse-asn1":163,"safe-buffer":194}],174:[function(e,t,r){var s=e("parse-asn1"),h=e("randombytes"),d=e("create-hash"),p=e("./mgf"),b=e("./xor"),m=e("bn.js"),a=e("./withPublic"),u=e("browserify-rsa"),y=e("safe-buffer").Buffer;t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,o=s(e);if(4===n)i=function(e,t){var r=e.modulus.byteLength(),n=t.length,i=d("sha1").update(y.alloc(0)).digest(),o=i.length,s=2*o;if(r-s-2= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=g-_,A=Math.floor,T=String.fromCharCode;function I(e){throw new RangeError(l[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function p(e,t){var r=e.split("@"),n="";return 1>>10&1023|55296),e=56320|1023&e),t+=T(e)}).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?A(e/a):e>>1,e+=A(e/t);h*v>>1A((y-p)/s))&&I("overflow"),p+=u*s,!(u<(c=a<=m?_:m+v<=a?v:a-m));a+=g)s>A(y/(f=g-c))&&I("overflow"),s*=f;m=R(p-o,t=h.length+1,0==o),A(p/t)>y-b&&I("overflow"),b+=A(p/t),p%=t,h.splice(p++,0,b)}return N(h)}function m(e){var t,r,n,i,o,s,a,u,c,f,l,h,d,p,b,m=[];for(h=(e=M(e)).length,t=w,o=E,s=r=0;sA((y-r)/(d=n+1))&&I("overflow"),r+=(a-t)*d,t=a,s=0;sy&&I("overflow"),l==t){for(u=r,c=g;!(u<(f=c<=o?_:o+v<=c?v:c-o));c+=g)b=u-f,p=g-f,m.push(T(O(f+b%p,0))),u=A(b/p);m.push(T(O(u,0))),o=R(r,d,n==i),r=0,++n}++r,++t}return m.join("")}if(i={version:"1.4.1",ucs2:{decode:M,encode:N},decode:b,encode:m,toASCII:function(e){return p(e,function(e){return c.test(e)?"xn--"+m(e):e})},toUnicode:function(e){return p(e,function(e){return u.test(e)?b(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return i});else if(t&&r)if(L.exports==t)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],178:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var a,u,c=e.length;0t.highWaterMark&&(t.highWaterMark=(u<=(r=e)?r=u:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e);var r}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y(f,e):f(e))}function f(e){v("emit readable"),e.emit("readable"),E(e)}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.highWaterMark||t.ended))return v("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?S(this):l(this),null;if(0===(e=c(e,t))&&t.ended)return 0===t.length&&S(this),null;var n,i=t.needReadable;return v("need readable",i),(0===t.length||t.length-e>>32-t}function A(e,t,r,n,i,o,s,a){return S(e+(t^r^n)+o+s|0,a)+i|0}function T(e,t,r,n,i,o,s,a){return S(e+(t&r|~t&n)+o+s|0,a)+i|0}function I(e,t,r,n,i,o,s,a){return S(e+((t|~r)^n)+o+s|0,a)+i|0}function M(e,t,r,n,i,o,s,a){return S(e+(t&n|r&~n)+o+s|0,a)+i|0}function N(e,t,r,n,i,o,s,a){return S(e+(t^(r|~n))+o+s|0,a)+i|0}i(s,o),s.prototype._update=function(){for(var e=m,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,u=0|this._b,c=0|this._c,f=0|this._d,l=0|this._e,h=0;h<80;h+=1){var d,p;h<16?(d=A(r,n,i,o,s,e[y[h]],E[0],_[h]),p=N(a,u,c,f,l,e[g[h]],w[0],v[h])):h<32?(d=T(r,n,i,o,s,e[y[h]],E[1],_[h]),p=M(a,u,c,f,l,e[g[h]],w[1],v[h])):h<48?(d=I(r,n,i,o,s,e[y[h]],E[2],_[h]),p=I(a,u,c,f,l,e[g[h]],w[2],v[h])):h<64?(d=M(r,n,i,o,s,e[y[h]],E[3],_[h]),p=T(a,u,c,f,l,e[g[h]],w[3],v[h])):(d=N(r,n,i,o,s,e[y[h]],E[4],_[h]),p=A(a,u,c,f,l,e[g[h]],w[4],v[h])),r=s,s=o,o=S(i,10),i=n,n=d,a=l,l=f,f=S(c,10),c=u,u=p}var b=this._b+i+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+r+u|0,this._e=this._a+n+c|0,this._a=b},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56"===n?(A(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=w.TEXT):(v(l,n)&&(t.state=w.SGML_DECL_QUOTED),t.sgmlDecl+=n);continue;case w.SGML_DECL_QUOTED:n===t.q&&(t.state=w.SGML_DECL,t.q=""),t.sgmlDecl+=n;continue;case w.DOCTYPE:">"===n?(t.state=w.TEXT,A(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=n,"["===n?t.state=w.DOCTYPE_DTD:v(l,n)&&(t.state=w.DOCTYPE_QUOTED,t.q=n));continue;case w.DOCTYPE_QUOTED:t.doctype+=n,n===t.q&&(t.q="",t.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:t.doctype+=n,"]"===n?t.state=w.DOCTYPE:v(l,n)&&(t.state=w.DOCTYPE_DTD_QUOTED,t.q=n);continue;case w.DOCTYPE_DTD_QUOTED:t.doctype+=n,n===t.q&&(t.state=w.DOCTYPE_DTD,t.q="");continue;case w.COMMENT:"-"===n?t.state=w.COMMENT_ENDING:t.comment+=n;continue;case w.COMMENT_ENDING:"-"===n?(t.state=w.COMMENT_ENDED,t.comment=I(t.opt,t.comment),t.comment&&A(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+n,t.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==n?(O(t,"Malformed comment"),t.comment+="--"+n,t.state=w.COMMENT):t.state=w.TEXT;continue;case w.CDATA:"]"===n?t.state=w.CDATA_ENDING:t.cdata+=n;continue;case w.CDATA_ENDING:"]"===n?t.state=w.CDATA_ENDING_2:(t.cdata+="]"+n,t.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===n?(t.cdata&&A(t,"oncdata",t.cdata),A(t,"onclosecdata"),t.cdata="",t.state=w.TEXT):"]"===n?t.cdata+="]":(t.cdata+="]]"+n,t.state=w.CDATA);continue;case w.PROC_INST:"?"===n?t.state=w.PROC_INST_ENDING:v(f,n)?t.state=w.PROC_INST_BODY:t.procInstName+=n;continue;case w.PROC_INST_BODY:if(!t.procInstBody&&v(f,n))continue;"?"===n?t.state=w.PROC_INST_ENDING:t.procInstBody+=n;continue;case w.PROC_INST_ENDING:">"===n?(A(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=w.TEXT):(t.procInstBody+="?"+n,t.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:v(_,n)?t.tagName+=n:(R(t),">"===n?x(t):"/"===n?t.state=w.OPEN_TAG_SLASH:(E(f,n)&&O(t,"Invalid character in tag name"),t.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===n?(x(t,!0),D(t)):(O(t,"Forward-slash in opening tag not followed by >"),t.state=w.ATTRIB);continue;case w.ATTRIB:if(v(f,n))continue;">"===n?x(t):"/"===n?t.state=w.OPEN_TAG_SLASH:v(g,n)?(t.attribName=n,t.attribValue="",t.state=w.ATTRIB_NAME):O(t,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===n?t.state=w.ATTRIB_VALUE:">"===n?(O(t,"Attribute without value"),t.attribValue=t.attribName,L(t),x(t)):v(f,n)?t.state=w.ATTRIB_NAME_SAW_WHITE:v(_,n)?t.attribName+=n:O(t,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===n)t.state=w.ATTRIB_VALUE;else{if(v(f,n))continue;O(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",A(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===n?x(t):v(g,n)?(t.attribName=n,t.state=w.ATTRIB_NAME):(O(t,"Invalid attribute name"),t.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(v(f,n))continue;v(l,n)?(t.q=n,t.state=w.ATTRIB_VALUE_QUOTED):(O(t,"Unquoted attribute value"),t.state=w.ATTRIB_VALUE_UNQUOTED,t.attribValue=n);continue;case w.ATTRIB_VALUE_QUOTED:if(n!==t.q){"&"===n?t.state=w.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=n;continue}L(t),t.q="",t.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:v(f,n)?t.state=w.ATTRIB:">"===n?x(t):"/"===n?t.state=w.OPEN_TAG_SLASH:v(g,n)?(O(t,"No whitespace between attributes"),t.attribName=n,t.attribValue="",t.state=w.ATTRIB_NAME):O(t,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(E(d,n)){"&"===n?t.state=w.ATTRIB_VALUE_ENTITY_U:t.attribValue+=n;continue}L(t),">"===n?x(t):t.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(t.tagName)">"===n?D(t):v(_,n)?t.tagName+=n:t.script?(t.script+=""===n?D(t):O(t,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(t.state){case w.TEXT_ENTITY:var s=w.TEXT,a="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:var s=w.ATTRIB_VALUE_QUOTED,a="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:var s=w.ATTRIB_VALUE_UNQUOTED,a="attribValue"}";"===n?(t[a]+=P(t),t.entity="",t.state=s):v(h,n)?t.entity+=n:(O(t,"Invalid character entity"),t[a]+="&"+t.entity+n,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(u.MAX_BUFFER_LENGTH,10),r=0,n=0,i=c.length;n",p="[CDATA[",b="DOCTYPE",a="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",y={xml:a,xmlns:m};f=r(f),e=r(e),t=r(t);var g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function r(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function v(e,t){return r=e,"[object RegExp]"===Object.prototype.toString.call(r)?!!t.match(e):e[t];var r}function E(e,t){return!v(e,t)}l=r(l),h=r(h),d=r(d);var w=0;for(var w in u.STATE={BEGIN:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(e){var t=u.ENTITIES[e],r="number"==typeof t?String.fromCharCode(t):t;u.ENTITIES[e]=r}),u.STATE)u.STATE[u.STATE[w]]=w;function S(e,t,r){e[t]&&e[t](r)}function A(e,t,r){e.textNode&&T(e),S(e,t,r)}function T(e){e.textNode=I(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function I(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function M(e,t){return T(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function N(e){return e.closedRoot||O(e,"Unclosed root tag"),e.state!==w.BEGIN&&e.state!==w.TEXT&&M(e,"Unexpected end"),T(e),e.c="",e.closed=!0,S(e,"onend"),n.call(e,e.strict,e.opt),e}function O(e,t){if("object"!=typeof e||!(e instanceof n))throw new Error("bad call to strictFail");e.strict&&M(e,t)}function R(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0}function C(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function L(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))return e.attribName=e.attribValue="";if(e.opt.xmlns){var t=C(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==a)O(e,"xml: prefix must be bound to "+a+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==m)O(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function x(t,e){if(t.opt.xmlns){var r=t.tag,n=C(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(O(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){A(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var o=0,s=t.attribList.length;o",r.tagName="",void(r.state=w.SCRIPT);A(r,"onscript",r.script),r.script=""}var e=r.tags.length,t=r.tagName;r.strict||(t=t[r.looseCase]());for(var n=t;e--;){if(r.tags[e].name===n)break;O(r,"Unexpected close tag")}if(e<0)return O(r,"Unmatched closing tag: "+r.tagName),r.textNode+="",void(r.state=w.TEXT);r.tagName=t;for(var i=r.tags.length;i-- >e;){var o=r.tag=r.tags.pop();r.tagName=r.tag.name,A(r,"onclosetag",r.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=r.tags[r.tags.length-1]||r;r.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var t=o.ns[e];A(r,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0,r.state=w.TEXT}function P(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),i.toLowerCase()!==r?(O(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCharCode(t))}w=u.STATE}(void 0===t?sax={}:t)}).call(this,B("buffer").Buffer)},{buffer:94,stream:204,string_decoder:92}],196:[function(e,t,r){var f=e("safe-buffer").Buffer;function n(e,t){this._block=f.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=f.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":194}],197:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":198,"./sha1":199,"./sha224":200,"./sha256":201,"./sha384":202,"./sha512":203}],198:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,y=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,i.call(this,64,56)}n(a,i),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(e){for(var t,r,n,i,o,s,a=this._w,u=0|this._a,c=0|this._b,f=0|this._c,l=0|this._d,h=0|this._e,d=0;d<16;++d)a[d]=e.readInt32BE(4*d);for(;d<80;++d)a[d]=a[d-3]^a[d-8]^a[d-14]^a[d-16];for(var p=0;p<80;++p){var b=~~(p/20),m=0|((s=u)<<5|s>>>27)+(n=c,i=f,o=l,0===(r=b)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+a[p]+y[b];h=l,l=f,f=(t=c)<<30|t>>>2,c=u,u=m}this._a=u+this._a|0,this._b=c+this._b|0,this._c=f+this._c|0,this._d=l+this._d|0,this._e=h+this._e|0},a.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=a},{"./hash":196,inherits:149,"safe-buffer":194}],199:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,i.call(this,64,56)}n(a,i),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(e){for(var t,r,n,i,o,s,a,u=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0;p<16;++p)u[p]=e.readInt32BE(4*p);for(;p<80;++p)u[p]=(t=u[p-3]^u[p-8]^u[p-14]^u[p-16])<<1|t>>>31;for(var b=0;b<80;++b){var m=~~(b/20),y=0|((a=c)<<5|a>>>27)+(i=f,o=l,s=h,0===(n=m)?i&o|~i&s:2===n?i&o|i&s|o&s:i^o^s)+d+u[b]+g[m];d=h,h=l,l=(r=f)<<30|r>>>2,f=c,c=y}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0},a.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=a},{"./hash":196,inherits:149,"safe-buffer":194}],200:[function(e,t,r){var n=e("inherits"),i=e("./sha256"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":196,"./sha256":201,inherits:149,"safe-buffer":194}],201:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function a(){this.init(),this._w=s,i.call(this,64,56)}n(a,i),a.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},a.prototype._update=function(e){for(var t,r,n,i,o,s,a,u=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,y=0;y<16;++y)u[y]=e.readInt32BE(4*y);for(;y<64;++y)u[y]=0|(((r=u[y-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+u[y-7]+(((t=u[y-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+u[y-16];for(var g=0;g<64;++g){var _=m+(((a=d)>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+((s=b)^d&(p^s))+E[g]+u[g]|0,v=0|(((o=c)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=c)&(i=f)|l&(n|i));m=b,b=p,p=d,d=h+_|0,h=l,l=f,f=c,c=_+v|0}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},a.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=a},{"./hash":196,inherits:149,"safe-buffer":194}],202:[function(e,t,r){var n=e("inherits"),i=e("./sha512"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(160);function u(){this.init(),this._w=a,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var n=s.allocUnsafe(48);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),n},t.exports=u},{"./hash":196,"./sha512":203,inherits:149,"safe-buffer":194}],203:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,ee=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,i.call(this,128,112)}function te(e,t,r){return r^e&(t^r)}function re(e,t,r){return e&t|r&(e|t)}function ne(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ie(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function oe(e,t){return e>>>0>>0?1:0}n(a,i),a.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},a.prototype._update=function(e){for(var t,r,n,i,o,s,a,u,c=this._w,f=0|this._ah,l=0|this._bh,h=0|this._ch,d=0|this._dh,p=0|this._eh,b=0|this._fh,m=0|this._gh,y=0|this._hh,g=0|this._al,_=0|this._bl,v=0|this._cl,E=0|this._dl,w=0|this._el,S=0|this._fl,A=0|this._gl,T=0|this._hl,I=0;I<32;I+=2)c[I]=e.readInt32BE(4*I),c[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var M=c[I-30],N=c[I-30+1],O=((a=M)>>>1|(u=N)<<31)^(a>>>8|u<<24)^a>>>7,R=((o=N)>>>1|(s=M)<<31)^(o>>>8|s<<24)^(o>>>7|s<<25);M=c[I-4],N=c[I-4+1];var C=((n=M)>>>19|(i=N)<<13)^(i>>>29|n<<3)^n>>>6,L=((t=N)>>>19|(r=M)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),x=c[I-14],D=c[I-14+1],P=c[I-32],k=c[I-32+1],B=R+D|0,U=O+x+oe(B,R)|0;U=(U=U+C+oe(B=B+L|0,L)|0)+P+oe(B=B+k|0,k)|0,c[I]=U,c[I+1]=B}for(var j=0;j<160;j+=2){U=c[j],B=c[j+1];var F=re(f,l,h),q=re(g,_,v),H=ne(f,g),V=ne(g,f),G=ie(p,w),z=ie(w,p),Y=ee[j],X=ee[j+1],K=te(p,b,m),W=te(w,S,A),Q=T+z|0,$=y+G+oe(Q,T)|0;$=($=($=$+K+oe(Q=Q+W|0,W)|0)+Y+oe(Q=Q+X|0,X)|0)+U+oe(Q=Q+B|0,B)|0;var Z=V+q|0,J=H+F+oe(Z,V)|0;y=m,T=A,m=b,A=S,b=p,S=w,p=d+$+oe(w=E+Q|0,E)|0,d=h,E=v,h=l,v=_,l=f,_=g,f=$+J+oe(g=Q+Z|0,Q)|0}this._al=this._al+g|0,this._bl=this._bl+_|0,this._cl=this._cl+v|0,this._dl=this._dl+E|0,this._el=this._el+w|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+T|0,this._ah=this._ah+f+oe(this._al,g)|0,this._bh=this._bh+l+oe(this._bl,_)|0,this._ch=this._ch+h+oe(this._cl,v)|0,this._dh=this._dh+d+oe(this._dl,E)|0,this._eh=this._eh+p+oe(this._el,w)|0,this._fh=this._fh+b+oe(this._fl,S)|0,this._gh=this._gh+m+oe(this._gl,A)|0,this._hh=this._hh+y+oe(this._hl,T)|0},a.prototype._hash=function(){var n=o.allocUnsafe(64);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),n},t.exports=a},{"./hash":196,inherits:149,"safe-buffer":194}],204:[function(e,t,r){t.exports=n;var f=e("events").EventEmitter;function n(){f.call(this)}e("inherits")(n,f),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",a));var o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(c(),0===f.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",u),t.on("error",u),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},{events:130,inherits:149,"readable-stream/duplex.js":183,"readable-stream/passthrough.js":189,"readable-stream/readable.js":190,"readable-stream/transform.js":191,"readable-stream/writable.js":192}],205:[function(r,e,i){(function(u){var c=r("./lib/request"),e=r("./lib/response"),f=r("xtend"),t=r("builtin-status-codes"),l=r("url"),n=i;n.request=function(e,t){e="string"==typeof e?l.parse(e):f(e);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=e.protocol||r,i=e.hostname||e.host,o=e.port,s=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?n+"//"+i:"")+(o?":"+o:"")+s,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var a=new c(e);return t&&a.on("response",t),a},n.get=function(e,t){var r=n.request(e,t);return r.end(),r},n.ClientRequest=c,n.IncomingMessage=e.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=t,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":207,"./lib/response":208,"builtin-status-codes":95,url:224,xtend:329}],206:[function(e,t,a){(function(e){a.fetch=s(e.fetch)&&s(e.ReadableStream),a.writableStream=s(e.WritableStream),a.abortController=s(e.AbortController),a.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),a.blobConstructor=!0}catch(e){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,o=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}a.arraybuffer=a.fetch||i&&n("arraybuffer"),a.msstream=!a.fetch&&o&&n("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&i&&n("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!r()&&s(r().overrideMimeType),a.vbArray=s(e.VBArray),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],207:[function(o,a,e){(function(u,c,f){var l=o("./capability"),e=o("inherits"),t=o("./response"),s=o("readable-stream"),h=o("to-arraybuffer"),r=t.IncomingMessage,d=t.readyStates;var n=a.exports=function(t){var e,r=this;s.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new f(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])});var n,i,o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!l.abortController)e=!(o=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!l.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(n=e,i=o,l.fetch&&i?"fetch":l.mozchunkedarraybuffer?"moz-chunked-arraybuffer":l.msstream?"ms-stream":l.arraybuffer&&n?"arraybuffer":l.vbArray&&n?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};e(n,s.Writable),n.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:e,value:t})},n.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},n.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},n.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,n=t._headers,r=null;"GET"!==e.method&&"HEAD"!==e.method&&(r=l.arraybuffer?h(f.concat(t._body)):l.blobConstructor?new c.Blob(t._body.map(function(e){return h(e)}),{type:(n["content-type"]||{}).value||""}):f.concat(t._body).toString());var i=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){i.push([t,e])}):i.push([t,r])}),"fetch"===t._mode){var o=null;if(l.abortController){var s=new AbortController;o=s.signal,t._fetchAbortController=s,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=c.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))}c.fetch(t._opts.url,{method:t._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){c.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var a=t._xhr=new c.XMLHttpRequest;try{a.open(t._opts.method,t._opts.url,!0)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}"responseType"in a&&(a.responseType=t._mode.split(":")[0]),"withCredentials"in a&&(a.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(a.timeout=e.requestTimeout,a.ontimeout=function(){t.emit("requestTimeout")}),i.forEach(function(e){a.setRequestHeader(e[0],e[1])}),t._response=null,a.onreadystatechange=function(){switch(a.readyState){case d.LOADING:case d.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(a.onprogress=function(){t._onXHRProgress()}),a.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{a.send(r)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}}}},n.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},n.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},n.prototype._write=function(e,t,r){this._body.push(e),r()},n.prototype.abort=n.prototype.destroy=function(){this._destroyed=!0,c.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o("buffer").Buffer)},{"./capability":206,"./response":208,_process:170,buffer:94,inherits:149,"readable-stream":218,"to-arraybuffer":222}],208:[function(r,e,n){(function(c,f,l){var h=r("./capability"),e=r("inherits"),d=r("readable-stream"),a=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var i=this;if(d.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){c.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(e,t){i.headers[t.toLowerCase()]=e,i.rawHeaders.push(t,e)}),h.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(e,t){i._destroyed?t():i.push(new l(r))?e():i._resumeFetch=e})},close:function(){f.clearTimeout(n),i._destroyed||i.push(null)},abort:function(e){i._destroyed||i.emit("error",e)}});try{return void t.body.pipeTo(o).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})}catch(e){}}var s=t.body.getReader();!function t(){s.read().then(function(e){if(!i._destroyed){if(e.done)return f.clearTimeout(n),void i.push(null);i.push(new l(e.value)),t()}}).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})}()}else{if(i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(t[2])):void 0!==i.headers[r]?i.headers[r]+=", "+t[2]:i.headers[r]=t[2],i.rawHeaders.push(t[1],t[2])}}),i._charset="x-user-defined",!h.overrideMimeType){var a=i.rawHeaders["mime-type"];if(a){var u=a.match(/;\s*charset=([^;])(;|$)/);u&&(i._charset=u[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};e(t,d.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==a.DONE)break;try{r=new f.VBArray(e.responseBody).toArray()}catch(e){}if(null!==r){t.push(new l(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new l(n.length),o=0;ot._pos&&(t.push(new l(new Uint8Array(s.result.slice(t._pos)))),t._pos=s.result.byteLength)},s.onload=function(){t.push(null)},s.readAsArrayBuffer(r)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":206,_process:170,buffer:94,inherits:149,"readable-stream":218}],209:[function(e,t,r){(function(a){"use strict";!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return a.nextTick(e);case 2:return a.nextTick(function(){e.call(null,t)});case 3:return a.nextTick(function(){e.call(null,t,r)});case 4:return a.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(s-1),o=0;ot.highWaterMark&&(t.highWaterMark=(b<=(r=e)?r=b:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(S,e):S(e))}function S(e){v("emit readable"),e.emit("readable"),N(e)}function A(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(T,e,t))}function T(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(s);break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(s);break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(e){var t=e._readableState;if(0=t.highWaterMark||t.ended))return v("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,i=t.needReadable;return v("need readable",i),(0===t.length||t.length-e>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,t.copy(r,n),s+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":194,util:64}],216:[function(e,t,r){"use strict";var o=e("process-nextick-args");function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(s,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(s,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":209}],217:[function(e,t,r){t.exports=e("events").EventEmitter},{events:130}],218:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":210,"./lib/_stream_passthrough.js":211,"./lib/_stream_readable.js":212,"./lib/_stream_transform.js":213,"./lib/_stream_writable.js":214}],219:[function(e,t,r){arguments[4][92][0].apply(r,arguments)},{dup:92,"safe-buffer":194}],220:[function(e,t,r){var n=e("buffer").Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var o=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=s)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function s(e){return e.toString(this.encoding)}function a(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:94}],221:[function(u,e,c){(function(e,t){var n=u("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},s=0;function a(e,t){this._id=e,this._clearFn=t}c.setTimeout=function(){return new a(r.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new a(r.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},c.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},c._unrefActive=c.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},c.setImmediate="function"==typeof e?e:function(e){var t=s++,r=!(arguments.length<2)&&i.call(arguments,1);return o[t]=!0,n(function(){o[t]&&(r?e.apply(null,r):e.call(null),c.clearImmediate(t))}),t},c.clearImmediate="function"==typeof t?t:function(e){delete o[e]}}).call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":170,timers:221}],222:[function(e,t,r){var i=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(i.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,n=0;n":">",'"':""","'":"'","`":"`"},D=p.invert(x),P=function(t){var r=function(e){return t[e]},e="(?:"+p.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};p.escape=P(x),p.unescape=P(D),p.result=function(e,t,r){var n=null==e?void 0:e[t];return void 0===n&&(n=r),p.isFunction(n)?n.call(e):n};var k=0;p.uniqueId=function(e){var t=++k+"";return e?e+t:t},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},j=/\\|'|\r|\n|\u2028|\u2029/g,F=function(e){return"\\"+U[e]};p.template=function(o,e,t){!e&&t&&(e=t),e=p.defaults({},e,p.templateSettings);var r=RegExp([(e.escape||B).source,(e.interpolate||B).source,(e.evaluate||B).source].join("|")+"|$","g"),s=0,a="__p+='";o.replace(r,function(e,t,r,n,i){return a+=o.slice(s,i).replace(j,F),s=i+e.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(a+="';\n"+n+"\n__p+='"),e}),a+="';\n",e.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var n=new Function(e.variable||"obj","_",a)}catch(e){throw e.source=a,e}var i=function(e){return n.call(this,e,p)},u=e.variable||"obj";return i.source="function("+u+"){\n"+a+"}",i},p.chain=function(e){var t=p(e);return t._chain=!0,t};var q=function(e,t){return e._chain?p(t).chain():t};p.mixin=function(r){p.each(p.functions(r),function(e){var t=p[e]=r[e];p.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),q(this,t.apply(p,e))}})},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];p.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],q(this,e)}}),p.each(["concat","join","slice"],function(e){var t=n[e];p.prototype[e]=function(){return q(this,t.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}).call(this)},{}],224:[function(e,t,r){"use strict";var x=e("punycode"),D=e("./util");function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=o,r.resolve=function(e,t){return o(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},r.format=function(e){D.isString(e)&&(e=o(e));return e instanceof M?e.format():M.prototype.format.call(e)},r.Url=M;var P=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),B=["'"].concat(i),U=["%","/","?",";","#"].concat(B),j=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},V={javascript:!0,"javascript:":!0},G={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},z=e("querystring");function o(e,t,r){if(e&&D.isObject(e)&&e instanceof M)return e;var n=new M;return n.parse(e,t,r),n}M.prototype.parse=function(e,t,r){if(!D.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n>>((3&t)<<3)&255;return o}}},{}],232:[function(e,t,r){var p,b,m=e("./lib/rng"),y=e("./lib/bytesToUuid"),g=0,_=0;t.exports=function(e,t,r){var n=t&&r||0,i=t||[],o=(e=e||{}).node||p,s=void 0!==e.clockseq?e.clockseq:b;if(null==o||null==s){var a=m();null==o&&(o=p=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=b=16383&(a[6]<<8|a[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:_+1,f=u-g+(c-_)/1e4;if(f<0&&void 0===e.clockseq&&(s=s+1&16383),(f<0||g>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=255&l;var h=u/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=255&h,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var d=0;d<6;++d)i[n+d]=o[d];return t||y(i)}},{"./lib/bytesToUuid":230,"./lib/rng":231}],233:[function(e,t,r){var s=e("./lib/rng"),a=e("./lib/bytesToUuid");t.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[n+o]=i[o];return t||a(i)}},{"./lib/bytesToUuid":230,"./lib/rng":231}],234:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=me(e("./lib/toDate")),i=me(e("./lib/toFloat")),o=me(e("./lib/toInt")),s=me(e("./lib/toBoolean")),a=me(e("./lib/equals")),u=me(e("./lib/contains")),c=me(e("./lib/matches")),f=me(e("./lib/isEmail")),l=me(e("./lib/isURL")),h=me(e("./lib/isMACAddress")),d=me(e("./lib/isIP")),p=me(e("./lib/isFQDN")),b=me(e("./lib/isBoolean")),m=me(e("./lib/isAlpha")),y=me(e("./lib/isAlphanumeric")),g=me(e("./lib/isNumeric")),_=me(e("./lib/isPort")),v=me(e("./lib/isLowercase")),E=me(e("./lib/isUppercase")),w=me(e("./lib/isAscii")),S=me(e("./lib/isFullWidth")),A=me(e("./lib/isHalfWidth")),T=me(e("./lib/isVariableWidth")),I=me(e("./lib/isMultibyte")),M=me(e("./lib/isSurrogatePair")),N=me(e("./lib/isInt")),O=me(e("./lib/isFloat")),R=me(e("./lib/isDecimal")),C=me(e("./lib/isHexadecimal")),L=me(e("./lib/isDivisibleBy")),x=me(e("./lib/isHexColor")),D=me(e("./lib/isISRC")),P=me(e("./lib/isMD5")),k=me(e("./lib/isHash")),B=me(e("./lib/isJSON")),U=me(e("./lib/isEmpty")),j=me(e("./lib/isLength")),F=me(e("./lib/isByteLength")),q=me(e("./lib/isUUID")),H=me(e("./lib/isMongoId")),V=me(e("./lib/isAfter")),G=me(e("./lib/isBefore")),z=me(e("./lib/isIn")),Y=me(e("./lib/isCreditCard")),X=me(e("./lib/isISIN")),K=me(e("./lib/isISBN")),W=me(e("./lib/isISSN")),Q=me(e("./lib/isMobilePhone")),$=me(e("./lib/isCurrency")),Z=me(e("./lib/isISO8601")),J=me(e("./lib/isISO31661Alpha2")),ee=me(e("./lib/isBase64")),te=me(e("./lib/isDataURI")),re=me(e("./lib/isMimeType")),ne=me(e("./lib/isLatLong")),ie=me(e("./lib/isPostalCode")),oe=me(e("./lib/ltrim")),se=me(e("./lib/rtrim")),ae=me(e("./lib/trim")),ue=me(e("./lib/escape")),ce=me(e("./lib/unescape")),fe=me(e("./lib/stripLow")),le=me(e("./lib/whitelist")),he=me(e("./lib/blacklist")),de=me(e("./lib/isWhitelisted")),pe=me(e("./lib/normalizeEmail")),be=me(e("./lib/util/toString"));function me(e){return e&&e.__esModule?e:{default:e}}var ye={version:"9.4.1",toDate:n.default,toFloat:i.default,toInt:o.default,toBoolean:s.default,equals:a.default,contains:u.default,matches:c.default,isEmail:f.default,isURL:l.default,isMACAddress:h.default,isIP:d.default,isFQDN:p.default,isBoolean:b.default,isAlpha:m.default,isAlphanumeric:y.default,isNumeric:g.default,isPort:_.default,isLowercase:v.default,isUppercase:E.default,isAscii:w.default,isFullWidth:S.default,isHalfWidth:A.default,isVariableWidth:T.default,isMultibyte:I.default,isSurrogatePair:M.default,isInt:N.default,isFloat:O.default,isDecimal:R.default,isHexadecimal:C.default,isDivisibleBy:L.default,isHexColor:x.default,isISRC:D.default,isMD5:P.default,isHash:k.default,isJSON:B.default,isEmpty:U.default,isLength:j.default,isByteLength:F.default,isUUID:q.default,isMongoId:H.default,isAfter:V.default,isBefore:G.default,isIn:z.default,isCreditCard:Y.default,isISIN:X.default,isISBN:K.default,isISSN:W.default,isMobilePhone:Q.default,isPostalCode:ie.default,isCurrency:$.default,isISO8601:Z.default,isISO31661Alpha2:J.default,isBase64:ee.default,isDataURI:te.default,isMimeType:re.default,isLatLong:ne.default,ltrim:oe.default,rtrim:se.default,trim:ae.default,escape:ue.default,unescape:ce.default,stripLow:fe.default,whitelist:le.default,blacklist:he.default,isWhitelisted:de.default,normalizeEmail:pe.default,toString:be.default};r.default=ye,t.exports=r.default},{"./lib/blacklist":236,"./lib/contains":237,"./lib/equals":238,"./lib/escape":239,"./lib/isAfter":240,"./lib/isAlpha":241,"./lib/isAlphanumeric":242,"./lib/isAscii":243,"./lib/isBase64":244,"./lib/isBefore":245,"./lib/isBoolean":246,"./lib/isByteLength":247,"./lib/isCreditCard":248,"./lib/isCurrency":249,"./lib/isDataURI":250,"./lib/isDecimal":251,"./lib/isDivisibleBy":252,"./lib/isEmail":253,"./lib/isEmpty":254,"./lib/isFQDN":255,"./lib/isFloat":256,"./lib/isFullWidth":257,"./lib/isHalfWidth":258,"./lib/isHash":259,"./lib/isHexColor":260,"./lib/isHexadecimal":261,"./lib/isIP":262,"./lib/isISBN":263,"./lib/isISIN":264,"./lib/isISO31661Alpha2":265,"./lib/isISO8601":266,"./lib/isISRC":267,"./lib/isISSN":268,"./lib/isIn":269,"./lib/isInt":270,"./lib/isJSON":271,"./lib/isLatLong":272,"./lib/isLength":273,"./lib/isLowercase":274,"./lib/isMACAddress":275,"./lib/isMD5":276,"./lib/isMimeType":277,"./lib/isMobilePhone":278,"./lib/isMongoId":279,"./lib/isMultibyte":280,"./lib/isNumeric":281,"./lib/isPort":282,"./lib/isPostalCode":283,"./lib/isSurrogatePair":284,"./lib/isURL":285,"./lib/isUUID":286,"./lib/isUppercase":287,"./lib/isVariableWidth":288,"./lib/isWhitelisted":289,"./lib/ltrim":290,"./lib/matches":291,"./lib/normalizeEmail":292,"./lib/rtrim":293,"./lib/stripLow":294,"./lib/toBoolean":295,"./lib/toDate":296,"./lib/toFloat":297,"./lib/toInt":298,"./lib/trim":299,"./lib/unescape":300,"./lib/util/toString":303,"./lib/whitelist":304}],235:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});for(var n,i=r.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=r.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},s=r.decimal={"en-US":".",ar:"٫"},a=r.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],u=0;u/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./util/assertString":301}],240:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=1$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,y=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,g=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,_=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=r.default},{"./isByteLength":247,"./isFQDN":255,"./util/assertString":301,"./util/merge":302}],254:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),0===e.length};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./util/assertString":301}],255:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,s.default)(e),(t=(0,a.default)(t,u)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));var r=e.split(".");if(t.require_tld){var n=r.pop();if(!r.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(n))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(n))return!1}for(var i,o=0;o=t.min)&&(!t.hasOwnProperty("max")||e<=t.max)&&(!t.hasOwnProperty("lt")||et.gt)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./alpha");t.exports=r.default},{"./alpha":235,"./util/assertString":301}],257:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fullWidth=void 0,r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=r.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},{"./util/assertString":301}],258:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.halfWidth=void 0,r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=r.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},{"./util/assertString":301}],259:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-f0-9]{"+s[t]+"}$").test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=r.default},{"./util/assertString":301}],260:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;t.exports=r.default},{"./util/assertString":301}],261:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^[0-9A-F]+$/i;t.exports=r.default},{"./util/assertString":301}],262:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){var r=1a)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(i.shift(),i.shift(),o=!0):"::"===t.substr(t.length-2)&&(i.pop(),i.pop(),o=!0);for(var u=0;u=t.min,i=!t.hasOwnProperty("max")||e<=t.max,o=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&i&&o&&s};var n,i=e("./util/assertString"),a=(n=i)&&n.__esModule?n:{default:n};var u=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,c=/^[-+]?[0-9]+$/;t.exports=r.default},{"./util/assertString":301}],271:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=function(e){(0,s.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===(void 0===t?"undefined":n(t))}catch(e){}return!1};var i,o=e("./util/assertString"),s=(i=o)&&i.__esModule?i:{default:i};t.exports=r.default},{"./util/assertString":301}],272:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if((0,o.default)(e),!e.includes(","))return!1;var t=e.split(",");return s.test(t[0])&&a.test(t[1])};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;t.exports=r.default},{"./util/assertString":301}],273:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=function(e,t){(0,a.default)(e);var r=void 0,n=void 0;"object"===(void 0===t?"undefined":s(t))?(r=t.min||0,n=t.max):(r=t,n=arguments[2]);var i=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],o=e.length-i.length;return r<=o&&(void 0===n||o<=n)};var n,i=e("./util/assertString"),a=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./util/assertString":301}],274:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./util/assertString":301}],275:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;t.exports=r.default},{"./util/assertString":301}],276:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^[a-f0-9]{32}$/;t.exports=r.default},{"./util/assertString":301}],277:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)||a.test(e)||u.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,u=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=r.default},{"./util/assertString":301}],278:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){if((0,o.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;{if(t in s)return s[t].test(e);if("any"===t){for(var n in s)if(s.hasOwnProperty(n)){var i=s[n];if(i.test(e))return!0}return!1}}throw new Error("Invalid locale '"+t+"'")};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s={"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-EG":/^((\+?20)|0)?1[012]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)?[7]\d{8}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-PK":/^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[89]\d{7}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/,"hu-HU":/^(\+?36)(20|30|70)\d{7}$/,"id-ID":/^(\+?62|0[1-9])[\s|\d]+$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"ja-JP":/^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nl-BE":/^(\+?32|0)4?\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?1[3456789]\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};s["en-CA"]=s["en-US"],s["fr-BE"]=s["nl-BE"],s["zh-HK"]=s["en-HK"],t.exports=r.default},{"./util/assertString":301}],279:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,n.default)(e),(0,i.default)(e)&&24===e.length};var n=o(e("./util/assertString")),i=o(e("./isHexadecimal"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./isHexadecimal":261,"./util/assertString":301}],280:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/[^\x00-\x7F]/;t.exports=r.default},{"./util/assertString":301}],281:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^[-+]?[0-9]+$/;t.exports=r.default},{"./util/assertString":301}],282:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e,{min:0,max:65535})};var n,i=e("./isInt"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./isInt":270}],283:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.locales=void 0,r.default=function(e,t){if((0,o.default)(e),t in c)return c[t].test(e);if("any"===t){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/^\d{4}$/,a=/^\d{5}$/,u=/^\d{6}$/,c={AT:s,AU:s,BE:s,BG:s,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:s,CZ:/^\d{3}\s?\d{2}$/,DE:a,DK:s,DZ:a,ES:a,FI:a,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,IL:a,IN:u,IS:/^\d{3}$/,IT:a,JP:/^\d{3}\-\d{4}$/,KE:a,LI:/^(948[5-9]|949[0-7])$/,MX:a,NL:/^\d{4}\s?[a-z]{2}$/i,NO:s,PL:/^\d{2}\-\d{3}$/,PT:/^\d{4}\-\d{3}?$/,RO:u,RU:u,SA:a,SE:/^\d{3}\s?\d{2}$/,TW:/^\d{3}(\d{2})?$/,US:/^\d{5}(-\d{4})?$/,ZA:s,ZM:a};r.locales=Object.keys(c)},{"./util/assertString":301}],284:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,o.default)(e),s.test(e)};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=r.default},{"./util/assertString":301}],285:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if((0,l.default)(e),!e||2083<=e.length||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;t=(0,p.default)(t,b);var r=void 0,n=void 0,i=void 0,o=void 0,s=void 0,a=void 0,u=void 0,c=void 0;if(1<(u=(e=(u=(e=(u=e.split("#")).shift()).split("?")).shift()).split("://")).length){if(r=u.shift(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(u[0]=e.substr(2))}if(""===(e=u.join("://")))return!1;if(""===(e=(u=e.split("/")).shift())&&!t.require_host)return!0;if(1<(u=e.split("@")).length&&0<=(n=u.shift()).indexOf(":")&&2").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var n,i=e("./util/assertString"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./util/assertString":301}],301:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if(!("string"==typeof e||e instanceof String))throw new TypeError("This library (validator.js) validates strings only")},t.exports=r.default},{}],302:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var e=0"+this.endline(e))},r.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},r.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('"),this.stream.write(this.endline(e))},r.prototype.docType=function(e,t){var r,n,i,o;if(t||(t=0),this.stream.write(this.space(t)),this.stream.write(""),this.stream.write(this.endline(e))},r.prototype.element=function(e,t){var r,n,i,o,s,a,u,c;for(s in t||(t=0),c=this.space(t),this.stream.write(c+"<"+e.name),a=e.attributes)g.call(a,s)&&(r=a[s],this.attribute(r));if(0===e.children.length||e.children.every(function(e){return""===e.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)this.stream.write(">"),this.stream.write(e.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),i=0,o=(u=e.children).length;i")}return this.stream.write(this.endline(e))},r.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+""+this.endline(e))},r.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},r.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},r.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+""+this.endline(e))},r.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+""+this.endline(e))},r.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+""+this.endline(e))},r.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+""+this.endline(e))},r.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},r}()}).call(this)},{"./XMLCData":309,"./XMLComment":310,"./XMLDTDAttList":311,"./XMLDTDElement":312,"./XMLDTDEntity":313,"./XMLDTDNotation":314,"./XMLDeclaration":315,"./XMLDocType":316,"./XMLElement":319,"./XMLProcessingInstruction":321,"./XMLRaw":322,"./XMLText":326,"./XMLWriterBase":327}],324:[function(e,t,r){(function(){var b,m,a,u,c,f,s,l,y,g,_,v,r,E={}.hasOwnProperty;s=e("./XMLDeclaration"),l=e("./XMLDocType"),b=e("./XMLCData"),m=e("./XMLComment"),y=e("./XMLElement"),_=e("./XMLRaw"),v=e("./XMLText"),g=e("./XMLProcessingInstruction"),a=e("./XMLDTDAttList"),u=e("./XMLDTDElement"),c=e("./XMLDTDEntity"),f=e("./XMLDTDNotation"),r=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return function(e,t){for(var r in t)E.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,r),t.prototype.document=function(e){var t,r,n,i,o;for(this.textispresent=!1,i="",r=0,n=(o=e.children).length;r"+this.newline},t.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},t.prototype.declaration=function(e,t){var r;return r=this.space(t),r+='",r+=this.newline},t.prototype.docType=function(e,t){var r,n,i,o,s;if(t||(t=0),o=this.space(t),o+="",o+=this.newline},t.prototype.element=function(e,t){var r,n,i,o,s,a,u,c,f,l,h,d,p;for(u in t||(t=0),p=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),c="",c+=(d=this.space(t))+"<"+e.name,f=e.attributes)E.call(f,u)&&(r=f[u],c+=this.attribute(r));if(0===e.children.length||e.children.every(function(e){return""===e.value}))this.allowEmpty?c+=">"+this.newline:c+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)c+=">",c+=e.children[0].value,c+=""+this.newline;else{if(this.dontprettytextnodes)for(i=0,s=(l=e.children).length;i"+this.newline,o=0,a=(h=e.children).length;o"+this.newline}return c},t.prototype.processingInstruction=function(e,t){var r;return r=this.space(t)+""+this.newline},t.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.dtdAttList=function(e,t){var r;return r=this.space(t)+""+this.newline},t.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline},t.prototype.dtdEntity=function(e,t){var r;return r=this.space(t)+""+this.newline},t.prototype.dtdNotation=function(e,t){var r;return r=this.space(t)+""+this.newline},t.prototype.openNode=function(e,t){var r,n,i,o;if(t||(t=0),e instanceof y){for(n in i=this.space(t)+"<"+e.name,o=e.attributes)E.call(o,n)&&(r=o[n],i+=this.attribute(r));return i+=(e.children?">":"/>")+this.newline}return i=this.space(t)+"")+this.newline},t.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof y):return this.space(t)+""+this.newline;case!(e instanceof l):return this.space(t)+"]>"+this.newline}},t}()}).call(this)},{"./XMLCData":309,"./XMLComment":310,"./XMLDTDAttList":311,"./XMLDTDElement":312,"./XMLDTDEntity":313,"./XMLDTDNotation":314,"./XMLDeclaration":315,"./XMLDocType":316,"./XMLElement":319,"./XMLProcessingInstruction":321,"./XMLRaw":322,"./XMLText":326,"./XMLWriterBase":327}],325:[function(e,t,r){(function(){var s={}.hasOwnProperty;t.exports=function(){function e(e){var t,r,n,i,o;for(n in this.assertLegalChar=(t=this.assertLegalChar,r=this,function(){return t.apply(r,arguments)}),e||(e={}),this.noDoubleEncoding=e.noDoubleEncoding,i=e.stringify||{})s.call(i,n)&&(o=i[n],this[n]=o)}return e.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},e.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},e.prototype.cdata=function(e){return e=(e=""+e||"").replace("]]>","]]]]>"),this.assertLegalChar(e)},e.prototype.comment=function(e){if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return""+e||""},e.prototype.attName=function(e){return""+e||""},e.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},e.prototype.insTarget=function(e){return""+e||""},e.prototype.insValue=function(e){if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},e.prototype.xmlVersion=function(e){if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},e.prototype.xmlStandalone=function(e){return e?"yes":"no"},e.prototype.dtdPubID=function(e){return""+e||""},e.prototype.dtdSysID=function(e){return""+e||""},e.prototype.dtdElementValue=function(e){return""+e||""},e.prototype.dtdAttType=function(e){return""+e||""},e.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},e.prototype.dtdEntityValue=function(e){return""+e||""},e.prototype.dtdNData=function(e){return""+e||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," ")},e.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/