forked from OneIdentity/safeguard.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
safeguard.min.js
1 lines (1 loc) · 252 KB
/
safeguard.min.js
1
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).SafeguardJs=e()}(function(){return function n(o,i,s){function a(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=i[t]={exports:{}},o[t][0].call(r.exports,function(e){return a(o[t][1][e]||e)},r,r.exports,n,o,i,s)}return i[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,r){"use strict";function n(){this.isAborted=!1,this.onabort=null}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(n.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),r.AbortController=n},{}],2:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}),function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(r,"__esModule",{value:!0}),e("./Errors")),a=e("./FetchHttpClient"),c=e("./HttpClient"),l=e("./Utils"),u=e("./XhrHttpClient"),e=(o=c.HttpClient,i(h,o),h.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new s.AbortError):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},h.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},h);function h(e){var t=o.call(this)||this;if("undefined"!=typeof fetch||l.Platform.isNode)t.httpClient=new a.FetchHttpClient(e);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");t.httpClient=new u.XhrHttpClient(e)}return t}r.DefaultHttpClient=e},{"./Errors":4,"./FetchHttpClient":5,"./HttpClient":7,"./Utils":20,"./XhrHttpClient":22}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[0,2e3,1e4,3e4,null];function o(e){this.retryDelays=void 0!==e?e.concat([null]):n}o.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},r.DefaultReconnectPolicy=o},{}],4:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}),function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(r,"__esModule",{value:!0}),o=Error,i(a,o),a);function a(e,t){var r=this,n=this.constructor.prototype;return(r=o.call(this,e)||this).statusCode=t,r.__proto__=n,r}r.HttpError=s;c=Error,i(l,c);var c,s=l;function l(e){var t=this,r=this.constructor.prototype;return(t=c.call(this,e=void 0===e?"A timeout occurred.":e)||this).__proto__=r,t}r.TimeoutError=s;u=Error,i(h,u);var u,s=h;function h(e){var t=this,r=this.constructor.prototype;return(t=u.call(this,e=void 0===e?"An abort occurred.":e)||this).__proto__=r,t}r.AbortError=s},{}],5:[function(r,e,t){"use strict";var n,o,i=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}),function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},u=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},h=(Object.defineProperty(t,"__esModule",{value:!0}),r("./Errors")),f=r("./HttpClient"),p=r("./ILogger"),a=r("./Utils"),i=(o=f.HttpClient,i(c,o),c.prototype.send=function(c){return s(this,void 0,void 0,function(){var t,r,n,o,i,s,a=this;return u(this,function(e){switch(e.label){case 0:if(c.abortSignal&&c.abortSignal.aborted)throw new h.AbortError;if(!c.method)throw new Error("No method defined.");if(!c.url)throw new Error("No url defined.");t=new this.abortControllerType,c.abortSignal&&(c.abortSignal.onabort=function(){t.abort(),r=new h.AbortError}),n=null,c.timeout&&(i=c.timeout,n=setTimeout(function(){t.abort(),a.logger.log(p.LogLevel.Warning,"Timeout from HTTP request."),r=new h.TimeoutError},i)),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.fetchType(c.url,{body:c.content,cache:"no-cache",credentials:!0===c.withCredentials?"include":"same-origin",headers:l({"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest"},c.headers),method:c.method,mode:"cors",redirect:"manual",signal:t.signal})];case 2:return o=e.sent(),[3,5];case 3:if(i=e.sent(),r)throw r;throw this.logger.log(p.LogLevel.Warning,"Error from HTTP request. "+i+"."),i;case 4:return n&&clearTimeout(n),c.abortSignal&&(c.abortSignal.onabort=null),[7];case 5:if(o.ok)return[4,function(e,t){var r;switch(t){case"arraybuffer":r=e.arrayBuffer();break;case"text":r=e.text();break;case"blob":case"document":case"json":throw new Error(t+" is not supported.");default:r=e.text()}return r}(o,c.responseType)];throw new h.HttpError(o.statusText,o.status);case 6:return s=e.sent(),[2,new f.HttpResponse(o.status,o.statusText,s)]}})})},c.prototype.getCookieString=function(e){var r="";return a.Platform.isNode&&this.jar&&this.jar.getCookies(e,function(e,t){return r=t.join("; ")}),r},c);function c(e){var t=o.call(this)||this;return t.logger=e,"undefined"==typeof fetch?(e="function"==typeof __webpack_require__?__non_webpack_require__:r,t.jar=new(e("tough-cookie").CookieJar),t.fetchType=e("node-fetch"),t.fetchType=e("fetch-cookie")(t.fetchType,t.jar),t.abortControllerType=e("abort-controller")):(t.fetchType=fetch.bind(self),t.abortControllerType=AbortController),t}t.FetchHttpClient=i},{"./Errors":4,"./HttpClient":7,"./ILogger":12,"./Utils":20}],6:[function(t,e,r){!function(a){!function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("./TextMessageFormat"),s=t("./Utils");function e(){}e.prototype.writeHandshakeRequest=function(e){return i.TextMessageFormat.write(JSON.stringify(e))},e.prototype.parseHandshakeResponse=function(e){if(s.isArrayBuffer(e)||void 0!==a&&e instanceof a){var t=new Uint8Array(e);if(-1===(o=t.indexOf(i.TextMessageFormat.RecordSeparatorCode)))throw new Error("Message is incomplete.");var r=o+1,n=String.fromCharCode.apply(null,t.slice(0,r)),t=t.byteLength>r?t.slice(r).buffer:null}else{if(-1===(o=e.indexOf(i.TextMessageFormat.RecordSeparator)))throw new Error("Message is incomplete.");r=o+1;n=e.substring(0,r),t=e.length>r?e.substring(r):null}var o=i.TextMessageFormat.parse(n),e=JSON.parse(o[0]);if(e.type)throw new Error("Expected a handshake response from the server.");return[t,e]},r.HandshakeProtocol=e}.call(this)}.call(this,t("buffer").Buffer)},{"./TextMessageFormat":19,"./Utils":20,buffer:57}],7:[function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(r,"__esModule",{value:!0});r.HttpResponse=function(e,t,r){this.statusCode=e,this.statusText=t,this.content=r},i.prototype.get=function(e,t){return this.send(n({},t,{method:"GET",url:e}))},i.prototype.post=function(e,t){return this.send(n({},t,{method:"POST",url:e}))},i.prototype.delete=function(e,t){return this.send(n({},t,{method:"DELETE",url:e}))},i.prototype.getCookieString=function(e){return""};var o=i;function i(){}r.HttpClient=o},{}],8:[function(o,e,t){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},d=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},i=(Object.defineProperty(t,"__esModule",{value:!0}),o("./DefaultHttpClient")),g=o("./ILogger"),c=o("./ITransport"),l=o("./LongPollingTransport"),r=o("./ServerSentEventsTransport"),u=o("./Utils"),s=o("./WebSocketTransport");function h(e,t){if(void 0===t&&(t={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,u.Arg.isRequired(e,"url"),this.logger=u.createLogger(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials;var r,e=null,n=null;u.Platform.isNode&&void 0!==o&&(e=(r="function"==typeof __webpack_require__?__non_webpack_require__:o)("ws"),n=r("eventsource")),u.Platform.isNode||"undefined"==typeof WebSocket||t.WebSocket?u.Platform.isNode&&!t.WebSocket&&e&&(t.WebSocket=e):t.WebSocket=WebSocket,u.Platform.isNode||"undefined"==typeof EventSource||t.EventSource?u.Platform.isNode&&!t.EventSource&&void 0!==n&&(t.EventSource=n):t.EventSource=EventSource,this.httpClient=t.httpClient||new i.DefaultHttpClient(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}h.prototype.start=function(r){return n(this,void 0,void 0,function(){var t;return d(this,function(e){switch(e.label){case 0:return(r=r||c.TransferFormat.Binary,u.Arg.isIn(r,c.TransferFormat,"transferFormat"),this.logger.log(g.LogLevel.Debug,"Starting connection with transfer format '"+c.TransferFormat[r]+"'."),"Disconnected"!==this.connectionState)?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting",this.startInternalPromise=this.startInternal(r),[4,this.startInternalPromise]);case 1:return(e.sent(),"Disconnecting"!==this.connectionState)?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log(g.LogLevel.Error,t),[4,this.stopPromise]);case 2:return e.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(g.LogLevel.Error,t),[2,Promise.reject(new Error(t))];e.label=4;case 4:return this.connectionStarted=!0,[2]}})})},h.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new f(this.transport)),this.sendQueue.send(e))},h.prototype.stop=function(r){return n(this,void 0,void 0,function(){var t=this;return d(this,function(e){switch(e.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(g.LogLevel.Debug,"Call to HttpConnection.stop("+r+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(g.LogLevel.Debug,"Call to HttpConnection.stop("+r+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(e){t.stopPromiseResolver=e}),[4,this.stopInternal(r)]);case 1:return e.sent(),[4,this.stopPromise];case 2:return e.sent(),[2]}})})},h.prototype.stopInternal=function(r){return n(this,void 0,void 0,function(){var t;return d(this,function(e){switch(e.label){case 0:this.stopError=r,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:if(!this.transport)return[3,9];e.label=5;case 5:return e.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return e.sent(),[3,8];case 7:return t=e.sent(),this.logger.log(g.LogLevel.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(g.LogLevel.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),e.label=10;case 10:return[2]}})})},h.prototype.startInternal=function(a){return n(this,void 0,void 0,function(){var r,n,o,t,i,s;return d(this,function(e){switch(e.label){case 0:r=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,e.label=1;case 1:return(e.trys.push([1,12,,13]),this.options.skipNegotiation)?this.options.transport!==c.HttpTransportType.WebSockets?[3,3]:(this.transport=this.constructTransport(c.HttpTransportType.WebSockets),[4,this.startTransport(r,a)]):[3,5];case 2:return e.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,o=0,t=function(){var t;return d(this,function(e){switch(e.label){case 0:return[4,i.getNegotiationResponse(r)];case 1:if(n=e.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(r=n.url),n.accessToken&&(t=n.accessToken,i.accessTokenFactory=function(){return t}),o++,[2]}})},i=this,e.label=6;case 6:return[5,t()];case 7:e.sent(),e.label=8;case 8:if(n.url&&o<100)return[3,6];e.label=9;case 9:if(100===o&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(r,this.options.transport,n,a)];case 10:e.sent(),e.label=11;case 11:return this.transport instanceof l.LongPollingTransport&&(this.features.inherentKeepAlive=!0),"Connecting"===this.connectionState&&(this.logger.log(g.LogLevel.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return s=e.sent(),this.logger.log(g.LogLevel.Error,"Failed to start the connection: "+s),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(s)];case 13:return[2]}})})},h.prototype.getNegotiationResponse=function(s){return n(this,void 0,void 0,function(){var t,r,n,o,i;return d(this,function(e){switch(e.label){case 0:return(t={},this.accessTokenFactory)?[4,this.accessTokenFactory()]:[3,2];case 1:(r=e.sent())&&(t.Authorization="Bearer "+r),e.label=2;case 2:r=u.getUserAgentHeader(),n=r[0],o=r[1],t[n]=o,n=this.resolveNegotiateUrl(s),this.logger.log(g.LogLevel.Debug,"Sending negotiation request: "+n+"."),e.label=3;case 3:return e.trys.push([3,5,,6]),[4,this.httpClient.post(n,{content:"",headers:a({},t,this.options.headers),withCredentials:this.options.withCredentials})];case 4:return 200!==(o=e.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate '"+o.statusCode+"'"))]:((!(i=JSON.parse(o.content)).negotiateVersion||i.negotiateVersion<1)&&(i.connectionToken=i.connectionId),[2,i]);case 5:return i=e.sent(),this.logger.log(g.LogLevel.Error,"Failed to complete negotiation with the server: "+i),[2,Promise.reject(i)];case 6:return[2]}})})},h.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},h.prototype.createTransport=function(u,h,f,p){return n(this,void 0,void 0,function(){var t,r,n,o,i,s,a,c,l;return d(this,function(e){switch(e.label){case 0:return(t=this.createConnectUrl(u,f.connectionToken),this.isITransport(h))?(this.logger.log(g.LogLevel.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=h,[4,this.startTransport(t,p)]):[3,2];case 1:return e.sent(),this.connectionId=f.connectionId,[2];case 2:r=[],i=f.availableTransports||[],n=f,o=0,i=i,e.label=3;case 3:return o<i.length?(s=i[o],(a=this.resolveTransportOrError(s,h,p))instanceof Error?(r.push(s.transport+" failed: "+a),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(a))return[3,12];if(this.transport=a,n)return[3,9];e.label=5;case 5:return e.trys.push([5,7,,8]),[4,this.getNegotiationResponse(u)];case 6:return n=e.sent(),[3,8];case 7:return c=e.sent(),[2,Promise.reject(c)];case 8:t=this.createConnectUrl(u,n.connectionToken),e.label=9;case 9:return e.trys.push([9,11,,12]),[4,this.startTransport(t,p)];case 10:return e.sent(),this.connectionId=n.connectionId,[2];case 11:return c=e.sent(),this.logger.log(g.LogLevel.Error,"Failed to start the transport '"+s.transport+"': "+c),n=void 0,r.push(s.transport+" failed: "+c),"Connecting"!==this.connectionState?(l="Failed to select transport before stop() was called.",this.logger.log(g.LogLevel.Debug,l),[2,Promise.reject(new Error(l))]):[3,12];case 12:return o++,[3,3];case 13:return 0<r.length?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+r.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},h.prototype.constructTransport=function(e){switch(e){case c.HttpTransportType.WebSockets:if(this.options.WebSocket)return new s.WebSocketTransport(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket,this.options.headers||{});throw new Error("'WebSocket' is not supported in your environment.");case c.HttpTransportType.ServerSentEvents:if(this.options.EventSource)return new r.ServerSentEventsTransport(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource,this.options.withCredentials,this.options.headers||{});throw new Error("'EventSource' is not supported in your environment.");case c.HttpTransportType.LongPolling:return new l.LongPollingTransport(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.withCredentials,this.options.headers||{});default:throw new Error("Unknown transport: "+e+".")}},h.prototype.startTransport=function(e,t){var r=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return r.stopConnection(e)},this.transport.connect(e,t)},h.prototype.resolveTransportOrError=function(e,t,r){var n,o=c.HttpTransportType[e.transport];if(null==o)return this.logger.log(g.LogLevel.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(n=o,(t=t)&&0==(n&t))return this.logger.log(g.LogLevel.Debug,"Skipping transport '"+c.HttpTransportType[o]+"' because it was disabled by the client."),new Error("'"+c.HttpTransportType[o]+"' is disabled by the client.");if(!(0<=e.transferFormats.map(function(e){return c.TransferFormat[e]}).indexOf(r)))return this.logger.log(g.LogLevel.Debug,"Skipping transport '"+c.HttpTransportType[o]+"' because it does not support the requested transfer format '"+c.TransferFormat[r]+"'."),new Error("'"+c.HttpTransportType[o]+"' does not support "+c.TransferFormat[r]+".");if(o===c.HttpTransportType.WebSockets&&!this.options.WebSocket||o===c.HttpTransportType.ServerSentEvents&&!this.options.EventSource)return this.logger.log(g.LogLevel.Debug,"Skipping transport '"+c.HttpTransportType[o]+"' because it is not supported in your environment.'"),new Error("'"+c.HttpTransportType[o]+"' is not supported in your environment.");this.logger.log(g.LogLevel.Debug,"Selecting transport '"+c.HttpTransportType[o]+"'.");try{return this.constructTransport(o)}catch(e){return e}},h.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},h.prototype.stopConnection=function(t){var r=this;if(this.logger.log(g.LogLevel.Debug,"HttpConnection.stopConnection("+t+") called while in state "+this.connectionState+"."),this.transport=void 0,t=this.stopError||t,this.stopError=void 0,"Disconnected"===this.connectionState)this.logger.log(g.LogLevel.Debug,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is already in the disconnected state.");else{if("Connecting"===this.connectionState)throw this.logger.log(g.LogLevel.Warning,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is still in the connecting state."),new Error("HttpConnection.stopConnection("+t+") was called while the connection is still in the connecting state.");if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),t?this.logger.log(g.LogLevel.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(g.LogLevel.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(e){r.logger.log(g.LogLevel.Error,"TransportSendQueue.stop() threw error '"+e+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(e){this.logger.log(g.LogLevel.Error,"HttpConnection.onclose("+t+") threw error '"+e+"'.")}}}},h.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;var t;if(u.Platform.isBrowser&&window.document)return(t=window.document.createElement("a")).href=e,this.logger.log(g.LogLevel.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href;throw new Error("Cannot resolve '"+e+"'.")},h.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),r=e.substring(0,-1===t?e.length:t);return"/"!==r[r.length-1]&&(r+="/"),r=-1===(r=(r+="negotiate")+(-1===t?"":e.substring(t))).indexOf("negotiateVersion")?r+(-1===t?"?":"&")+"negotiateVersion="+this.negotiateVersion:r},t.HttpConnection=h;p.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new y),this.transportResult.promise},p.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},p.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},p.prototype.sendLoop=function(){return n(this,void 0,void 0,function(){var t,r,n;return d(this,function(e){switch(e.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(e.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new y,t=this.transportResult,this.transportResult=void 0,r="string"==typeof this.buffer[0]?this.buffer.join(""):p.concatBuffers(this.buffer),this.buffer.length=0,e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.transport.send(r)];case 3:return e.sent(),t.resolve(),[3,5];case 4:return n=e.sent(),t.reject(n),[3,5];case 5:return[3,0];case 6:return[2]}})})},p.concatBuffers=function(e){for(var t=e.map(function(e){return e.byteLength}).reduce(function(e,t){return e+t}),r=new Uint8Array(t),n=0,o=0,i=e;o<i.length;o++){var s=i[o];r.set(new Uint8Array(s),n),n+=s.byteLength}return r.buffer};var f=p;function p(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new y,this.transportResult=new y,this.sendLoopPromise=this.sendLoop()}t.TransportSendQueue=f;v.prototype.resolve=function(){this.resolver()},v.prototype.reject=function(e){this.rejecter(e)};var y=v;function v(){var r=this;this.promise=new Promise(function(e,t){e=[e,t];return r.resolver=e[0],r.rejecter=e[1],e})}},{"./DefaultHttpClient":2,"./ILogger":12,"./ITransport":13,"./LongPollingTransport":16,"./ServerSentEventsTransport":17,"./Utils":20,"./WebSocketTransport":21}],9:[function(e,t,r){"use strict";var c,n=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},l=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},i=(Object.defineProperty(r,"__esModule",{value:!0}),e("./HandshakeProtocol")),u=e("./IHubProtocol"),h=e("./ILogger"),f=e("./Subject"),s=e("./Utils"),e=((e=c=r.HubConnectionState||(r.HubConnectionState={})).Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting",o.create=function(e,t,r,n){return new o(e,t,r,n)},Object.defineProperty(o.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==c.Disconnected&&this.connectionState!==c.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),o.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},o.prototype.startWithStateTransitions=function(){return n(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:if(this.connectionState!==c.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=c.Connecting,this.logger.log(h.LogLevel.Debug,"Starting HubConnection."),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return e.sent(),this.connectionState=c.Connected,this.connectionStarted=!0,this.logger.log(h.LogLevel.Debug,"HubConnection connected successfully."),[3,4];case 3:return t=e.sent(),this.connectionState=c.Disconnected,this.logger.log(h.LogLevel.Debug,"HubConnection failed to start successfully because of error '"+t+"'."),[2,Promise.reject(t)];case 4:return[2]}})})},o.prototype.startInternal=function(){return n(this,void 0,void 0,function(){var t,r,n,o=this;return l(this,function(e){switch(e.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,t=new Promise(function(e,t){o.handshakeResolver=e,o.handshakeRejecter=t}),[4,this.connection.start(this.protocol.transferFormat)];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,5,,7]),r={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(h.LogLevel.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(r))];case 3:return e.sent(),this.logger.log(h.LogLevel.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,t];case 4:if(e.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=e.sent(),this.logger.log(h.LogLevel.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw e.sent(),n;case 7:return[2]}})})},o.prototype.stop=function(){return n(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return t=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t];case 3:return e.sent(),[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}})})},o.prototype.stopInternal=function(e){return this.connectionState===c.Disconnected?(this.logger.log(h.LogLevel.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===c.Disconnecting?(this.logger.log(h.LogLevel.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=c.Disconnecting,this.logger.log(h.LogLevel.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(h.LogLevel.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},o.prototype.stream=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o,i=this.replaceStreamingParams(r),s=i[0],i=i[1],a=this.createStreamInvocation(e,r,i),c=new f.Subject;return c.cancelCallback=function(){var e=t.createCancelInvocation(a.invocationId);return delete t.callbacks[a.invocationId],o.then(function(){return t.sendWithProtocol(e)})},this.callbacks[a.invocationId]=function(e,t){t?c.error(t):e&&(e.type===u.MessageType.Completion?e.error?c.error(new Error(e.error)):c.complete():c.next(e.item))},o=this.sendWithProtocol(a).catch(function(e){c.error(e),delete t.callbacks[a.invocationId]}),this.launchStreams(s,o),c},o.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},o.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},o.prototype.send=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.replaceStreamingParams(t),o=n[0],n=n[1],e=this.sendWithProtocol(this.createInvocation(e,t,!0,n));return this.launchStreams(o,e),e},o.prototype.invoke=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.replaceStreamingParams(r),i=o[0],o=o[1],s=this.createInvocation(e,r,!1,o);return new Promise(function(r,n){t.callbacks[s.invocationId]=function(e,t){t?n(t):e&&(e.type===u.MessageType.Completion?e.error?n(new Error(e.error)):r(e.result):n(new Error("Unexpected message type: "+e.type)))};var e=t.sendWithProtocol(s).catch(function(e){n(e),delete t.callbacks[s.invocationId]});t.launchStreams(i,e)})},o.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t))&&this.methods[e].push(t)},o.prototype.off=function(e,t){var r;e&&(e=e.toLowerCase(),r=this.methods[e])&&(!t||-1!==(t=r.indexOf(t))&&(r.splice(t,1),0===r.length))&&delete this.methods[e]},o.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},o.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},o.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},o.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,r=this.protocol.parseMessages(e,this.logger);t<r.length;t++){var n=r[t];switch(n.type){case u.MessageType.Invocation:this.invokeClientMethod(n);break;case u.MessageType.StreamItem:case u.MessageType.Completion:var o=this.callbacks[n.invocationId];o&&(n.type===u.MessageType.Completion&&delete this.callbacks[n.invocationId],o(n));break;case u.MessageType.Ping:break;case u.MessageType.Close:this.logger.log(h.LogLevel.Information,"Close message received from server.");o=n.error?new Error("Server returned an error on close: "+n.error):void 0;!0===n.allowReconnect?this.connection.stop(o):this.stopPromise=this.stopInternal(o);break;default:this.logger.log(h.LogLevel.Warning,"Invalid message type: "+n.type+".")}}this.resetTimeoutPeriod()},o.prototype.processHandshakeResponse=function(e){var t,r,n;try{n=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],r=t[1]}catch(e){var o="Error parsing handshake response: "+e,i=(this.logger.log(h.LogLevel.Error,o),new Error(o));throw this.handshakeRejecter(i),i}if(r.error)throw o="Server returned handshake error: "+r.error,this.logger.log(h.LogLevel.Error,o),i=new Error(o),this.handshakeRejecter(i),i;return this.logger.log(h.LogLevel.Debug,"Server handshake complete."),this.handshakeResolver(),n},o.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},o.prototype.resetTimeoutPeriod=function(){var e,t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return t.serverTimeout()},this.serverTimeoutInMilliseconds),void 0===this.pingServerHandle&&((e=this.nextKeepAlive-(new Date).getTime())<0&&(e=0),this.pingServerHandle=setTimeout(function(){return n(t,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:if(this.connectionState!==c.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},e)))},o.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},o.prototype.invokeClientMethod=function(t){var r=this,e=this.methods[t.target.toLowerCase()];if(e){try{e.forEach(function(e){return e.apply(r,t.arguments)})}catch(e){this.logger.log(h.LogLevel.Error,"A callback for the method "+t.target.toLowerCase()+" threw error '"+e+"'.")}t.invocationId&&(this.logger.log(h.LogLevel.Error,e="Server requested a response, which is not supported in this version of the client."),this.stopPromise=this.stopInternal(new Error(e)))}else this.logger.log(h.LogLevel.Warning,"No client method with the name '"+t.target+"' found.")},o.prototype.connectionClosed=function(e){this.logger.log(h.LogLevel.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===c.Disconnecting?this.completeClose(e):this.connectionState===c.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===c.Connected&&this.completeClose(e)},o.prototype.completeClose=function(t){var r=this;if(this.connectionStarted){this.connectionState=c.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(e){return e.apply(r,[t])})}catch(e){this.logger.log(h.LogLevel.Error,"An onclose callback called with error '"+t+"' threw error '"+e+"'.")}}},o.prototype.reconnect=function(a){return n(this,void 0,void 0,function(){var t,r,n,o,i,s=this;return l(this,function(e){switch(e.label){case 0:if(t=Date.now(),n=void(r=0)!==a?a:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(r++,0,n)))return this.logger.log(h.LogLevel.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(a),[2];if(this.connectionState=c.Reconnecting,a?this.logger.log(h.LogLevel.Information,"Connection reconnecting because of error '"+a+"'."):this.logger.log(h.LogLevel.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(e){return e.apply(s,[a])})}catch(e){this.logger.log(h.LogLevel.Error,"An onreconnecting callback called with error '"+a+"' threw error '"+e+"'.")}if(this.connectionState!==c.Reconnecting)return this.logger.log(h.LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}e.label=1;case 1:return null===o?[3,7]:(this.logger.log(h.LogLevel.Information,"Reconnect attempt number "+r+" will start in "+o+" ms."),[4,new Promise(function(e){s.reconnectDelayHandle=setTimeout(e,o)})]);case 2:if(e.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==c.Reconnecting)return this.logger.log(h.LogLevel.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];e.label=3;case 3:return e.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(e.sent(),this.connectionState=c.Connected,this.logger.log(h.LogLevel.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(e){return e.apply(s,[s.connection.connectionId])})}catch(e){this.logger.log(h.LogLevel.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return(i=e.sent(),this.logger.log(h.LogLevel.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==c.Reconnecting)?(this.logger.log(h.LogLevel.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===c.Disconnecting&&this.completeClose(),[2]):(n=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(r++,Date.now()-t,n),[3,6]);case 6:return[3,1];case 7:return this.logger.log(h.LogLevel.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+r+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},o.prototype.getNextRetryDelay=function(t,r,e){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:t,retryReason:e})}catch(e){return this.logger.log(h.LogLevel.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+t+", "+r+") threw error '"+e+"'."),null}},o.prototype.cancelCallbacksWithError=function(t){var r=this.callbacks;this.callbacks={},Object.keys(r).forEach(function(e){(0,r[e])(null,t)})},o.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},o.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},o.prototype.createInvocation=function(e,t,r,n){return r?0!==n.length?{arguments:t,streamIds:n,target:e,type:u.MessageType.Invocation}:{arguments:t,target:e,type:u.MessageType.Invocation}:(r=this.invocationId,this.invocationId++,0!==n.length?{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:u.MessageType.Invocation}:{arguments:t,invocationId:r.toString(),target:e,type:u.MessageType.Invocation})},o.prototype.launchStreams=function(e,n){var o=this;if(0!==e.length){n=n||Promise.resolve();for(var t in e)!function(r){e[r].subscribe({complete:function(){n=n.then(function(){return o.sendWithProtocol(o.createCompletionMessage(r))})},error:function(e){var t=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error";n=n.then(function(){return o.sendWithProtocol(o.createCompletionMessage(r,t))})},next:function(e){n=n.then(function(){return o.sendWithProtocol(o.createStreamItemMessage(r,e))})}})}(t)}},o.prototype.replaceStreamingParams=function(e){for(var t=[],r=[],n=0;n<e.length;n++){var o,i=e[n];this.isObservable(i)&&(o=this.invocationId,this.invocationId++,t[o]=i,r.push(o.toString()),e.splice(n,1))}return[t,r]},o.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},o.prototype.createStreamInvocation=function(e,t,r){var n=this.invocationId;return this.invocationId++,0!==r.length?{arguments:t,invocationId:n.toString(),streamIds:r,target:e,type:u.MessageType.StreamInvocation}:{arguments:t,invocationId:n.toString(),target:e,type:u.MessageType.StreamInvocation}},o.prototype.createCancelInvocation=function(e){return{invocationId:e,type:u.MessageType.CancelInvocation}},o.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:u.MessageType.StreamItem}},o.prototype.createCompletionMessage=function(e,t,r){return t?{error:t,invocationId:e,type:u.MessageType.Completion}:{invocationId:e,result:r,type:u.MessageType.Completion}},o);function o(e,t,r,n){var o=this;this.nextKeepAlive=0,s.Arg.isRequired(e,"connection"),s.Arg.isRequired(t,"logger"),s.Arg.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=r,this.connection=e,this.reconnectPolicy=n,this.handshakeProtocol=new i.HandshakeProtocol,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=c.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:u.MessageType.Ping})}r.HubConnection=e},{"./HandshakeProtocol":6,"./IHubProtocol":11,"./ILogger":12,"./Subject":18,"./Utils":20}],10:[function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=(Object.defineProperty(r,"__esModule",{value:!0}),e("./DefaultReconnectPolicy")),i=e("./HttpConnection"),s=e("./HubConnection"),a=e("./ILogger"),c=e("./JsonHubProtocol"),l=e("./Loggers"),u=e("./Utils"),h={trace:a.LogLevel.Trace,debug:a.LogLevel.Debug,info:a.LogLevel.Information,information:a.LogLevel.Information,warn:a.LogLevel.Warning,warning:a.LogLevel.Warning,error:a.LogLevel.Error,critical:a.LogLevel.Critical,none:a.LogLevel.None};function f(){}f.prototype.configureLogging=function(e){var t;return u.Arg.isRequired(e,"logging"),void 0!==e.log?this.logger=e:"string"==typeof e?(t=function(e){var t=h[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e),this.logger=new u.ConsoleLogger(t)):this.logger=new u.ConsoleLogger(e),this},f.prototype.withUrl=function(e,t){return u.Arg.isRequired(e,"url"),u.Arg.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions=n({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},f.prototype.withHubProtocol=function(e){return u.Arg.isRequired(e,"protocol"),this.protocol=e,this},f.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new o.DefaultReconnectPolicy(e):this.reconnectPolicy=e:this.reconnectPolicy=new o.DefaultReconnectPolicy,this},f.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),this.url)return e=new i.HttpConnection(this.url,e),s.HubConnection.create(e,this.logger||l.NullLogger.instance,this.protocol||new c.JsonHubProtocol,this.reconnectPolicy);throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.")},r.HubConnectionBuilder=f},{"./DefaultReconnectPolicy":3,"./HttpConnection":8,"./HubConnection":9,"./ILogger":12,"./JsonHubProtocol":14,"./Loggers":15,"./Utils":20}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),(r=r.MessageType||(r.MessageType={}))[r.Invocation=1]="Invocation",r[r.StreamItem=2]="StreamItem",r[r.Completion=3]="Completion",r[r.StreamInvocation=4]="StreamInvocation",r[r.CancelInvocation=5]="CancelInvocation",r[r.Ping=6]="Ping",r[r.Close=7]="Close"},{}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),(r=r.LogLevel||(r.LogLevel={}))[r.Trace=0]="Trace",r[r.Debug=1]="Debug",r[r.Information=2]="Information",r[r.Warning=3]="Warning",r[r.Error=4]="Error",r[r.Critical=5]="Critical",r[r.None=6]="None"},{}],13:[function(e,t,r){"use strict";var n;Object.defineProperty(r,"__esModule",{value:!0}),(n=r.HttpTransportType||(r.HttpTransportType={}))[n.None=0]="None",n[n.WebSockets=1]="WebSockets",n[n.ServerSentEvents=2]="ServerSentEvents",n[n.LongPolling=4]="LongPolling",(n=r.TransferFormat||(r.TransferFormat={}))[n.Text=1]="Text",n[n.Binary=2]="Binary"},{}],14:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e("./IHubProtocol"),c=e("./ILogger"),n=e("./ITransport"),l=e("./Loggers"),u=e("./TextMessageFormat");function o(){this.name="json",this.version=1,this.transferFormat=n.TransferFormat.Text}o.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=l.NullLogger.instance);for(var r=[],n=0,o=u.TextMessageFormat.parse(e);n<o.length;n++){var i=o[n],s=JSON.parse(i);if("number"!=typeof s.type)throw new Error("Invalid payload.");switch(s.type){case a.MessageType.Invocation:this.isInvocationMessage(s);break;case a.MessageType.StreamItem:this.isStreamItemMessage(s);break;case a.MessageType.Completion:this.isCompletionMessage(s);break;case a.MessageType.Ping:case a.MessageType.Close:break;default:t.log(c.LogLevel.Information,"Unknown message type '"+s.type+"' ignored.");continue}r.push(s)}return r},o.prototype.writeMessage=function(e){return u.TextMessageFormat.write(JSON.stringify(e))},o.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},o.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},o.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},o.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},r.JsonHubProtocol=o},{"./IHubProtocol":11,"./ILogger":12,"./ITransport":13,"./Loggers":15,"./TextMessageFormat":19}],15:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.log=function(e,t){},n.instance=new n,r.NullLogger=n},{}],16:[function(e,t,r){"use strict";var a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},l=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},s=(Object.defineProperty(r,"__esModule",{value:!0}),e("./AbortController")),u=e("./Errors"),h=e("./ILogger"),f=e("./ITransport"),p=e("./Utils");function n(e,t,r,n,o,i){this.httpClient=e,this.accessTokenFactory=t,this.logger=r,this.pollAbort=new s.AbortController,this.logMessageContent=n,this.withCredentials=o,this.headers=i,this.running=!1,this.onreceive=null,this.onclose=null}Object.defineProperty(n.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),n.prototype.connect=function(i,s){return c(this,void 0,void 0,function(){var t,r,n,o;return l(this,function(e){switch(e.label){case 0:if(p.Arg.isRequired(i,"url"),p.Arg.isRequired(s,"transferFormat"),p.Arg.isIn(s,f.TransferFormat,"transferFormat"),this.url=i,this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Connecting."),s===f.TransferFormat.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return t=p.getUserAgentHeader(),n=t[0],t=t[1],n=a(((r={})[n]=t,r),this.headers),t={abortSignal:this.pollAbort.signal,headers:n,timeout:1e5,withCredentials:this.withCredentials},s===f.TransferFormat.Binary&&(t.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=e.sent(),this.updateHeaderToken(t,r),n=i+"&_="+Date.now(),this.logger.log(h.LogLevel.Trace,"(LongPolling transport) polling: "+n+"."),[4,this.httpClient.get(n,t)];case 2:return 200!==(o=e.sent()).statusCode?(this.logger.log(h.LogLevel.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new u.HttpError(o.statusText||"",o.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,t),[2]}})})},n.prototype.getAccessToken=function(){return c(this,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}})})},n.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},n.prototype.poll=function(n,o){return c(this,void 0,void 0,function(){var t,r;return l(this,function(e){switch(e.label){case 0:e.trys.push([0,,8,9]),e.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:t=e.sent(),this.updateHeaderToken(o,t),e.label=3;case 3:return e.trys.push([3,5,,6]),t=n+"&_="+Date.now(),this.logger.log(h.LogLevel.Trace,"(LongPolling transport) polling: "+t+"."),[4,this.httpClient.get(t,o)];case 4:return 204===(r=e.sent()).statusCode?(this.logger.log(h.LogLevel.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==r.statusCode?(this.logger.log(h.LogLevel.Error,"(LongPolling transport) Unexpected response code: "+r.statusCode+"."),this.closeError=new u.HttpError(r.statusText||"",r.statusCode),this.running=!1):r.content?(this.logger.log(h.LogLevel.Trace,"(LongPolling transport) data received. "+p.getDataDetail(r.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(r.content)):this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return r=e.sent(),this.running?r instanceof u.TimeoutError?this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=r,this.running=!1):this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Poll errored after shutdown: "+r.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},n.prototype.send=function(t){return c(this,void 0,void 0,function(){return l(this,function(e){return this.running?[2,p.sendMessage(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent,this.withCredentials,this.headers)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},n.prototype.stop=function(){return c(this,void 0,void 0,function(){var t,r,n;return l(this,function(e){switch(e.label){case 0:this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),e.label=1;case 1:return e.trys.push([1,,5,6]),[4,this.receiving];case 2:return e.sent(),this.logger.log(h.LogLevel.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={},n=p.getUserAgentHeader(),r=n[0],n=n[1],t[r]=n,r={headers:a({},t,this.headers),withCredentials:this.withCredentials},[4,this.getAccessToken()];case 3:return n=e.sent(),this.updateHeaderToken(r,n),[4,this.httpClient.delete(this.url,r)];case 4:return e.sent(),this.logger.log(h.LogLevel.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(h.LogLevel.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},n.prototype.raiseOnClose=function(){var e;this.onclose&&(e="(LongPolling transport) Firing onclose event.",this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(h.LogLevel.Trace,e),this.onclose(this.closeError))},r.LongPollingTransport=n},{"./AbortController":1,"./Errors":4,"./ILogger":12,"./ITransport":13,"./Utils":20}],17:[function(e,t,r){"use strict";var u=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},o=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},h=(Object.defineProperty(r,"__esModule",{value:!0}),e("./ILogger")),f=e("./ITransport"),p=e("./Utils");function i(e,t,r,n,o,i,s){this.httpClient=e,this.accessTokenFactory=t,this.logger=r,this.logMessageContent=n,this.withCredentials=i,this.eventSourceConstructor=o,this.headers=s,this.onreceive=null,this.onclose=null}i.prototype.connect=function(c,l){return n(this,void 0,void 0,function(){var t,a=this;return o(this,function(e){switch(e.label){case 0:return(p.Arg.isRequired(c,"url"),p.Arg.isRequired(l,"transferFormat"),p.Arg.isIn(l,f.TransferFormat,"transferFormat"),this.logger.log(h.LogLevel.Trace,"(SSE transport) Connecting."),this.url=c,this.accessTokenFactory)?[4,this.accessTokenFactory()]:[3,2];case 1:(t=e.sent())&&(c+=(c.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t)),e.label=2;case 2:return[2,new Promise(function(e,t){var r=!1;if(l!==f.TransferFormat.Text)t(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));else{var n,o,i,s=p.Platform.isBrowser||p.Platform.isWebWorker?new a.eventSourceConstructor(c,{withCredentials:a.withCredentials}):(i=a.httpClient.getCookieString(c),(n={}).Cookie=i,o=(i=p.getUserAgentHeader())[0],i=i[1],n[o]=i,new a.eventSourceConstructor(c,{withCredentials:a.withCredentials,headers:u({},n,a.headers)}));try{s.onmessage=function(e){if(a.onreceive)try{a.logger.log(h.LogLevel.Trace,"(SSE transport) data received. "+p.getDataDetail(e.data,a.logMessageContent)+"."),a.onreceive(e.data)}catch(e){a.close(e)}},s.onerror=function(e){e=new Error(e.data||"Error occurred");r?a.close(e):t(e)},s.onopen=function(){a.logger.log(h.LogLevel.Information,"SSE connected to "+a.url),a.eventSource=s,r=!0,e()}}catch(e){t(e)}}})]}})})},i.prototype.send=function(t){return n(this,void 0,void 0,function(){return o(this,function(e){return this.eventSource?[2,p.sendMessage(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent,this.withCredentials,this.headers)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},i.prototype.stop=function(){return this.close(),Promise.resolve()},i.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose)&&this.onclose(e)},r.ServerSentEventsTransport=i},{"./ILogger":12,"./ITransport":13,"./Utils":20}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Utils");function o(){this.observers=[]}o.prototype.next=function(e){for(var t=0,r=this.observers;t<r.length;t++)r[t].next(e)},o.prototype.error=function(e){for(var t=0,r=this.observers;t<r.length;t++){var n=r[t];n.error&&n.error(e)}},o.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var r=t[e];r.complete&&r.complete()}},o.prototype.subscribe=function(e){return this.observers.push(e),new n.SubjectSubscription(this,e)},r.Subject=o},{"./Utils":20}],19:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),n.write=function(e){return""+e+n.RecordSeparator},n.parse=function(e){if(e[e.length-1]!==n.RecordSeparator)throw new Error("Message is incomplete.");e=e.split(n.RecordSeparator);return e.pop(),e},n.RecordSeparatorCode=30,n.RecordSeparator=String.fromCharCode(n.RecordSeparatorCode),r.TextMessageFormat=n},{}],20:[function(f,e,p){!function(h){!function(){"use strict";var d=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},g=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},y=(Object.defineProperty(p,"__esModule",{value:!0}),f("./ILogger")),t=f("./Loggers"),r=(p.VERSION="5.0.17",n.isRequired=function(e,t){if(null==e)throw new Error("The '"+t+"' argument is required.")},n.isNotEmpty=function(e,t){if(!e||e.match(/^\s*$/))throw new Error("The '"+t+"' argument should not be empty.")},n.isIn=function(e,t,r){if(!(e in t))throw new Error("Unknown "+r+" value: "+e+".")},n);function n(){}p.Arg=r;Object.defineProperty(i,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(i,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(i,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0});var o=i;function i(){}function v(e,t){var r="";return m(e)?(r="Binary data of length "+e.byteLength,t&&(r+=". Content: '"+s(e)+"'")):"string"==typeof e&&(r="String data of length "+e.length,t)&&(r+=". Content: '"+e+"'"),r}function s(e){var e=new Uint8Array(e),t="";return e.forEach(function(e){t+="0x"+(e<16?"0":"")+e.toString(16)+" "}),t.substr(0,t.length-1)}function m(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function a(e,t){this.subject=e,this.observer=t}p.Platform=o,p.getDataDetail=v,p.formatArrayBuffer=s,p.isArrayBuffer=m,p.sendMessage=function(i,s,a,c,l,u,h,f,p){return e(this,void 0,void 0,function(){var t,r,n,o;return g(this,function(e){switch(e.label){case 0:return(t={},l)?[4,l()]:[3,2];case 1:(r=e.sent())&&((n={}).Authorization="Bearer "+r,t=n),e.label=2;case 2:return r=b(),n=r[0],o=r[1],t[n]=o,i.log(y.LogLevel.Trace,"("+s+" transport) sending data. "+v(u,h)+"."),o=m(u)?"arraybuffer":"text",[4,a.post(c,{content:u,headers:d({},t,p),responseType:o,withCredentials:f})];case 3:return o=e.sent(),i.log(y.LogLevel.Trace,"("+s+" transport) request complete. Response status: "+o.statusCode+"."),[2]}})})},p.createLogger=function(e){return void 0===e?new c(y.LogLevel.Information):null===e?t.NullLogger.instance:e.log?e:new c(e)},a.prototype.dispose=function(){var e=this.subject.observers.indexOf(this.observer);-1<e&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(e){})},p.SubjectSubscription=a;l.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case y.LogLevel.Critical:case y.LogLevel.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+y.LogLevel[e]+": "+t);break;case y.LogLevel.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+y.LogLevel[e]+": "+t);break;case y.LogLevel.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+y.LogLevel[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+y.LogLevel[e]+": "+t)}};var c=l;function l(e){this.minimumLogLevel=e,this.outputConsole=console}function b(){var e="X-SignalR-User-Agent";return[e=o.isNode?"User-Agent":e,u(p.VERSION,function(){{if(!o.isNode)return"";switch(h.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return h.platform}}}(),o.isNode?"NodeJS":"Browser",function(){if(o.isNode)return h.versions.node;return}())]}function u(e,t,r,n){var o="Microsoft SignalR/",i=e.split(".");return o=(o=(o=o+(i[0]+"."+i[1])+(" ("+e+"; "))+(t&&""!==t?t+"; ":"Unknown OS; ")+(""+r))+(n?"; "+n:"; Unknown Runtime Version")+")"}p.ConsoleLogger=c,p.getUserAgentHeader=b,p.constructUserAgent=u}.call(this)}.call(this,f("_process"))},{"./ILogger":12,"./Loggers":15,_process:98}],21:[function(e,t,r){"use strict";var h=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n=this&&this.__awaiter||function(i,s,a,c){return new(a=a||Promise)(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(r,n)}o((c=c.apply(i,s||[])).next())})},o=this&&this.__generator||function(n,o){var i,s,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))c.label=t[1];else if(6===t[0]&&c.label<a[1])c.label=a[1],a=t;else{if(!(a&&c.label<a[2])){a[2]&&c.ops.pop(),c.trys.pop();continue}c.label=a[2],c.ops.push(t)}}t=o.call(n,c)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},f=(Object.defineProperty(r,"__esModule",{value:!0}),e("./ILogger")),p=e("./ITransport"),d=e("./Utils");function i(e,t,r,n,o,i){this.logger=r,this.accessTokenFactory=t,this.logMessageContent=n,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null,this.headers=i}i.prototype.connect=function(l,u){return n(this,void 0,void 0,function(){var t,c=this;return o(this,function(e){switch(e.label){case 0:return(d.Arg.isRequired(l,"url"),d.Arg.isRequired(u,"transferFormat"),d.Arg.isIn(u,p.TransferFormat,"transferFormat"),this.logger.log(f.LogLevel.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory)?[4,this.accessTokenFactory()]:[3,2];case 1:(t=e.sent())&&(l+=(l.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t)),e.label=2;case 2:return[2,new Promise(function(t,r){l=l.replace(/^http/,"ws");var n,e,o,i,s=c.httpClient.getCookieString(l),a=!1;d.Platform.isNode&&(e={},o=(i=d.getUserAgentHeader())[0],i=i[1],e[o]=i,s&&(e.Cookie=""+s),n=new c.webSocketConstructor(l,void 0,{headers:h({},e,c.headers)})),n=n||new c.webSocketConstructor(l),u===p.TransferFormat.Binary&&(n.binaryType="arraybuffer"),n.onopen=function(e){c.logger.log(f.LogLevel.Information,"WebSocket connected to "+l+"."),c.webSocket=n,a=!0,t()},n.onerror=function(e){var t=null,t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport.");r(t)},n.onmessage=function(e){if(c.logger.log(f.LogLevel.Trace,"(WebSockets transport) data received. "+d.getDataDetail(e.data,c.logMessageContent)+"."),c.onreceive)try{c.onreceive(e.data)}catch(e){c.close(e)}},n.onclose=function(e){var t;a?c.close(e):(t=null,t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),r(t))}})]}})})},i.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(f.LogLevel.Trace,"(WebSockets transport) sending data. "+d.getDataDetail(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},i.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},i.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(f.LogLevel.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},i.prototype.isCloseEvent=function(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code},r.WebSocketTransport=i},{"./ILogger":12,"./ITransport":13,"./Utils":20}],22:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}),function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(r,"__esModule",{value:!0}),e("./Errors")),a=e("./HttpClient"),c=e("./ILogger"),e=(o=a.HttpClient,i(l,o),l.prototype.send=function(o){var i=this;return o.abortSignal&&o.abortSignal.aborted?Promise.reject(new s.AbortError):o.method?o.url?new Promise(function(e,t){var r=new XMLHttpRequest,n=(r.open(o.method,o.url,!0),r.withCredentials=void 0===o.withCredentials||o.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),o.headers);n&&Object.keys(n).forEach(function(e){r.setRequestHeader(e,n[e])}),o.responseType&&(r.responseType=o.responseType),o.abortSignal&&(o.abortSignal.onabort=function(){r.abort(),t(new s.AbortError)}),o.timeout&&(r.timeout=o.timeout),r.onload=function(){o.abortSignal&&(o.abortSignal.onabort=null),200<=r.status&&r.status<300?e(new a.HttpResponse(r.status,r.statusText,r.response||r.responseText)):t(new s.HttpError(r.statusText,r.status))},r.onerror=function(){i.logger.log(c.LogLevel.Warning,"Error from HTTP request. "+r.status+": "+r.statusText+"."),t(new s.HttpError(r.statusText,r.status))},r.ontimeout=function(){i.logger.log(c.LogLevel.Warning,"Timeout from HTTP request."),t(new s.TimeoutError)},r.send(o.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},l);function l(e){var t=o.call(this)||this;return t.logger=e,t}r.XhrHttpClient=e},{"./Errors":4,"./HttpClient":7,"./ILogger":12}],23:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Errors"),n=(r.AbortError=n.AbortError,r.HttpError=n.HttpError,r.TimeoutError=n.TimeoutError,e("./HttpClient")),n=(r.HttpClient=n.HttpClient,r.HttpResponse=n.HttpResponse,e("./DefaultHttpClient")),n=(r.DefaultHttpClient=n.DefaultHttpClient,e("./HubConnection")),n=(r.HubConnection=n.HubConnection,r.HubConnectionState=n.HubConnectionState,e("./HubConnectionBuilder")),n=(r.HubConnectionBuilder=n.HubConnectionBuilder,e("./IHubProtocol")),n=(r.MessageType=n.MessageType,e("./ILogger")),n=(r.LogLevel=n.LogLevel,e("./ITransport")),n=(r.HttpTransportType=n.HttpTransportType,r.TransferFormat=n.TransferFormat,e("./Loggers")),n=(r.NullLogger=n.NullLogger,e("./JsonHubProtocol")),n=(r.JsonHubProtocol=n.JsonHubProtocol,e("./Subject")),n=(r.Subject=n.Subject,e("./Utils"));r.VERSION=n.VERSION},{"./DefaultHttpClient":2,"./Errors":4,"./HttpClient":7,"./HubConnection":9,"./HubConnectionBuilder":10,"./IHubProtocol":11,"./ILogger":12,"./ITransport":13,"./JsonHubProtocol":14,"./Loggers":15,"./Subject":18,"./Utils":20}],24:[function(e,t,r){t.exports=e("./lib/axios")},{"./lib/axios":26}],25:[function(e,t,r){"use strict";var u=e("./../utils"),h=e("./../core/settle"),f=e("./../helpers/cookies"),p=e("./../helpers/buildURL"),d=e("../core/buildFullPath"),g=e("./../helpers/parseHeaders"),y=e("./../helpers/isURLSameOrigin"),v=e("../core/createError");t.exports=function(l){return new Promise(function(t,r){var e,n=l.data,o=l.headers,i=l.responseType,s=(u.isFormData(n)&&delete o["Content-Type"],new XMLHttpRequest),a=(l.auth&&(a=l.auth.username||"",e=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"",o.Authorization="Basic "+btoa(a+":"+e)),d(l.baseURL,l.url));function c(){var e;s&&(e="getAllResponseHeaders"in s?g(s.getAllResponseHeaders()):null,e={data:i&&"text"!==i&&"json"!==i?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:e,config:l,request:s},h(t,r,e),s=null)}s.open(l.method.toUpperCase(),p(a,l.params,l.paramsSerializer),!0),s.timeout=l.timeout,"onloadend"in s?s.onloadend=c:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(c)},s.onabort=function(){s&&(r(v("Request aborted",l,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(v("Network Error",l,null,s)),s=null},s.ontimeout=function(){var e="timeout of "+l.timeout+"ms exceeded";l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),r(v(e,l,l.transitional&&l.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",s)),s=null},u.isStandardBrowserEnv()&&(e=(l.withCredentials||y(a))&&l.xsrfCookieName?f.read(l.xsrfCookieName):void 0)&&(o[l.xsrfHeaderName]=e),"setRequestHeader"in s&&u.forEach(o,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:s.setRequestHeader(t,e)}),u.isUndefined(l.withCredentials)||(s.withCredentials=!!l.withCredentials),i&&"json"!==i&&(s.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&s.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(e){s&&(s.abort(),r(e),s=null)}),n=n||null,s.send(n)})}},{"../core/buildFullPath":32,"../core/createError":33,"./../core/settle":37,"./../helpers/buildURL":41,"./../helpers/cookies":43,"./../helpers/isURLSameOrigin":46,"./../helpers/parseHeaders":48,"./../utils":51}],26:[function(e,t,r){"use strict";var n=e("./utils"),o=e("./helpers/bind"),i=e("./core/Axios"),s=e("./core/mergeConfig");function a(e){var e=new i(e),t=o(i.prototype.request,e);return n.extend(t,i.prototype,e),n.extend(t,e),t}var c=a(e("./defaults"));c.Axios=i,c.create=function(e){return a(s(c.defaults,e))},c.Cancel=e("./cancel/Cancel"),c.CancelToken=e("./cancel/CancelToken"),c.isCancel=e("./cancel/isCancel"),c.all=function(e){return Promise.all(e)},c.spread=e("./helpers/spread"),c.isAxiosError=e("./helpers/isAxiosError"),t.exports=c,t.exports.default=c},{"./cancel/Cancel":27,"./cancel/CancelToken":28,"./cancel/isCancel":29,"./core/Axios":30,"./core/mergeConfig":36,"./defaults":39,"./helpers/bind":40,"./helpers/isAxiosError":45,"./helpers/spread":49,"./utils":51}],27:[function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},{}],28:[function(e,t,r){"use strict";var n=e("./Cancel");function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},{"./Cancel":27}],29:[function(e,t,r){"use strict";t.exports=function(e){return!(!e||!e.__CANCEL__)}},{}],30:[function(e,t,r){"use strict";var n=e("./../utils"),o=e("../helpers/buildURL"),i=e("./InterceptorManager"),u=e("./dispatchRequest"),h=e("./mergeConfig"),f=e("../helpers/validator"),p=f.validators;function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=h(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e,r=t.transitional,n=(void 0!==r&&f.assertOptions(r,{silentJSONParsing:p.transitional(p.boolean,"1.0.0"),forcedJSONParsing:p.transitional(p.boolean,"1.0.0"),clarifyTimeoutError:p.transitional(p.boolean,"1.0.0")},!1),[]),o=!0,i=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}),[]);if(this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)}),o){for(var s=t;n.length;){var a=n.shift(),c=n.shift();try{s=a(s)}catch(e){c(e);break}}try{e=u(s)}catch(e){return Promise.reject(e)}for(;i.length;)e=e.then(i.shift(),i.shift())}else{var l=[u,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),e=Promise.resolve(t);l.length;)e=e.then(l.shift(),l.shift())}return e},s.prototype.getUri=function(e){return e=h(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(r){s.prototype[r]=function(e,t){return this.request(h(t||{},{method:r,url:e,data:(t||{}).data}))}}),n.forEach(["post","put","patch"],function(n){s.prototype[n]=function(e,t,r){return this.request(h(r||{},{method:n,url:e,data:t}))}}),t.exports=s},{"../helpers/buildURL":41,"../helpers/validator":50,"./../utils":51,"./InterceptorManager":31,"./dispatchRequest":34,"./mergeConfig":36}],31:[function(e,t,r){"use strict";var n=e("./../utils");function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},{"./../utils":51}],32:[function(e,t,r){"use strict";var n=e("../helpers/isAbsoluteURL"),o=e("../helpers/combineURLs");t.exports=function(e,t){return e&&!n(t)?o(e,t):t}},{"../helpers/combineURLs":42,"../helpers/isAbsoluteURL":44}],33:[function(e,t,r){"use strict";var i=e("./enhanceError");t.exports=function(e,t,r,n,o){e=new Error(e);return i(e,t,r,n,o)}},{"./enhanceError":35}],34:[function(e,t,r){"use strict";var n=e("./../utils"),o=e("./transformData"),i=e("../cancel/isCancel"),s=e("../defaults");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return a(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},{"../cancel/isCancel":29,"../defaults":39,"./../utils":51,"./transformData":38}],35:[function(e,t,r){"use strict";t.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},{}],36:[function(e,t,r){"use strict";var u=e("../utils");t.exports=function(t,r){r=r||{};var n={},e=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function a(e,t){return u.isPlainObject(e)&&u.isPlainObject(t)?u.merge(e,t):u.isPlainObject(t)?u.merge({},t):u.isArray(t)?t.slice():t}function c(e){u.isUndefined(r[e])?u.isUndefined(t[e])||(n[e]=a(void 0,t[e])):n[e]=a(t[e],r[e])}u.forEach(e,function(e){u.isUndefined(r[e])||(n[e]=a(void 0,r[e]))}),u.forEach(o,c),u.forEach(i,function(e){u.isUndefined(r[e])?u.isUndefined(t[e])||(n[e]=a(void 0,t[e])):n[e]=a(void 0,r[e])}),u.forEach(s,function(e){e in r?n[e]=a(t[e],r[e]):e in t&&(n[e]=a(void 0,t[e]))});var l=e.concat(o).concat(i).concat(s),e=Object.keys(t).concat(Object.keys(r)).filter(function(e){return-1===l.indexOf(e)});return u.forEach(e,c),n}},{"../utils":51}],37:[function(e,t,r){"use strict";var o=e("./createError");t.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},{"./createError":33}],38:[function(e,t,r){"use strict";var o=e("./../utils"),i=e("./../defaults");t.exports=function(t,r,e){var n=this||i;return o.forEach(e,function(e){t=e.call(n,t,r)}),t}},{"./../defaults":39,"./../utils":51}],39:[function(c,l,e){!function(a){!function(){"use strict";var o=c("./utils"),i=c("./helpers/normalizeHeaderName"),n=c("./core/enhanceError"),t={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var e,r={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?e=c("./adapters/xhr"):void 0!==a&&"[object process]"===Object.prototype.toString.call(a)&&(e=c("./adapters/http")),e),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),!(o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))){if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(o.isObject(e)||t&&"application/json"===t["Content-Type"]){s(t,"application/json");var t=e,r=void 0,n=void 0;if(o.isString(t))try{return(r||JSON.parse)(t),o.trim(t)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(t)}}return e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,t=t&&t.forcedJSONParsing,r=!r&&"json"===this.responseType;if(r||t&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw n(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){r.headers[e]={}}),o.forEach(["post","put","patch"],function(e){r.headers[e]=o.merge(t)}),l.exports=r}.call(this)}.call(this,c("_process"))},{"./adapters/http":25,"./adapters/xhr":25,"./core/enhanceError":35,"./helpers/normalizeHeaderName":47,"./utils":51,_process:98}],40:[function(e,t,r){"use strict";t.exports=function(r,n){return function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];return r.apply(n,e)}}},{}],41:[function(e,t,r){"use strict";var o=e("./../utils");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(e,t,r){var n;return t&&(r=r?r(t):o.isURLSearchParams(t)?t.toString():(n=[],o.forEach(t,function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(i(t)+"="+i(e))}))}),n.join("&")))&&(-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r),e}},{"./../utils":51}],42:[function(e,t,r){"use strict";t.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},{}],43:[function(e,t,r){"use strict";var a=e("./../utils");t.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),a.isString(n)&&s.push("path="+n),a.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},{"./../utils":51}],44:[function(e,t,r){"use strict";t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},{}],45:[function(e,t,r){"use strict";t.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},{}],46:[function(e,t,r){"use strict";var n,o,i,s=e("./../utils");function a(e){return o&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}t.exports=s.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n=a(window.location.href),function(e){e=s.isString(e)?a(e):e;return e.protocol===n.protocol&&e.host===n.host}):function(){return!0}},{"./../utils":51}],47:[function(e,t,r){"use strict";var o=e("../utils");t.exports=function(r,n){o.forEach(r,function(e,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(r[n]=e,delete r[t])})}},{"../utils":51}],48:[function(e,t,r){"use strict";var o=e("./../utils"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(e){var t,r,n={};return e&&o.forEach(e.split("\n"),function(e){r=e.indexOf(":"),t=o.trim(e.substr(0,r)).toLowerCase(),r=o.trim(e.substr(r+1)),!t||n[t]&&0<=i.indexOf(t)||(n[t]="set-cookie"===t?(n[t]||[]).concat([r]):n[t]?n[t]+", "+r:r)}),n}},{"./../utils":51}],49:[function(e,t,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},{}],50:[function(e,t,r){"use strict";var a=e("./../../package.json"),n={},c=(["object","boolean","number","function","string","symbol"].forEach(function(t,r){n[t]=function(e){return typeof e===t||"a"+(r<1?"n ":" ")+t}}),{}),i=a.version.split(".");function l(e,t){for(var r=t?t.split("."):i,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]<n[o])return!1}return!1}n.transitional=function(n,o,r){var i=o&&l(o);function s(e,t){return"[Axios v"+a.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(e,t,r){if(!1===n)throw new Error(s(t," has been removed in "+o));return i&&!c[t]&&(c[t]=!0,console.warn(s(t," has been deprecated since v"+o+" and will be removed in the near future"))),!n||n(e,t,r)}},t.exports={isOlderVersion:l,assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;0<o--;){var i=n[o],s=t[i];if(s){var a=e[i],s=void 0===a||s(a,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:n}},{"./../../package.json":52}],51:[function(e,t,r){"use strict";var o=e("./helpers/bind"),n=Object.prototype.toString;function i(e){return"[object Array]"===n.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===n.call(e)&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}function l(e){return"[object Function]"===n.call(e)}function u(e,t){if(null!=e)if(i(e="object"!=typeof e?[e]:e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}t.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===n.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===n.call(e)},isFile:function(e){return"[object File]"===n.call(e)},isBlob:function(e){return"[object Blob]"===n.call(e)},isFunction:l,isStream:function(e){return a(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function r(){var n={};function e(e,t){c(n[t])&&c(e)?n[t]=r(n[t],e):c(e)?n[t]=r({},e):i(e)?n[t]=e.slice():n[t]=e}for(var t=0,o=arguments.length;t<o;t++)u(arguments[t],e);return n},extend:function(r,e,n){return u(e,function(e,t){r[t]=n&&"function"==typeof e?o(e,n):e}),r},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return e=65279===e.charCodeAt(0)?e.slice(1):e}}},{"./helpers/bind":40}],52:[function(e,t,r){t.exports={_from:"axios@^0.21.1",_id:"[email protected]",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["/"],_resolved:"http://slcnugetwin1.prod.quest.corp:81/npm/pangaea-npm/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"C:\\Pangaea\\Safeguard-JavaScript",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},{}],53:[function(e,t,r){"use strict";r.byteLength=function(e){var e=u(e),t=e[0],e=e[1];return 3*(t+e)/4-e},r.toByteArray=function(e){var t,r,n=u(e),o=n[0],n=n[1],i=new l(function(e,t){return 3*(e+t)/4-t}(o,n)),s=0,a=0<n?o-4:o;for(r=0;r<a;r+=4)t=c[e.charCodeAt(r)]<<18|c[e.charCodeAt(r+1)]<<12|c[e.charCodeAt(r+2)]<<6|c[e.charCodeAt(r+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,i[s++]=255&t);1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(function(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n));return o.join("")}(e,i,s<i+16383?s:i+16383));1==n?(t=e[r-1],o.push(a[t>>2]+a[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],o.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return o.join("")};for(var a=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)a[o]=n[o],c[n.charCodeAt(o)]=o;function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("="),t=(e=-1===e?t:e)===t?0:4-e%4;return[e,t]}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],54:[function(e,t,r){},{}],55:[function(e,t,r){arguments[4][54][0].apply(r,arguments)},{dup:54}],56:[function(e,L,A){!function(x){!function(){var e=this,t="object"==typeof A&&A&&!A.nodeType&&A,r="object"==typeof L&&L&&!L.nodeType&&L,n="object"==typeof x&&x;n.global!==n&&n.window!==n&&n.self!==n||(e=n);var o,i,y=2147483647,v=36,m=26,s=38,a=700,c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=v-1,b=Math.floor,w=String.fromCharCode;function _(e){throw new RangeError(h[e])}function p(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function d(e,t){var r=e.split("@"),n="",r=(1<r.length&&(n=r[0]+"@",e=r[1]),(e=e.replace(u,".")).split("."));return n+p(r,t).join(".")}function S(e){for(var t,r,n=[],o=0,i=e.length;o<i;)55296<=(t=e.charCodeAt(o++))&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function g(e){return p(e,function(e){var t="";return 65535<e&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?b(e/a):e>>1,e+=b(e/t);f*m>>1<e;n+=v)e=b(e/f);return b(n+(f+1)*e/(e+s))}function T(e){var t,r,n,o,i,s,a,c=[],l=e.length,u=0,h=128,f=72,p=e.lastIndexOf("-");for(p<0&&(p=0),r=0;r<p;++r)128<=e.charCodeAt(r)&&_("not-basic"),c.push(e.charCodeAt(r));for(n=0<p?p+1:0;n<l;){for(o=u,i=1,s=v;l<=n&&_("invalid-input"),a=e.charCodeAt(n++),(v<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:v)||a>b((y-u)/i))&&_("overflow"),u+=a*i,!(a<(a=s<=f?1:f+m<=s?m:s-f));s+=v)i>b(y/(a=v-a))&&_("overflow"),i*=a;f=C(u-o,t=c.length+1,0==o),b(u/t)>y-h&&_("overflow"),h+=b(u/t),u%=t,c.splice(u++,0,h)}return g(c)}function k(e){for(var t,r,n,o,i,s,a,c,l,u,h=[],f=(e=S(e)).length,p=128,d=72,g=t=0;g<f;++g)(a=e[g])<128&&h.push(w(a));for(r=n=h.length,n&&h.push("-");r<f;){for(o=y,g=0;g<f;++g)p<=(a=e[g])&&a<o&&(o=a);for(o-p>b((y-t)/(c=r+1))&&_("overflow"),t+=(o-p)*c,p=o,g=0;g<f;++g)if((a=e[g])<p&&++t>y&&_("overflow"),a==p){for(i=t,s=v;!(i<(l=s<=d?1:d+m<=s?m:s-d));s+=v)h.push(w(E(l+(u=i-l)%(l=v-l),0))),i=b(u/l);h.push(w(E(i,0))),d=C(t,c,r==n),t=0,++r}++t,++p}return h.join("")}if(o={version:"1.4.1",ucs2:{decode:S,encode:g},decode:T,encode:k,toASCII:function(e){return d(e,function(e){return l.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return d(e,function(e){return c.test(e)?T(e.slice(4).toLowerCase()):e})}},t&&r)if(L.exports==t)r.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],57:[function(P,e,O){!function(e){!function(){"use strict";var C=P("base64-js"),i=P("ieee754"),t=(O.Buffer=h,O.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},O.INSPECT_MAX_BYTES=50,2147483647);function c(e){if(t<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=new Uint8Array(e);return e.__proto__=h.prototype,e}function h(e,t,r){if("number"!=typeof e)return n(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return s(e)}function n(e,t,r){if("string"==typeof e){var n=e,o=t;if(h.isEncoding(o="string"==typeof o&&""!==o?o:"utf8"))return i=0|f(n,o),s=c(i),s=(n=s.write(n,o))!==i?s.slice(0,n):s;throw new TypeError("Unknown encoding: "+o)}if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)){var i=e,n=t,s=r;if(n<0||i.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<n+(s||0))throw new RangeError('"length" is outside of buffer bounds');return(i=void 0===n&&void 0===s?new Uint8Array(i):void 0===s?new Uint8Array(i,n):new Uint8Array(i,n,s)).__proto__=h.prototype,i}if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return h.from(o,t,r);var a=function(e){{var t,r;if(h.isBuffer(e))return t=0|u(e.length),0!==(r=c(t)).length&&e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||R(e.length)?c(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s(e){return o(e),c(e<0?0:0|u(e))}function l(e){for(var t=e.length<0?0:0|u(e.length),r=c(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function u(e){if(t<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return 0|e}function f(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return x(e).length;default:if(o)return n?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function r(e,t,r){var n,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,s=t,a=r,c=i.length;(!a||a<0||c<a)&&(a=c);for(var l="",u=s=!s||s<0?0:s;u<a;++u)l+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(i[u]);return l;case"utf8":case"utf-8":return T(this,t,r);case"ascii":var h=this,c=t,f=r,p="";f=Math.min(h.length,f);for(var d=c;d<f;++d)p+=String.fromCharCode(127&h[d]);return p;case"latin1":case"binary":var g=this,s=t,y=r,v="";y=Math.min(g.length,y);for(var m=s;m<y;++m)v+=String.fromCharCode(g[m]);return v;case"base64":return b=this,n=r,0===(w=t)&&n===b.length?C.fromByteArray(b):C.fromByteArray(b.slice(w,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var b=t,w=r,_=this.slice(b,w),S="",E=0;E<_.length;E+=2)S+=String.fromCharCode(_[E]+256*_[E+1]);return S;default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function a(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),(r=(r=R(r=+r)?o?0:e.length-1:r)<0?e.length+r:r)>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=h.from(t,n)),h.isBuffer(t))return 0===t.length?-1:d(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):d(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function d(e,t,r,n,o){var i=1,s=e.length,a=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;s/=i=2,a/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var l=-1,u=r;u<s;u++)if(c(e,u)===c(t,-1===l?0:u-l)){if(u-(l=-1===l?u:l)+1===a)return l*i}else-1!==l&&(u-=u-l),l=-1;else for(u=r=s<r+a?s-a:r;0<=u;u--){for(var h=!0,f=0;f<a;f++)if(c(e,u+f)!==c(t,f)){h=!1;break}if(h)return u}return-1}function y(e,t,r,n){return L(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function v(e,t,r,n){return L(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o.push(r%256),o.push(n);return o}(t,e.length-r),e,r,n)}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,c,l=e[o],u=null,h=239<l?4:223<l?3:191<l?2:1;if(o+h<=r)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&127<(c=(31&l)<<6|63&i)&&(u=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&2047<(c=(15&l)<<12|(63&i)<<6|63&s)&&(c<55296||57343<c)&&(u=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&65535<(c=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)&&c<1114112&&(u=c)}null===u?(u=65533,h=1):65535<u&&(n.push((u-=65536)>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=h}var f=n,p=f.length;if(p<=m)return String.fromCharCode.apply(String,f);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,f.slice(g,g+=m));return d}O.kMaxLength=t,(h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),h.poolSize=8192,h.from=n,h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,h.alloc=function(e,t,r){return t=t,r=r,o(e=e),!(e<=0)&&void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)},h.allocUnsafe=s,h.allocUnsafeSlow=s,h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(A(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);if(void 0===t)for(o=t=0;o<e.length;++o)t+=e[o].length;for(var r=h.allocUnsafe(t),n=0,o=0;o<e.length;++o){var i=e[o];if(A(i,Uint8Array)&&(i=h.from(i)),!h.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,n),n+=i.length}return r},h.byteLength=f,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)a(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)a(this,t,t+3),a(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)a(this,t,t+7),a(this,t+1,t+6),a(this,t+2,t+5),a(this,t+3,t+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):r.apply(this,arguments)},h.prototype.equals=function(e){if(h.isBuffer(e))return this===e||0===h.compare(this,e);throw new TypeError("Argument must be a Buffer")},h.prototype.inspect=function(){var e="",t=O.INSPECT_MAX_BYTES,e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();return this.length>t&&(e+=" ... "),"<Buffer "+e+">"},h.prototype.compare=function(e,t,r,n,o){if(A(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=e.slice(t,r),u=0;u<a;++u)if(c[u]!==l[u]){i=c[u],s=l[u];break}return i<s?-1:s<i?1:0},h.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},h.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},h.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},h.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||o<r)&&(r=o),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,s,a,c=!1;;)switch(n){case"hex":var l=this,u=e,h=t,f=r,p=(h=Number(h)||0,l.length-h);(!f||p<(f=Number(f)))&&(f=p),(p=u.length)/2<f&&(f=p/2);for(var d=0;d<f;++d){var g=parseInt(u.substr(2*d,2),16);if(R(g))return d;l[h+d]=g}return d;case"utf8":case"utf-8":return p=t,a=r,L(k(e,(s=this).length-p),s,p,a);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return s=this,a=t,i=r,L(x(e),s,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var m=4096;function g(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,o,i){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function w(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,n,o){return t=+t,r>>>=0,o||w(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||w(e,0,r,8),i.write(e,t,r,n,52,8),r+8}h.prototype.slice=function(e,t){var r=this.length,r=((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),this.subarray(e,t));return r.__proto__=h.prototype,r},h.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||g(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},h.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||g(e,t,this.length);for(var n=this[e+--t],o=1;0<t&&(o*=256);)n+=this[e+--t]*o;return n},h.prototype.readUInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),this[e]},h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||g(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*t)),n},h.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||g(e,t,this.length);for(var n=t,o=1,i=this[e+--n];0<n&&(o*=256);)i+=this[e+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},h.prototype.readInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},h.prototype.readInt16BE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readFloatLE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!1,52,8)},h.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||b(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},h.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||b(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+r},h.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(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},h.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(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},h.prototype.writeIntLE=function(e,t,r,n){e=+e,t>>>=0,n||b(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var o=0,i=1,s=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+r},h.prototype.writeIntBE=function(e,t,r,n){e=+e,t>>>=0,n||b(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var o=r-1,i=1,s=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+r},h.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},h.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(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},h.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},h.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},h.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},h.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},h.prototype.copy=function(e,t,r,n){if(!h.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),(n=0<n&&n<r?r:n)===r)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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);var o=(n=e.length-t<n-r?e.length-t+r:n)-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;0<=i;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},h.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o;1===e.length&&(o=e.charCodeAt(0),"utf8"===n&&o<128||"latin1"===n)&&(e=o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");var i;if(!(r<=t))if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(i=t;i<r;++i)this[i]=e;else{var s=h.isBuffer(e)?e:h.from(e,n),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var E=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=e.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(t-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(t-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(t-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,r<128){if(--t<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.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;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function x(e){return C.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function R(e){return e!=e}}.call(this)}.call(this,P("buffer").Buffer)},{"base64-js":53,buffer:57,ieee754:96}],58:[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"}},{}],59:[function(e,t,r){var n,o;n=this,o=function(e){for(var t=e,r=t.lib.BlockCipher,n=t.algo,l=[],o=[],i=[],s=[],a=[],c=[],u=[],h=[],f=[],p=[],d=[],g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(var y=0,v=0,g=0;g<256;g++){var m=v^v<<1^v<<2^v<<3^v<<4,b=d[o[l[y]=m=m>>>8^255&m^99]=y],w=d[b],_=d[w],S=257*d[m]^16843008*m;i[y]=S<<24|S>>>8,s[y]=S<<16|S>>>16,a[y]=S<<8|S>>>24,c[y]=S,u[m]=(S=16843009*_^65537*w^257*b^16843008*y)<<24|S>>>8,h[m]=S<<16|S>>>16,f[m]=S<<8|S>>>24,p[m]=S,y?(y=b^d[d[d[_^b]]],v^=d[d[v]]):y=v=1}var E=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*(1+(this._nRounds=6+r)),o=this._keySchedule=[],i=0;i<n;i++)i<r?o[i]=t[i]:(c=o[i-1],i%r?6<r&&i%r==4&&(c=l[c>>>24]<<24|l[c>>>16&255]<<16|l[c>>>8&255]<<8|l[255&c]):(c=l[(c=c<<8|c>>>24)>>>24]<<24|l[c>>>16&255]<<16|l[c>>>8&255]<<8|l[255&c],c^=E[i/r|0]<<24),o[i]=o[i-r]^c);for(var s=this._invKeySchedule=[],a=0;a<n;a++){var c,i=n-a;c=a%4?o[i]:o[i-4],s[a]=a<4||i<=4?c:u[l[c>>>24]]^h[l[c>>>16&255]]^f[l[c>>>8&255]]^p[l[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,s,a,c,l)},decryptBlock:function(e,t){var r=e[t+1],r=(e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,h,f,p,o),e[t+1]);e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],f=e[t+3]^r[3],p=4,d=1;d<c;d++)var g=n[l>>>24]^o[u>>>16&255]^i[h>>>8&255]^s[255&f]^r[p++],y=n[u>>>24]^o[h>>>16&255]^i[f>>>8&255]^s[255&l]^r[p++],v=n[h>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&u]^r[p++],m=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&h]^r[p++],l=g,u=y,h=v,f=m;g=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^r[p++],y=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^r[p++],v=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^r[p++],m=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[p++];e[t]=g,e[t+1]=y,e[t+2]=v,e[t+3]=m},keySize:8});return t.AES=r._createHelper(n),e.AES},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61,"./enc-base64":62,"./evpkdf":65,"./md5":70}],60:[function(e,t,r){var n,o;n=this,o=function(e){function o(e){return"string"==typeof e?d:p}function i(e,t,r){var n,o=this._iv;o?(n=o,this._iv=void 0):n=this._prevBlock;for(var i=0;i<r;i++)e[t+i]^=n[i]}var t,r,s,n,a,c,l,u,h,f,p,d;e.lib.Cipher||(t=(e=e).lib,r=t.Base,s=t.WordArray,n=t.BufferedBlockAlgorithm,(a=e.enc).Utf8,c=a.Base64,l=e.algo.EvpKDF,u=t.Cipher=n.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(n){return{encrypt:function(e,t,r){return o(t).encrypt(n,e,t,r)},decrypt:function(e,t,r){return o(t).decrypt(n,e,t,r)}}}}),t.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),a=e.mode={},h=t.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=a.CBC=((a=h.extend()).Encryptor=a.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize;i.call(this,e,t,n),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),a.Decryptor=a.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=e.slice(t,t+n);r.decryptBlock(e,t),i.call(this,e,t,n),this._prevBlock=o}}),a),a=(e.pad={}).Pkcs7={pad:function(e,t){for(var t=4*t,r=t-e.sigBytes%t,n=r<<24|r<<16|r<<8|r,o=[],i=0;i<r;i+=4)o.push(n);t=s.create(o,r);e.concat(t)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:a}),reset:function(){u.reset.call(this);var e,t=this.cfg,r=t.iv,t=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=t.createEncryptor:(e=t.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(t,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),f=t.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,e=e.salt,e=e?s.create([1398893684,1701076831]).concat(e).concat(t):t;return e.toString(c)},parse:function(e){var t,e=c.parse(e),r=e.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=s.create(r.slice(2,4)),r.splice(0,4),e.sigBytes-=16),f.create({ciphertext:e,salt:t})}},p=t.SerializableCipher=r.extend({cfg:r.extend({format:h}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),t=o.finalize(t),o=o.cfg;return f.create({ciphertext:t,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),a=(e.kdf={}).OpenSSL={execute:function(e,t,r,n){n=n||s.random(8);e=l.create({keySize:t+r}).compute(e,n),r=s.create(e.words.slice(t),4*r);return e.sigBytes=4*t,f.create({key:e,iv:r,salt:n})}},d=t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:a}),encrypt:function(e,t,r,n){r=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize),n.iv=r.iv,e=p.encrypt.call(this,e,t,r.key,n);return e.mixIn(r),e},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);r=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=r.iv,p.decrypt.call(this,e,t,r.key,n)}}))},"object"==typeof r?t.exports=r=o(e("./core"),e("./evpkdf")):o(n.CryptoJS)},{"./core":61,"./evpkdf":65}],61:[function(g,r,n){!function(d){!function(){var e,t;e=this,t=function(){var n,l=Math;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),!(n=!(n=!(n="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:n)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:n)&&void 0!==d&&d.crypto?d.crypto:n)&&"function"==typeof g)try{n=g("crypto")}catch(e){}var r=Object.create||function(e){return t.prototype=e,e=new t,t.prototype=null,e};function t(){}var e={},o=e.lib={},i=o.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=l.ceil(t/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}());return new u.init(t,e)}}),s=e.enc={},a=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},h=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t,r=this._data,n=r.words,o=r.sigBytes,i=this.blockSize,s=o/(4*i),a=(s=e?l.ceil(s):l.max((0|s)-this._minBufferSize,0))*i,e=l.min(4*a,o);if(a){for(var c=0;c<a;c+=i)this._doProcessBlock(n,c);t=n.splice(0,a),r.sigBytes-=e}return new u.init(t,e)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(r){return function(e,t){return new r.init(t).finalize(e)}},_createHmacHelper:function(r){return function(e,t){return new p.HMAC.init(r,t).finalize(e)}}}),e.algo={});return e},"object"==typeof n?r.exports=n=t():e.CryptoJS=t()}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{crypto:54}],62:[function(e,t,r){var n,o;n=this,o=function(e){var d;return d=e.lib.WordArray,e.enc.Base64={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=this._map,o=(e.clamp(),[]),i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map;if(!(n=this._reverseMap))for(var n=this._reverseMap=[],o=0;o<r.length;o++)n[r.charCodeAt(o)]=o;for(var i,s,a=r.charAt(64),c=(a&&-1!==(a=e.indexOf(a))&&(t=a),e),l=t,u=n,h=[],f=0,p=0;p<l;p++)p%4&&(i=u[c.charCodeAt(p-1)]<<p%4*2,s=u[c.charCodeAt(p)]>>>6-p%4*2,h[f>>>2]|=(i|s)<<24-f%4*8,f++);return d.create(h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],63:[function(e,t,r){var n,o;n=this,o=function(e){var d;return d=e.lib.WordArray,e.enc.Base64url={stringify:function(e,t=!0){for(var r=e.words,n=e.sigBytes,o=t?this._safe_map:this._map,i=(e.clamp(),[]),s=0;s<n;s+=3)for(var a=(r[s>>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<n;c++)i.push(o.charAt(a>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e,t=!0){var r=e.length,n=t?this._safe_map:this._map;if(!(o=this._reverseMap))for(var o=this._reverseMap=[],i=0;i<n.length;i++)o[n.charCodeAt(i)]=i;for(var s,a,t=n.charAt(64),c=(t&&-1!==(t=e.indexOf(t))&&(r=t),e),l=r,u=o,h=[],f=0,p=0;p<l;p++)p%4&&(s=u[c.charCodeAt(p-1)]<<p%4*2,a=u[c.charCodeAt(p)]>>>6-p%4*2,h[f>>>2]|=(s|a)<<24-f%4*8,f++);return d.create(h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.enc.Base64url},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],64:[function(e,t,r){var n,o;n=this,o=function(e){var o=e.lib.WordArray,t=e.enc;function s(e){return e<<8&4278255360|e>>>8&16711935}return t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return o.create(r,2*t)}},t.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var i=s(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>1]|=s(e.charCodeAt(n)<<16-n%2*16);return o.create(r,2*t)}},e.enc.Utf16},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],65:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,u,o,i;return r=(t=e).lib,n=r.Base,u=r.WordArray,r=t.algo,o=r.MD5,i=r.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),i=u.create(),s=i.words,a=n.keySize,c=n.iterations;s.length<a;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<c;l++)r=o.finalize(r),o.reset();i.concat(r)}return i.sigBytes=4*a,i}}),t.EvpKDF=function(e,t,r){return i.create(r).compute(e,t)},e.EvpKDF},"object"==typeof r?t.exports=r=o(e("./core"),e("./sha1"),e("./hmac")):o(n.CryptoJS)},{"./core":61,"./hmac":67,"./sha1":86}],66:[function(e,t,r){var n,o;n=this,o=function(e){var t,r;return t=e.lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){e=r.parse(e);return t.create({ciphertext:e})}},e.format.Hex},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],67:[function(e,t,r){var n,o;n=this,o=function(e){var t,a;t=e.lib.Base,a=e.enc.Utf8,e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));for(var r=e.blockSize,n=4*r,e=((t=t.sigBytes>n?e.finalize(t):t).clamp(),this._oKey=t.clone()),t=this._iKey=t.clone(),o=e.words,i=t.words,s=0;s<r;s++)o[s]^=1549556828,i[s]^=909522486;e.sigBytes=t.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,e=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(e))}})},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],68:[function(e,t,r){var n,o;n=this,o=function(e){return e},"object"==typeof r?t.exports=r=o(e("./core"),e("./x64-core"),e("./lib-typedarrays"),e("./enc-utf16"),e("./enc-base64"),e("./enc-base64url"),e("./md5"),e("./sha1"),e("./sha256"),e("./sha224"),e("./sha512"),e("./sha384"),e("./sha3"),e("./ripemd160"),e("./hmac"),e("./pbkdf2"),e("./evpkdf"),e("./cipher-core"),e("./mode-cfb"),e("./mode-ctr"),e("./mode-ctr-gladman"),e("./mode-ofb"),e("./mode-ecb"),e("./pad-ansix923"),e("./pad-iso10126"),e("./pad-iso97971"),e("./pad-zeropadding"),e("./pad-nopadding"),e("./format-hex"),e("./aes"),e("./tripledes"),e("./rc4"),e("./rabbit"),e("./rabbit-legacy")):n.CryptoJS=n.CryptoJS},{"./aes":59,"./cipher-core":60,"./core":61,"./enc-base64":62,"./enc-base64url":63,"./enc-utf16":64,"./evpkdf":65,"./format-hex":66,"./hmac":67,"./lib-typedarrays":69,"./md5":70,"./mode-cfb":71,"./mode-ctr":73,"./mode-ctr-gladman":72,"./mode-ecb":74,"./mode-ofb":75,"./pad-ansix923":76,"./pad-iso10126":77,"./pad-iso97971":78,"./pad-nopadding":79,"./pad-zeropadding":80,"./pbkdf2":81,"./rabbit":83,"./rabbit-legacy":82,"./rc4":84,"./ripemd160":85,"./sha1":86,"./sha224":87,"./sha256":88,"./sha3":89,"./sha384":90,"./sha512":91,"./tripledes":92,"./x64-core":93}],69:[function(e,t,r){var n,o;n=this,o=function(e){var t,o;return"function"==typeof ArrayBuffer&&(t=e.lib.WordArray,o=t.init,(t.init=function(e){if((e=(e=e instanceof ArrayBuffer?new Uint8Array(e):e)instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e)instanceof Uint8Array){for(var t=e.byteLength,r=[],n=0;n<t;n++)r[n>>>2]|=e[n]<<24-n%4*8;o.call(this,r,t)}else o.apply(this,arguments)}).prototype=t),e.lib.WordArray},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],70:[function(e,t,r){var n,o;n=this,o=function(e){for(var c=Math,t=e,r=(o=t.lib).WordArray,n=o.Hasher,o=t.algo,k=[],i=0;i<64;i++)k[i]=4294967296*c.abs(c.sin(i+1))|0;function x(e,t,r,n,o,i,s){e=e+(t&r|~t&n)+o+s;return(e<<i|e>>>32-i)+t}function L(e,t,r,n,o,i,s){e=e+(t&n|r&~n)+o+s;return(e<<i|e>>>32-i)+t}function A(e,t,r,n,o,i,s){e=e+(t^r^n)+o+s;return(e<<i|e>>>32-i)+t}function R(e,t,r,n,o,i,s){e=e+(r^(t|~n))+o+s;return(e<<i|e>>>32-i)+t}return o=o.MD5=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],a=e[t+1],c=e[t+2],l=e[t+3],u=e[t+4],h=e[t+5],f=e[t+6],p=e[t+7],d=e[t+8],g=e[t+9],y=e[t+10],v=e[t+11],m=e[t+12],b=e[t+13],w=e[t+14],_=e[t+15],S=x(i[0],T=i[1],C=i[2],E=i[3],s,7,k[0]),E=x(E,S,T,C,a,12,k[1]),C=x(C,E,S,T,c,17,k[2]),T=x(T,C,E,S,l,22,k[3]);S=x(S,T,C,E,u,7,k[4]),E=x(E,S,T,C,h,12,k[5]),C=x(C,E,S,T,f,17,k[6]),T=x(T,C,E,S,p,22,k[7]),S=x(S,T,C,E,d,7,k[8]),E=x(E,S,T,C,g,12,k[9]),C=x(C,E,S,T,y,17,k[10]),T=x(T,C,E,S,v,22,k[11]),S=x(S,T,C,E,m,7,k[12]),E=x(E,S,T,C,b,12,k[13]),C=x(C,E,S,T,w,17,k[14]),S=L(S,T=x(T,C,E,S,_,22,k[15]),C,E,a,5,k[16]),E=L(E,S,T,C,f,9,k[17]),C=L(C,E,S,T,v,14,k[18]),T=L(T,C,E,S,s,20,k[19]),S=L(S,T,C,E,h,5,k[20]),E=L(E,S,T,C,y,9,k[21]),C=L(C,E,S,T,_,14,k[22]),T=L(T,C,E,S,u,20,k[23]),S=L(S,T,C,E,g,5,k[24]),E=L(E,S,T,C,w,9,k[25]),C=L(C,E,S,T,l,14,k[26]),T=L(T,C,E,S,d,20,k[27]),S=L(S,T,C,E,b,5,k[28]),E=L(E,S,T,C,c,9,k[29]),C=L(C,E,S,T,p,14,k[30]),S=A(S,T=L(T,C,E,S,m,20,k[31]),C,E,h,4,k[32]),E=A(E,S,T,C,d,11,k[33]),C=A(C,E,S,T,v,16,k[34]),T=A(T,C,E,S,w,23,k[35]),S=A(S,T,C,E,a,4,k[36]),E=A(E,S,T,C,u,11,k[37]),C=A(C,E,S,T,p,16,k[38]),T=A(T,C,E,S,y,23,k[39]),S=A(S,T,C,E,b,4,k[40]),E=A(E,S,T,C,s,11,k[41]),C=A(C,E,S,T,l,16,k[42]),T=A(T,C,E,S,f,23,k[43]),S=A(S,T,C,E,g,4,k[44]),E=A(E,S,T,C,m,11,k[45]),C=A(C,E,S,T,_,16,k[46]),S=R(S,T=A(T,C,E,S,c,23,k[47]),C,E,s,6,k[48]),E=R(E,S,T,C,p,10,k[49]),C=R(C,E,S,T,w,15,k[50]),T=R(T,C,E,S,h,21,k[51]),S=R(S,T,C,E,m,6,k[52]),E=R(E,S,T,C,l,10,k[53]),C=R(C,E,S,T,y,15,k[54]),T=R(T,C,E,S,a,21,k[55]),S=R(S,T,C,E,d,6,k[56]),E=R(E,S,T,C,_,10,k[57]),C=R(C,E,S,T,f,15,k[58]),T=R(T,C,E,S,b,21,k[59]),S=R(S,T,C,E,u,6,k[60]),E=R(E,S,T,C,v,10,k[61]),C=R(C,E,S,T,c,15,k[62]),T=R(T,C,E,S,g,21,k[63]),i[0]=i[0]+S|0,i[1]=i[1]+T|0,i[2]=i[2]+C|0,i[3]=i[3]+E|0},_doFinalize:function(){for(var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes,o=(t[n>>>5]|=128<<24-n%32,c.floor(r/4294967296)),o=(t[15+(64+n>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(64+n>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process(),this._hash),i=o.words,s=0;s<4;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.MD5=n._createHelper(o),t.HmacMD5=n._createHmacHelper(o),e.MD5},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],71:[function(e,t,r){var n,o;n=this,o=function(e){function i(e,t,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var s=0;s<r;s++)e[t+s]^=o[s]}var t;return e.mode.CFB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize;i.call(this,e,t,n,r),this._prevBlock=e.slice(t,t+n)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=e.slice(t,t+n);i.call(this,e,t,n,r),this._prevBlock=o}}),t),e.mode.CFB},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],72:[function(e,t,r){var n,o;n=this,o=function(e){function c(e){var t,r,n;return 255==(e>>24&255)?(r=e>>8&255,n=255&e,255===(t=e>>16&255)?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e=(e+=t<<16)+(r<<8)+n):e+=1<<24,e}var t,r;return e.mode.CTRGladman=(t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter,s=(o&&(i=this._counter=o.slice(0),this._iv=void 0),0===((o=i)[0]=c(o[0]))&&(o[1]=c(o[1])),i.slice(0));r.encryptBlock(s,0);for(var a=0;a<n;a++)e[t+a]^=s[a]}}),t.Decryptor=r,t),e.mode.CTRGladman},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],73:[function(e,t,r){var n,o;n=this,o=function(e){var t,r;return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter,s=(o&&(i=this._counter=o.slice(0),this._iv=void 0),i.slice(0));r.encryptBlock(s,0),i[n-1]=i[n-1]+1|0;for(var a=0;a<n;a++)e[t+a]^=s[a]}}),t.Decryptor=r,t),e.mode.CTR},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],74:[function(e,t,r){var n,o;n=this,o=function(e){var t;return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],75:[function(e,t,r){var n,o;n=this,o=function(e){var t,r;return e.mode.OFB=(t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}}),t.Decryptor=r,t),e.mode.OFB},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],76:[function(e,t,r){var n,o;n=this,o=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,t=4*t,t=t-r%t,r=r+t-1;e.clamp(),e.words[r>>>2]|=t<<24-r%4*8,e.sigBytes+=t},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],77:[function(e,t,r){var n,o;n=this,o=function(r){return r.pad.Iso10126={pad:function(e,t){t*=4,t-=e.sigBytes%t;e.concat(r.lib.WordArray.random(t-1)).concat(r.lib.WordArray.create([t<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],78:[function(e,t,r){var n,o;n=this,o=function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],79:[function(e,t,r){var n,o;n=this,o=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],80:[function(e,t,r){var n,o;n=this,o=function(e){return e.pad.ZeroPadding={pad:function(e,t){t*=4;e.clamp(),e.sigBytes+=t-(e.sigBytes%t||t)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;0<=r;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding},"object"==typeof r?t.exports=r=o(e("./core"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61}],81:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,v,o,m,i;return r=(t=e).lib,n=r.Base,v=r.WordArray,r=t.algo,o=r.SHA1,m=r.HMAC,i=r.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=m.create(r.hasher,e),o=v.create(),i=v.create([1]),s=o.words,a=i.words,c=r.keySize,l=r.iterations;s.length<c;){for(var u=n.update(t).finalize(i),h=(n.reset(),u.words),f=h.length,p=u,d=1;d<l;d++){p=n.finalize(p),n.reset();for(var g=p.words,y=0;y<f;y++)h[y]^=g[y]}o.concat(u),a[0]++}return o.sigBytes=4*c,o}}),t.PBKDF2=function(e,t,r){return i.create(r).compute(e,t)},e.PBKDF2},"object"==typeof r?t.exports=r=o(e("./core"),e("./sha1"),e("./hmac")):o(n.CryptoJS)},{"./core":61,"./hmac":67,"./sha1":86}],82:[function(e,t,r){var n,o;n=this,o=function(e){function a(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,i=n>>>16;c[r]=((o*o>>>17)+o*i>>>15)+i*i^((4294901760&n)*n|0)+((65535&n)*n|0)}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var t,r,n,o,s,c;return r=(t=e).lib.StreamCipher,n=t.algo,o=[],s=[],c=[],n=n.RabbitLegacy=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],o=this._b=0;o<4;o++)a.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var e=t.words,t=e[0],e=e[1],t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),i=t>>>16|4294901760&e,s=e<<16|65535&t;n[0]^=t,n[1]^=i,n[2]^=e,n[3]^=s,n[4]^=t,n[5]^=i,n[6]^=e,n[7]^=s;for(o=0;o<4;o++)a.call(this)}},_doProcessBlock:function(e,t){var r=this._X;a.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2}),t.RabbitLegacy=r._createHelper(n),e.RabbitLegacy},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61,"./enc-base64":62,"./evpkdf":65,"./md5":70}],83:[function(e,t,r){var n,o;n=this,o=function(e){function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,i=n>>>16;a[r]=((o*o>>>17)+o*i>>>15)+i*i^((4294901760&n)*n|0)+((65535&n)*n|0)}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}var t,r,n,o,s,a;return r=(t=e).lib.StreamCipher,n=t.algo,o=[],s=[],a=[],n=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);for(var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],r=this._b=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var t=t.words,i=t[0],t=t[1],i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),s=i>>>16|4294901760&t,a=t<<16|65535&i;o[0]^=i,o[1]^=s,o[2]^=t,o[3]^=a,o[4]^=i,o[5]^=s,o[6]^=t,o[7]^=a;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2}),t.Rabbit=r._createHelper(n),e.Rabbit},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61,"./enc-base64":62,"./evpkdf":65,"./md5":70}],84:[function(e,t,r){var n,o;n=this,o=function(e){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;for(var o=0,i=0;o<256;o++){var s=o%r,s=t[s>>>2]>>>24-s%4*8&255,i=(i+n[o]+s)%256,s=n[o];n[o]=n[i],n[i]=s}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){var r=(r+e[t=(t+1)%256])%256,i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}return t.RC4=r._createHelper(o),n=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;0<e;e--)i.call(this)}}),t.RC4Drop=r._createHelper(n),e.RC4},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61,"./enc-base64":62,"./evpkdf":65,"./md5":70}],85:[function(e,t,r){var n,o;n=this,o=function(e){function E(e,t,r){return e&t|~e&r}function C(e,t,r){return e&r|t&~r}function T(e,t){return e<<t|e>>>32-t}var t,r,n,o,k,x,L,A,R,P;return Math,r=(t=e).lib,n=r.WordArray,o=r.Hasher,r=t.algo,k=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),L=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),A=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),R=n.create([0,1518500249,1859775393,2400959708,2840853838]),P=n.create([1352829926,1548603684,1836072691,2053994217,0]),r=r.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}for(var i,s,a,c,l,u,h=this._hash.words,f=R.words,p=P.words,d=k.words,g=x.words,y=L.words,v=A.words,m=i=h[0],b=s=h[1],w=a=h[2],_=c=h[3],S=l=h[4],r=0;r<80;r+=1)u=(u=T(u=(u=i+e[t+d[r]]|0)+(r<16?(s^a^c)+f[0]:r<32?E(s,a,c)+f[1]:r<48?((s|~a)^c)+f[2]:r<64?C(s,a,c)+f[3]:(s^(a|~c))+f[4])|0,y[r]))+l|0,i=l,l=c,c=T(a,10),a=s,s=u,u=(u=T(u=(u=m+e[t+g[r]]|0)+(r<16?(b^(w|~_))+p[0]:r<32?C(b,w,_)+p[1]:r<48?((b|~w)^_)+p[2]:r<64?E(b,w,_)+p[3]:(b^w^_)+p[4])|0,v[r]))+S|0,m=S,S=_,_=T(w,10),w=b,b=u;u=h[1]+a+_|0,h[1]=h[2]+c+S|0,h[2]=h[3]+l+m|0,h[3]=h[4]+i+b|0,h[4]=h[0]+s+w|0,h[0]=u},_doFinalize:function(){for(var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes,n=(t[n>>>5]|=128<<24-n%32,t[14+(64+n>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process(),this._hash),o=n.words,i=0;i<5;i++){var s=o[i];o[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return n},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.RIPEMD160=o._createHelper(r),t.HmacRIPEMD160=o._createHmacHelper(r),e.RIPEMD160},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],86:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o,u;return r=(t=e).lib,n=r.WordArray,o=r.Hasher,r=t.algo,u=[],r=r.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],c=0;c<80;c++){u[c]=c<16?0|e[t+c]:(l=u[c-3]^u[c-8]^u[c-14]^u[c-16])<<1|l>>>31;var l=(n<<5|n>>>27)+a+u[c];l+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,a=s,s=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(64+n>>>9<<4)]=Math.floor(r/4294967296),t[15+(64+n>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=o._createHelper(r),t.HmacSHA1=o._createHmacHelper(r),e.SHA1},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],87:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o;return r=(t=e).lib.WordArray,n=t.algo,o=n.SHA256,n=n.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}}),t.SHA224=o._createHelper(n),t.HmacSHA224=o._createHmacHelper(n),e.SHA224},"object"==typeof r?t.exports=r=o(e("./core"),e("./sha256")):o(n.CryptoJS)},{"./core":61,"./sha256":88}],88:[function(e,t,r){var n,o;n=this,o=function(e){var o=Math,t=e,r=(i=t.lib).WordArray,n=i.Hasher,i=t.algo,s=[],d=[];function a(e){return 4294967296*(e-(0|e))|0}for(var c=2,l=0;l<64;)!function(e){for(var t=o.sqrt(e),r=2;r<=t;r++)if(!(e%r))return;return 1}(c)||(l<8&&(s[l]=a(o.pow(c,.5))),d[l]=a(o.pow(c,1/3)),l++),c++;var g=[],i=i.SHA256=n.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],c=r[5],l=r[6],u=r[7],h=0;h<64;h++){g[h]=h<16?0|e[t+h]:(((f=g[h-15])<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+g[h-7]+(((f=g[h-2])<<15|f>>>17)^(f<<13|f>>>19)^f>>>10)+g[h-16];var f=n&o^n&i^o&i,p=u+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&l)+d[h]+g[h],u=l,l=c,c=a,a=s+p|0,s=i,i=o,o=n,n=p+(((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+f)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+c|0,r[6]=r[6]+l|0,r[7]=r[7]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(64+n>>>9<<4)]=o.floor(r/4294967296),t[15+(64+n>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});return t.SHA256=n._createHelper(i),t.HmacSHA256=n._createHmacHelper(i),e.SHA256},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],89:[function(e,t,r){var n,o;n=this,o=function(e){for(var u=Math,t=e,h=(o=t.lib).WordArray,n=o.Hasher,r=t.x64.Word,o=t.algo,k=[],x=[],L=[],i=1,s=0,a=0;a<24;a++){k[i+5*s]=(a+1)*(a+2)/2%64;var c=(2*i+3*s)%5;i=s%5,s=c}for(i=0;i<5;i++)for(s=0;s<5;s++)x[i+5*s]=s+(2*i+3*s)%5*5;for(var l=1,f=0;f<24;f++){for(var p,d=0,g=0,y=0;y<7;y++)1&l&&((p=(1<<y)-1)<32?g^=1<<p:d^=1<<p-32),128&l?l=l<<1^113:l<<=1;L[f]=r.create(d,g)}for(var A=[],v=0;v<25;v++)A[v]=r.create();return o=o.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],s=e[t+2*o+1],i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);(S=r[o]).high^=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),S.low^=i}for(var a=0;a<24;a++){for(var c=0;c<5;c++){for(var l=0,u=0,h=0;h<5;h++)l^=(S=r[c+5*h]).high,u^=S.low;var f=A[c];f.high=l,f.low=u}for(c=0;c<5;c++)for(var p=A[(c+4)%5],d=A[(c+1)%5],g=d.high,d=d.low,l=p.high^(g<<1|d>>>31),u=p.low^(d<<1|g>>>31),h=0;h<5;h++)(S=r[c+5*h]).high^=l,S.low^=u;for(var y=1;y<25;y++){var v=(S=r[y]).high,m=S.low,b=k[y],v=(u=b<32?(l=v<<b|m>>>32-b,m<<b|v>>>32-b):(l=m<<b-32|v>>>64-b,v<<b-32|m>>>64-b),A[x[y]]);v.high=l,v.low=u}var w=A[0],_=r[0];w.high=_.high,w.low=_.low;for(c=0;c<5;c++)for(h=0;h<5;h++){var S=r[y=c+5*h],E=A[y],C=A[(c+1)%5+5*h],T=A[(c+2)%5+5*h];S.high=E.high^~C.high&T.high,S.low=E.low^~C.low&T.low}S=r[0],w=L[a];S.high^=w.high,S.low^=w.low}},_doFinalize:function(){for(var e=this._data,t=e.words,r=(this._nDataBytes,8*e.sigBytes),n=32*this.blockSize,o=(t[r>>>5]|=1<<24-r%32,t[(u.ceil((1+r)/n)*n>>>5)-1]|=128,e.sigBytes=4*t.length,this._process(),this._state),r=this.cfg.outputLength/8,i=r/8,s=[],a=0;a<i;a++){var c=o[a],l=c.high,c=c.low,l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);s.push(16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)),s.push(l)}return new h.init(s,r)},clone:function(){for(var e=n.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}}),t.SHA3=n._createHelper(o),t.HmacSHA3=n._createHmacHelper(o),e.SHA3},"object"==typeof r?t.exports=r=o(e("./core"),e("./x64-core")):o(n.CryptoJS)},{"./core":61,"./x64-core":93}],90:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o,i;return r=(t=e).x64,n=r.Word,o=r.WordArray,r=t.algo,i=r.SHA512,r=r.SHA384=i.extend({_doReset:function(){this._hash=new o.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),t.SHA384=i._createHelper(r),t.HmacSHA384=i._createHmacHelper(r),e.SHA384},"object"==typeof r?t.exports=r=o(e("./core"),e("./x64-core"),e("./sha512")):o(n.CryptoJS)},{"./core":61,"./sha512":91,"./x64-core":93}],91:[function(e,t,r){var n,o;n=this,o=function(e){var t=e,r=t.lib.Hasher,n=(i=t.x64).Word,o=i.WordArray,i=t.algo;function s(){return n.create.apply(n,arguments)}for(var te=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],re=[],a=0;a<80;a++)re[a]=s();return i=i.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(M,H){for(var e=this._hash.words,t=e[0],r=e[1],n=e[2],o=e[3],i=e[4],s=e[5],a=e[6],e=e[7],N=t.high,c=t.low,D=r.high,l=r.low,U=n.high,u=n.low,F=o.high,h=o.low,q=i.high,f=i.low,W=s.high,p=s.low,z=a.high,d=a.low,K=e.high,g=e.low,y=N,v=c,m=D,b=l,w=U,_=u,J=F,S=h,E=q,C=f,V=W,T=p,X=z,G=d,$=K,Y=g,k=0;k<80;k++)var x,L,A=re[k],R=(k<16?(L=A.high=0|M[H+2*k],x=A.low=0|M[H+2*k+1]):(B=(j=re[k-15]).high,j=j.low,I=(O=re[k-2]).high,O=O.low,P=(R=re[k-7]).high,R=R.low,Z=(Q=re[k-16]).high,L=(L=((B>>>1|j<<31)^(B>>>8|j<<24)^B>>>7)+P+((x=(P=(j>>>1|B<<31)^(j>>>8|B<<24)^(j>>>7|B<<25))+R)>>>0<P>>>0?1:0))+((I>>>19|O<<13)^(I<<3|O>>>29)^I>>>6)+((x+=j=(O>>>19|I<<13)^(O<<3|I>>>29)^(O>>>6|I<<26))>>>0<j>>>0?1:0),x+=B=Q.low,A.high=L=L+Z+(x>>>0<B>>>0?1:0),A.low=x),E&V^~E&X),P=C&T^~C&G,O=y&m^y&w^m&w,I=(v>>>28|y<<4)^(v<<30|y>>>2)^(v<<25|y>>>7),j=te[k],Q=j.high,Z=j.low,B=Y+((C>>>14|E<<18)^(C>>>18|E<<14)^(C<<23|E>>>9)),A=$+((E>>>14|C<<18)^(E>>>18|C<<14)^(E<<23|C>>>9))+(B>>>0<Y>>>0?1:0),ee=I+(v&b^v&_^b&_),$=X,Y=G,X=V,G=T,V=E,T=C,E=J+(A=A+R+((B=B+P)>>>0<P>>>0?1:0)+Q+((B=B+Z)>>>0<Z>>>0?1:0)+L+((B=B+x)>>>0<x>>>0?1:0))+((C=S+B|0)>>>0<S>>>0?1:0)|0,J=w,S=_,w=m,_=b,m=y,b=v,y=A+(((y>>>28|v<<4)^(y<<30|v>>>2)^(y<<25|v>>>7))+O+(ee>>>0<I>>>0?1:0))+((v=B+ee|0)>>>0<B>>>0?1:0)|0;c=t.low=c+v,t.high=N+y+(c>>>0<v>>>0?1:0),l=r.low=l+b,r.high=D+m+(l>>>0<b>>>0?1:0),u=n.low=u+_,n.high=U+w+(u>>>0<_>>>0?1:0),h=o.low=h+S,o.high=F+J+(h>>>0<S>>>0?1:0),f=i.low=f+C,i.high=q+E+(f>>>0<C>>>0?1:0),p=s.low=p+T,s.high=W+V+(p>>>0<T>>>0?1:0),d=a.low=d+G,a.high=z+X+(d>>>0<G>>>0?1:0),g=e.low=g+Y,e.high=K+$+(g>>>0<Y>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(128+n>>>10<<5)]=Math.floor(r/4294967296),t[31+(128+n>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=r._createHelper(i),t.HmacSHA512=r._createHmacHelper(i),e.SHA512},"object"==typeof r?t.exports=r=o(e("./core"),e("./x64-core")):o(n.CryptoJS)},{"./core":61,"./x64-core":93}],92:[function(e,t,r){var n,o;n=this,o=function(e){var t=e,n=(r=t.lib).WordArray,r=r.BlockCipher,o=t.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],i=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=l[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){for(var s=o[i]=[],a=h[i],r=0;r<24;r++)s[r/6|0]|=t[(u[r]-1+a)%28]<<31-r%6,s[4+(r/6|0)]|=t[28+(u[r+24]-1+a)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var c=this._invSubKeys=[],r=0;r<16;r++)c[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=f[c][((s^o[c])&p[c])>>>0];this._lBlock=s,this._rBlock=i^a}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,d.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){t=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=t,this._lBlock^=t<<e}function g(e,t){t=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=t,this._rBlock^=t<<e}return t.DES=r._createHelper(i),o=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),e=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=i.createEncryptor(n.create(t)),this._des2=i.createEncryptor(n.create(r)),this._des3=i.createEncryptor(n.create(e))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),t.TripleDES=r._createHelper(o),e.TripleDES},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):o(n.CryptoJS)},{"./cipher-core":60,"./core":61,"./enc-base64":62,"./evpkdf":65,"./md5":70}],93:[function(e,t,r){var n,o;n=this,o=function(e){var t,o,i;return t=e.lib,o=t.Base,i=t.WordArray,(t=e.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),e},"object"==typeof r?t.exports=r=o(e("./core")):o(n.CryptoJS)},{"./core":61}],94:[function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,c=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};var o=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(a,c){return new Promise(function(e,t){function r(e){a.removeListener(c,n),t(e)}function n(){"function"==typeof a.removeListener&&a.removeListener("error",r),e([].slice.call(arguments))}var o,i,s;y(a,c,n,{once:!0}),"error"!==c&&(i=r,s={once:!0},"function"==typeof(o=a).on)&&y(o,"error",i,s)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var o,i;return l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener||r),o=e._events),i=o[t]),void 0===i?(i=o[t]=r,++e._eventsCount):("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),0<(o=u(e))&&i.length>o&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=i.length,r=n,console)&&console.warn&&console.warn(r)),e}function f(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function p(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,o=new Array(n.length),i=0;i<o.length;++i)o[i]=n[i].listener||n[i];return o}return g(e,e.length)}function d(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(r,n,o,i){if("function"==typeof r.on)i.once?r.once(n,o):r.on(n,o);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){i.once&&r.removeEventListener(n,e),o(t)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){if((i=0<t.length?t[0]:i)instanceof Error)throw i;n=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw n.context=i,n}var i=o[e];if(void 0===i)return!1;if("function"==typeof i)c(i,this,t);else for(var s=i.length,a=g(i,s),r=0;r<s;++r)c(a[r],this,t);return!0},s.prototype.on=s.prototype.addListener=function(e,t){return h(this,e,t,!1)},s.prototype.prependListener=function(e,t){return h(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},s.prototype.off=s.prototype.removeListener=function(e,t){var r,n,o,i,s;if(l(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;if(0===o)r.shift();else{for(var a=r,c=o;c+1<a.length;c++)a[c]=a[c+1];a.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.removeAllListeners=function(e){var t,r=this._events;if(void 0!==r)if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return 0<this._eventsCount?o(this._events):[]}},{}],95:[function(e,t,r){var n,o=e("http"),i=e("url"),s=t.exports;for(n in o)o.hasOwnProperty(n)&&(s[n]=o[n]);function a(e){if((e="string"==typeof e?i.parse(e):e).protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}s.request=function(e,t){return e=a(e),o.request.call(this,e,t)},s.get=function(e,t){return e=a(e),o.get.call(this,e,t)}},{http:103,url:123}],96:[function(e,t,r){r.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,l=c>>1,u=-7,h=r?o-1:0,f=r?-1:1,o=e[t+h];for(h+=f,i=o&(1<<-u)-1,o>>=-u,u+=a;0<u;i=256*i+e[t+h],h+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;0<u;s=256*s+e[t+h],h+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(o?-1:1);s+=Math.pow(2,n),i-=l}return(o?-1:1)*s*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var s,a,c=8*i-o-1,l=(1<<c)-1,u=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1,i=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=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-s))<1&&(s--,n*=2),2<=(t+=1<=s+u?h/n:h*Math.pow(2,1-u))*n&&(s++,n/=2),l<=s+u?(a=0,s=l):1<=s+u?(a=(t*n-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));8<=o;e[r+f]=255&a,f+=p,a/=256,o-=8);for(s=s<<o|a,c+=o;0<c;e[r+f]=255&s,f+=p,s/=256,c-=8);e[r+f-p]|=128*i}},{}],97:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},{}],98:[function(e,t,r){var n,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length)&&p()}function p(){if(!u){for(var e=a(f),t=(u=!0,l.length);t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,u=!1,!function(t){if(o===clearTimeout)return clearTimeout(t);if((o===s||!o)&&clearTimeout)return(o=clearTimeout)(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function g(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new d(e,t)),1!==l.length||u||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],99:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"==typeof e&&0!==e.length){var i=/\+/g,t=(e=e.split(t),1e3),s=(n&&"number"==typeof n.maxKeys&&(t=n.maxKeys),e.length);0<t&&t<s&&(s=t);for(var a=0;a<s;++a){var c,l=e[a].replace(i,"%20"),u=l.indexOf(r),u=0<=u?(c=l.substr(0,u),l.substr(u+1)):(c=l,""),l=decodeURIComponent(c),u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(o,l)?h(o[l])?o[l].push(u):o[l]=[o[l],u]:o[l]=u}}return o};var h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],100:[function(e,t,r){"use strict";function i(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}t.exports=function(r,n,o,e){return n=n||"&",o=o||"=","object"==typeof(r=null===r?void 0:r)?a(c(r),function(e){var t=encodeURIComponent(i(e))+o;return s(r[e])?a(r[e],function(e){return t+encodeURIComponent(i(e))}).join(n):t+encodeURIComponent(i(r[e]))}).join(n):e?encodeURIComponent(i(e))+o+encodeURIComponent(i(r)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var c=Object.keys||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}},{}],101:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":99,"./encode":100}],102:[function(e,t,r){var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=o(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:57}],103:[function(n,e,o){!function(l){!function(){var s=n("./lib/request"),e=n("./lib/response"),a=n("xtend"),t=n("builtin-status-codes"),c=n("url"),r=o;r.request=function(e,t){e="string"==typeof e?c.parse(e):a(e);var r=-1===l.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||r,n=e.hostname||e.host,o=e.port,i=e.path||"/",r=(n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(o?":"+o:"")+i,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{},new s(e));return t&&r.on("response",t),r},r.get=function(e,t){e=r.request(e,t);return e.end(),e},r.ClientRequest=s,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.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)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":105,"./lib/response":106,"builtin-status-codes":58,url:123,xtend:126}],104:[function(e,t,i){!function(o){!function(){var t;function r(){if(void 0===t)if(o.XMLHttpRequest){t=new o.XMLHttpRequest;try{t.open("GET",o.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function e(e){var t=r();if(t)try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function n(e){return"function"==typeof e}i.fetch=n(o.fetch)&&n(o.ReadableStream),i.writableStream=n(o.WritableStream),i.abortController=n(o.AbortController),i.arraybuffer=i.fetch||e("arraybuffer"),i.msstream=!i.fetch&&e("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&e("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||!!r()&&n(r().overrideMimeType),t=null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],105:[function(s,a,e){!function(u,h,i){!function(){var c=s("./capability"),e=s("inherits"),t=s("./response"),o=s("readable-stream"),r=t.IncomingMessage,l=t.readyStates;t=a.exports=function(t){var e,r=this,n=(o.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+i.from(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])}),!0);if("disable-fetch"===t.mode||"requestTimeout"in t&&!c.abortController)e=!(n=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!c.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(e=e,n=n,c.fetch&&n?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":"text"),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};e(t,o.Writable),t.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===n.indexOf(r)&&(this._headers[r]={name:e,value:t})},t.prototype.getHeader=function(e){e=this._headers[e.toLowerCase()];return e?e.value:null},t.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},t.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=("timeout"in e&&0!==e.timeout&&t.setTimeout(e.timeout),t._headers),n=null,o=("GET"!==e.method&&"HEAD"!==e.method&&(n=new Blob(t._body,{type:(r["content-type"]||{}).value||""})),[]);if(Object.keys(r).forEach(function(e){var t=r[e].name,e=r[e].value;Array.isArray(e)?e.forEach(function(e){o.push([t,e])}):o.push([t,e])}),"fetch"===t._mode){var i,s=null;c.abortController&&(s=(i=new AbortController).signal,t._fetchAbortController=i,"requestTimeout"in e)&&0!==e.requestTimeout&&(t._fetchTimer=h.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout)),h.fetch(t._opts.url,{method:t._opts.method,headers:o,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:s}).then(function(e){t._fetchResponse=e,t._resetTimers(!1),t._connect()},function(e){t._resetTimers(!0),t._destroyed||t.emit("error",e)})}else{var a=t._xhr=new h.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),"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")}),o.forEach(function(e){a.setRequestHeader(e[0],e[1])}),t._response=null,a.onreadystatechange=function(){switch(a.readyState){case l.LOADING:case l.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(a.onprogress=function(){t._onXHRProgress()}),a.onerror=function(){t._destroyed||(t._resetTimers(!0),t.emit("error",new Error("XHR error")))};try{a.send(n)}catch(e){u.nextTick(function(){t.emit("error",e)})}}}},t.prototype._onXHRProgress=function(){this._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){}}(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress(this._resetTimers.bind(this)))},t.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._resetTimers.bind(t)),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},t.prototype._write=function(e,t,r){this._body.push(e),r()},t.prototype._resetTimers=function(e){var t=this;h.clearTimeout(t._socketTimer),t._socketTimer=null,e?(h.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=h.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},t.prototype.abort=t.prototype.destroy=function(e){this._destroyed=!0,this._resetTimers(!0),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort(),e&&this.emit("error",e)},t.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),o.Writable.prototype.end.call(this,e,t,r)},t.prototype.setTimeout=function(e,t){t&&this.once("timeout",t),this._socketTimeout=e,this._resetTimers(!1)},t.prototype.flushHeaders=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var n=["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)}.call(this,s("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},s("buffer").Buffer)},{"./capability":104,"./response":106,_process:98,buffer:57,inherits:97,"readable-stream":121}],106:[function(r,e,n){!function(l,u,h){!function(){var s=r("./capability"),e=r("inherits"),a=r("readable-stream"),c=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var o=this;if(a.Readable.call(o),o._mode=r,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){l.nextTick(function(){o.emit("close")})}),"fetch"===r){if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(e,t){o.headers[t.toLowerCase()]=e,o.rawHeaders.push(t,e)}),s.writableStream){var r=new WritableStream({write:function(r){return n(!1),new Promise(function(e,t){o._destroyed?t():o.push(h.from(r))?e():o._resumeFetch=e})},close:function(){n(!0),o._destroyed||o.push(null)},abort:function(e){n(!0),o._destroyed||o.emit("error",e)}});try{return void t.body.pipeTo(r).catch(function(e){n(!0),o._destroyed||o.emit("error",e)})}catch(e){}}var i=t.body.getReader();!function t(){i.read().then(function(e){o._destroyed||(n(e.done),e.done?o.push(null):(o.push(h.from(e.value)),t()))}).catch(function(e){n(!0),o._destroyed||o.emit("error",e)})}()}else o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t,e=e.match(/^([^:]+):\s*(.*)/);e&&("set-cookie"===(t=e[1].toLowerCase())?(void 0===o.headers[t]&&(o.headers[t]=[]),o.headers[t].push(e[2])):void 0!==o.headers[t]?o.headers[t]+=", "+e[2]:o.headers[t]=e[2],o.rawHeaders.push(e[1],e[2]))}),o._charset="x-user-defined",s.overrideMimeType||((r=o.rawHeaders["mime-type"])&&(t=r.match(/;\s*charset=([^;])(;|$)/))&&(o._charset=t[1].toLowerCase()),o._charset)||(o._charset="utf-8")};e(t,a.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if((n=r.responseText).length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var i=h.alloc(o.length),s=0;s<o.length;s++)i[s]=255&o.charCodeAt(s);t.push(i)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":r.readyState===c.DONE&&r.response&&(n=r.response,t.push(h.from(new Uint8Array(n))));break;case"moz-chunked-arraybuffer":n=r.response,r.readyState===c.LOADING&&n&&t.push(h.from(new Uint8Array(n)));break;case"ms-stream":var a,n=r.response;r.readyState===c.LOADING&&((a=new u.MSStreamReader).onprogress=function(){a.result.byteLength>t._pos&&(t.push(h.from(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){e(!0),t.push(null)},a.readAsArrayBuffer(n))}t._xhr.readyState===c.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}.call(this)}.call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":104,_process:98,buffer:57,inherits:97,"readable-stream":121}],107:[function(e,t,r){"use strict";var n={};function o(e,o,t){var r=function(n){var e,t;function r(e,t,r){return n.call(this,(e=e,t=t,r=r,"string"==typeof o?o:o(e,t,r)))||this}return t=n,(e=r).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,r}(t=t||Error);r.prototype.name=t.name,r.prototype.code=e,n[e]=r}function c(e,t){var r;return Array.isArray(e)?(r=e.length,e=e.map(function(e){return String(e)}),2<r?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])):"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,o,i,s,a;return"string"==typeof t&&(s="not ",t.substr(!i||i<0?0:+i,s.length)===s)?(n="must not be",t=t.replace(/^not /,"")):n="must be",i=e,s=" argument",(void 0===a||a>i.length)&&(a=i.length),i=(i.substring(a-s.length,a)===s?"The ".concat(e," "):(a=(o="number"!=typeof o?0:o)+(i=".").length>(a=e).length||-1===a.indexOf(i,o)?"argument":"property",'The "'.concat(e,'" ').concat(a," "))).concat(n," ").concat(c(t,"type")),i+=". Received type ".concat(typeof r)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],108:[function(u,h,e){!function(l){!function(){"use strict";var e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(h.exports=s,u("./_stream_readable")),r=u("./_stream_writable");u("inherits")(s,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];s.prototype[i]||(s.prototype[i]=r.prototype[i])}function s(e){if(!(this instanceof s))return new s(e);t.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen)&&(this.allowHalfOpen=!1,this.once("end",a))}function a(){this._writableState.ended||l.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}.call(this)}.call(this,u("_process"))},{"./_stream_readable":110,"./_stream_writable":112,_process:98,inherits:97}],109:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}e("inherits")(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":111,inherits:97}],110:[function(D,U,e){!function(H,N){!function(){"use strict";function d(e,t){return e.listeners(t).length}(U.exports=w).ReadableState=b,D("events").EventEmitter;var n,o=D("./internal/streams/stream"),u=D("buffer").Buffer,h=N.Uint8Array||function(){};var i,e,r,t=D("util"),g=t&&t.debuglog?t.debuglog("stream"):function(){},s=D("./internal/streams/buffer_list"),t=D("./internal/streams/destroy"),a=D("./internal/streams/state").getHighWaterMark,c=D("../errors").codes,f=c.ERR_INVALID_ARG_TYPE,p=c.ERR_STREAM_PUSH_AFTER_EOF,l=c.ERR_METHOD_NOT_IMPLEMENTED,y=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v=(D("inherits")(w,o),t.errorOrDestroy),m=["error","close","destroy","pause","resume"];function b(e,t,r){n=n||D("./_stream_duplex"),e=e||{},"boolean"!=typeof r&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=a(this,e,"readableHighWaterMark",r),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(i=i||D("string_decoder/").StringDecoder,this.decoder=new i(e.encoding),this.encoding=e.encoding)}function w(e){if(n=n||D("./_stream_duplex"),!(this instanceof w))return new w(e);var t=this instanceof n;this._readableState=new b(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),o.call(this)}function _(e,t,r,n,o){g("readableAddChunk",t);var i,s,a,c,l=e._readableState;if(null===t)l.reading=!1,s=e,a=l,g("onEofChunk"),a.ended||(a.decoder&&(c=a.decoder.end())&&c.length&&(a.buffer.push(c),a.length+=a.objectMode?1:c.length),a.ended=!0,a.sync?T(s):(a.needReadable=!1,a.emittedReadable||(a.emittedReadable=!0,k(s))));else if(i=o?i:function(e,t){var r;!function(e){return u.isBuffer(e)||e instanceof h}(t)&&"string"!=typeof t&&void 0!==t&&!e.objectMode&&(r=new f("chunk",["string","Buffer","Uint8Array"],t));return r}(l,t))v(e,i);else if(l.objectMode||t&&0<t.length)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===u.prototype||(c=t,t=u.from(c)),n)l.endEmitted?v(e,new y):S(e,l,t,!0);else if(l.ended)v(e,new p);else{if(l.destroyed)return!1;l.reading=!1,!l.decoder||r||(t=l.decoder.write(t),l.objectMode)||0!==t.length?S(e,l,t,!1):x(e,l)}else n||(l.reading=!1,x(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function S(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),x(e,t)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=t.destroy,w.prototype._undestroy=t.undestroy,w.prototype._destroy=function(e,t){t(e)},w.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),_(this,e,t,!1,r)},w.prototype.unshift=function(e){return _(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){for(var t=new(i=i||D("string_decoder/").StringDecoder)(e),r=(this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding,this._readableState.buffer.head),n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var E=1073741824;function C(e,t){var r;return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(E<=(r=e)?r=E:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;g("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,H.nextTick(k,e))}function k(e){var t=e._readableState;g("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,O(e)}function x(e,t){t.readingMore||(t.readingMore=!0,H.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(g("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function A(e){var t=e._readableState;t.readableListening=0<e.listenerCount("readable"),t.resumeScheduled&&!t.paused?t.flowing=!0:0<e.listenerCount("data")&&e.resume()}function R(e){g("readable nexttick read 0"),e.read(0)}function P(e,t){g("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(g("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function j(e){var t=e._readableState;g("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,H.nextTick(M,t,e))}function M(e,t){g("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy&&(!(e=t._writableState)||e.autoDestroy&&e.finished)&&t.destroy())}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){g("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:0<r.length)||r.ended)?(g("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?j:T)(this),null):0===(e=C(e,r))&&r.ended?(0===r.length&&j(this),null):(t=r.needReadable,g("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&g("length less than watermark",t=!0),r.ended||r.reading?g("reading or ended",t=!1):t&&(g("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(n,r))),null===(t=0<e?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&j(this),null!==t&&this.emit("data",t),t)},w.prototype._read=function(e){v(this,new l("_read()"))},w.prototype.pipe=function(r,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=r;break;case 1:o.pipes=[o.pipes,r];break;default:o.pipes.push(r)}o.pipesCount+=1,g("pipe count=%d opts=%j",o.pipesCount,e);e=(!e||!1!==e.end)&&r!==H.stdout&&r!==H.stderr?s:p;function i(e,t){g("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,g("cleanup"),r.removeListener("close",h),r.removeListener("finish",f),r.removeListener("drain",a),r.removeListener("error",u),r.removeListener("unpipe",i),n.removeListener("end",s),n.removeListener("end",p),n.removeListener("data",l),c=!0,!o.awaitDrain||r._writableState&&!r._writableState.needDrain||a())}function s(){g("onend"),r.end()}o.endEmitted?H.nextTick(e):n.once("end",e),r.on("unpipe",i);t=n;var t,a=function(){var e=t._readableState;g("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&d(t,"data")&&(e.flowing=!0,O(t))},c=(r.on("drain",a),!1);function l(e){g("ondata");e=r.write(e);g("dest.write",e),!1===e&&((1===o.pipesCount&&o.pipes===r||1<o.pipesCount&&-1!==B(o.pipes,r))&&!c&&(g("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function u(e){g("onerror",e),p(),r.removeListener("error",u),0===d(r,"error")&&v(r,e)}function h(){r.removeListener("finish",f),p()}function f(){g("onfinish"),r.removeListener("close",h),p()}function p(){g("unpipe"),n.unpipe(r)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(r,"error",u),r.once("close",h),r.once("finish",f),r.emit("pipe",n),o.flowing||(g("pipe resume"),n.resume()),r},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=B(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var o=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)o[s].emit("unpipe",this,{hasUnpiped:!1})}return this},w.prototype.addListener=w.prototype.on=function(e,t){var t=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=0<this.listenerCount("readable"),!1!==r.flowing&&this.resume()):"readable"!==e||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,g("on readable",r.length,r.reading),r.length?T(this):r.reading||H.nextTick(R,this)),t},w.prototype.removeListener=function(e,t){t=o.prototype.removeListener.call(this,e,t);return"readable"===e&&H.nextTick(A,this),t},w.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||H.nextTick(A,this),t},w.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(g("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled)||(t.resumeScheduled=!0,H.nextTick(P,e,t)),r.paused=!1,this},w.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(t){var e,r=this,n=this._readableState,o=!1;for(e in t.on("end",function(){var e;g("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){g("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(o=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<m.length;i++)t.on(m[i],this.emit.bind(this,m[i]));return this._read=function(e){g("wrapped _read",e),o&&(o=!1,t.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return(e=void 0===e?D("./internal/streams/async_iterator"):e)(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),w._fromList=I,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(e,t){return(r=void 0===r?D("./internal/streams/from"):r)(w,e,t)})}.call(this)}.call(this,D("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":107,"./_stream_duplex":108,"./internal/streams/async_iterator":113,"./internal/streams/buffer_list":114,"./internal/streams/destroy":115,"./internal/streams/from":117,"./internal/streams/state":119,"./internal/streams/stream":120,_process:98,buffer:57,events:94,inherits:97,"string_decoder/":122,util:54}],111:[function(e,t,r){"use strict";t.exports=c;var t=e("../errors").codes,n=t.ERR_METHOD_NOT_IMPLEMENTED,o=t.ERR_MULTIPLE_CALLBACK,i=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,a=e("./_stream_duplex");function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(null===n)return this.emit("error",new o);r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",l)}function l(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?u(this,null,null):this._flush(function(e,t){u(r,e,t)})}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new i;e.push(null)}e("inherits")(c,a),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){a.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":107,"./_stream_duplex":108,inherits:97}],112:[function(R,P,e){!function(L,A){!function(){"use strict";function h(i){var s=this;this.next=null,this.entry=null,this.finish=function(){var e=s,t=i,r=void 0,n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}}(P.exports=_).WritableState=w;var r,e={deprecate:R("util-deprecate")},n=R("./internal/streams/stream"),l=R("buffer").Buffer,u=A.Uint8Array||function(){};var o,t=R("./internal/streams/destroy"),i=R("./internal/streams/state").getHighWaterMark,s=R("../errors").codes,f=s.ERR_INVALID_ARG_TYPE,a=s.ERR_METHOD_NOT_IMPLEMENTED,p=s.ERR_MULTIPLE_CALLBACK,c=s.ERR_STREAM_CANNOT_PIPE,d=s.ERR_STREAM_DESTROYED,g=s.ERR_STREAM_NULL_VALUES,y=s.ERR_STREAM_WRITE_AFTER_END,v=s.ERR_UNKNOWN_ENCODING,m=t.errorOrDestroy;function b(){}function w(e,u,t){r=r||R("./_stream_duplex"),e=e||{},"boolean"!=typeof t&&(t=u instanceof r),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=i(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;t=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!t,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t=u,r=t._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new p;var i,s,a,c,l=r;l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,e?(l=t,s=n,a=e,c=o,--(i=r).pendingcb,s?(L.nextTick(c,a),L.nextTick(x,l,i),l._writableState.errorEmitted=!0,m(l,a)):(c(a),l._writableState.errorEmitted=!0,m(l,a),x(l,i))):((e=T(r)||t.destroyed)||r.corked||r.bufferProcessing||!r.bufferedRequest||C(t,r),n?L.nextTick(E,t,r,e,o):E(t,r,e,o))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}R("inherits")(_,n),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(w.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function _(e){var t=this instanceof(r=r||R("./_stream_duplex"));if(!t&&!o.call(_,this))return new _(e);this._writableState=new w(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),n.call(this)}function S(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new d("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function E(e,t,r,n){var o;r||(r=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),x(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){for(var n=t.bufferedRequestCount,o=new Array(n),n=t.corkedRequestsFree,i=(n.entry=r,0),s=!0;r;)(o[i]=r).isBuf||(s=!1),r=r.next,i+=1;o.allBuffers=s,S(e,t,!0,t.length,o,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,c=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:a.length,a,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(t,r){t._final(function(e){r.pendingcb--,e&&m(t,e),r.prefinished=!0,t.emit("prefinish"),x(t,r)})}function x(e,t){var r,n,o=T(t);return o&&(r=e,(n=t).prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,L.nextTick(k,r,n))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)&&(!(r=e._readableState)||r.autoDestroy&&r.endEmitted)&&e.destroy(),o}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===_&&e&&e._writableState instanceof w}})):o=function(e){return e instanceof this},_.prototype.pipe=function(){m(this,new c)},_.prototype.write=function(e,t,r){var n,o,i,s=this._writableState,a=!1,c=!s.objectMode&&(c=e,l.isBuffer(c)||c instanceof u);return c&&!l.isBuffer(e)&&(n=e,e=l.from(n)),"function"==typeof t&&(r=t,t=null),t=c?"buffer":t||s.defaultEncoding,"function"!=typeof r&&(r=b),s.ending?(n=this,o=r,i=new y,m(n,i),L.nextTick(o,i)):(c||function(e,t,r,n){var o;if(null===r?o=new g:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o)return 1;m(e,o),L.nextTick(n,o)}(this,s,e,r))&&(s.pendingcb++,a=function(e,t,r,n,o,i){r||(s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,o),n!==s&&(r=!0,o="buffer",n=s));var s=t.objectMode?1:n.length,a=(t.length+=s,t.length<t.highWaterMark);a||(t.needDrain=!0);{var c;t.writing||t.corked?(c=t.lastBufferedRequest,t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):S(e,t,!1,s,n,o,i)}return a}(this,s,c,e,t,r)),a},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new v(e)},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new a("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var n=this._writableState;if("function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),!n.ending){e=this,t=n,n=r;t.ending=!0,x(e,t),n&&(t.finished?L.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}return this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=t.destroy,_.prototype._undestroy=t.undestroy,_.prototype._destroy=function(e,t){t(e)}}.call(this)}.call(this,R("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":107,"./_stream_duplex":108,"./internal/streams/destroy":115,"./internal/streams/state":119,"./internal/streams/stream":120,_process:98,buffer:57,inherits:97,"util-deprecate":125}],113:[function(n,y,e){!function(g){!function(){"use strict";var e;function r(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}var o=n("./end-of-stream"),i=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t,r=e[i];null!==r&&null!==(t=e[h].read())&&(e[l]=null,e[i]=null,e[s]=null,r(f(t,!1)))}var t=Object.getPrototypeOf(function(){}),d=Object.setPrototypeOf((r(e={get stream(){return this[h]},next:function(){var r=this,e=this[a];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){g.nextTick(function(){r[a]?t(r[a]):e(f(void 0,!0))})});var t,n,o,e=this[l];if(e)t=new Promise((n=e,o=this,function(e,t){n.then(function(){o[c]?e(f(void 0,!0)):o[u](e,t)},t)}));else{e=this[h].read();if(null!==e)return Promise.resolve(f(e,!1));t=new Promise(this[u])}return this[l]=t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(f(void 0,!0))})})}),e),t);y.exports=function(e){var t,n=Object.create(d,(r(t={},h,{value:e,writable:!0}),r(t,i,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,u,{value:function(e,t){var r=n[h].read();r?(n[l]=null,n[i]=null,n[s]=null,e(f(r,!1))):(n[i]=e,n[s]=t)},writable:!0}),t));return n[l]=null,o(e,function(e){var t;e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code?(null!==(t=n[s])&&(n[l]=null,n[i]=null,n[s]=null,t(e)),n[a]=e):(null!==(t=n[i])&&(n[l]=null,n[i]=null,t(f(void 0,!(n[s]=null)))),n[c]=!0)}),e.on("readable",function(e){g.nextTick(p,e)}.bind(null,n)),n}}.call(this)}.call(this,n("_process"))},{"./end-of-stream":116,_process:98}],114:[function(e,t,r){"use strict";function i(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function o(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("buffer").Buffer,c=e("util").inspect,l=c&&c.custom||"inspect";t.exports=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n=a.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=i,a.prototype.copy.call(t,n,r),i+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=o.slice(i);break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0===(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=o.slice(i);break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return c(this,o({},t,{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),e}()},{buffer:57,util:54}],115:[function(e,t,r){!function(c){!function(){"use strict";function i(e,t){a(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return n||o?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,e)):c.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?c.nextTick(s,r):(r._writableState.errorEmitted=!0,c.nextTick(i,r,e)):c.nextTick(i,r,e):t?(c.nextTick(s,r),t(e)):c.nextTick(s,r)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}.call(this)}.call(this,e("_process"))},{_process:98}],116:[function(e,t,r){"use strict";var v=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function m(){}t.exports=function e(t,r,n){var o,i,s,a,c,l,u,h,f,p,d,g,y;return"function"==typeof r?e(t,null,r):(o=n||m,i=!1,n=function(){if(!i){i=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.apply(this,t)}},s=(r=r||{}).readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){l=!(a=!1),s||n.call(t)},h=t._readableState&&t._readableState.endEmitted,f=function(){h=!(s=!1),a||n.call(t)},p=function(e){n.call(t,e)},d=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new v),n.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new v),n.call(t,e)):void 0},g=function(){t.req.on("finish",u)},(y=t).setHeader&&"function"==typeof y.abort?(t.on("complete",u),t.on("abort",d),t.req?g():t.on("request",g)):a&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",f),t.on("finish",u),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",u),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",d)})}},{"../../../errors":107}],117:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],118:[function(c,e,t){"use strict";var l;var r=c("../../../errors").codes,a=r.ERR_MISSING_ARGS,u=r.ERR_STREAM_DESTROYED;function h(e){if(e)throw e}function f(r,e,t,n){o=n,i=!1;var o,i,s=!(n=function(){i||(i=!0,o.apply(void 0,arguments))}),a=(r.on("close",function(){s=!0}),(l=void 0===l?c("./end-of-stream"):l)(r,{readable:e,writable:t},function(e){if(e)return n(e);s=!0,n()}),!1);return function(e){var t;if(!s&&!a)return a=!0,(t=r).setHeader&&"function"==typeof t.abort?r.abort():"function"==typeof r.destroy?r.destroy():void n(e||new u("pipe"))}}function p(e){e()}function d(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o,i=!(r=n).length||"function"!=typeof r[r.length-1]?h:r.pop();if((n=Array.isArray(n[0])?n[0]:n).length<2)throw new a("streams");var s=n.map(function(e,t){var r=t<n.length-1;return f(e,r,0<t,function(e){o=o||e,e&&s.forEach(p),r||(s.forEach(p),i(o))})});return n.reduce(d)}},{"../../../errors":107,"./end-of-stream":116}],119:[function(e,t,r){"use strict";var s=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,n){i=n,o=r;var o,i=null!=(t=t).highWaterMark?t.highWaterMark:i?t[o]:null;if(null==i)return e.objectMode?16:16384;if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new s(n?r:"highWaterMark",i);return Math.floor(i)}}},{"../../../errors":107}],120:[function(e,t,r){t.exports=e("events").EventEmitter},{events:94}],121:[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"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":108,"./lib/_stream_passthrough.js":109,"./lib/_stream_readable.js":110,"./lib/_stream_transform.js":111,"./lib/_stream_writable.js":112,"./lib/internal/streams/end-of-stream.js":116,"./lib/internal/streams/pipeline.js":118}],122:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=n.isEncoding||function(e){switch((e=""+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}};function i(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==o&&o(e))return t||e;throw new Error("Unknown encoding: "+e)}function s(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=h,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function h(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(r.StringDecoder=s).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},s.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(!(n<r)){var o=a(t[n]);if(0<=o)return 0<o&&(e.lastNeed=o-1),o;if(!(--n<r||-2===o)){if(0<=(o=a(t[n])))return 0<o&&(e.lastNeed=o-2),o;if(!(--n<r||-2===o)&&0<=(o=a(t[n])))return 0<o&&(2===o?o=0:e.lastNeed=o-3),o}}return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;r=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":102}],123:[function(e,t,r){"use strict";var E=e("punycode"),C=e("./util");function _(){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){C.isString(e)&&(e=o(e));return e instanceof _?e.format():_.prototype.format.call(e)},r.Url=_;var T=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),x=["'"].concat(r),L=["%","/","?",";","#"].concat(x),A=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,P=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},I={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},B=e("querystring");function o(e,t,r){var n;return e&&C.isObject(e)&&e instanceof _?e:((n=new _).parse(e,t,r),n)}_.prototype.parse=function(e,t,r){if(!C.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),n=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(n);o[0]=o[0].replace(/\\/g,"/");var i=(i=e=o.join(n)).trim();if(!r&&1===e.split("#").length){o=k.exec(i);if(o)return this.path=i,this.href=i,this.pathname=o[1],o[2]?(this.search=o[2],this.query=t?B.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var s,n=T.exec(i);if(n&&(s=(n=n[0]).toLowerCase(),this.protocol=s,i=i.substr(n.length)),!(r||n||i.match(/^\/\/[^@\/]+@[^@\/]+/))||!(w="//"===i.substr(0,2))||n&&I[n]||(i=i.substr(2),this.slashes=!0),!I[n]&&(w||n&&!j[n])){for(var a=-1,c=0;c<A.length;c++)-1!==(l=i.indexOf(A[c]))&&(-1===a||l<a)&&(a=l);-1!==(e=-1===a?i.lastIndexOf("@"):i.lastIndexOf("@",a))&&(o=i.slice(0,e),i=i.slice(e+1),this.auth=decodeURIComponent(o));for(var l,a=-1,c=0;c<L.length;c++)-1!==(l=i.indexOf(L[c]))&&(-1===a||l<a)&&(a=l);-1===a&&(a=i.length),this.host=i.slice(0,a),i=i.slice(a),this.parseHost(),this.hostname=this.hostname||"";r="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!r)for(var u=this.hostname.split(/\./),c=0,h=u.length;c<h;c++){var f=u[c];if(f&&!f.match(R)){for(var p="",d=0,g=f.length;d<g;d++)127<f.charCodeAt(d)?p+="x":p+=f[d];if(!p.match(R)){var y=u.slice(0,c),v=u.slice(c+1),m=f.match(P);m&&(y.push(m[1]),v.unshift(m[2])),v.length&&(i="/"+v.join(".")+i),this.hostname=y.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),r||(this.hostname=E.toASCII(this.hostname));var b=this.port?":"+this.port:"",w=this.hostname||"";this.host=w+b,this.href+=this.host,r&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0])&&(i="/"+i)}if(!O[s])for(c=0,h=x.length;c<h;c++){var _,S=x[c];-1!==i.indexOf(S)&&((_=encodeURIComponent(S))===S&&(_=escape(S)),i=i.split(S).join(_))}n=i.indexOf("#"),-1!==n&&(this.hash=i.substr(n),i=i.slice(0,n)),e=i.indexOf("?");return-1!==e?(this.search=i.substr(e),this.query=i.substr(e+1),t&&(this.query=B.parse(this.query)),i=i.slice(0,e)):t&&(this.search="",this.query={}),i&&(this.pathname=i),j[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(b=this.pathname||"",o=this.search||"",this.path=b+o),this.href=this.format(),this},_.prototype.format=function(){var e=this.auth||"",t=(e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@"),this.protocol||""),r=this.pathname||"",n=this.hash||"",o=!1,i="",e=(this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port)&&(o+=":"+this.port),this.query&&C.isObject(this.query)&&Object.keys(this.query).length&&(i=B.stringify(this.query)),this.search||i&&"?"+i||"");return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||j[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),e&&"?"!==e.charAt(0)&&(e="?"+e),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(e=e.replace("#","%23"))+n},_.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},_.prototype.resolveObject=function(e){C.isString(e)&&((f=new _).parse(e,!1,!0),e=f);for(var t=new _,r=Object.keys(this),n=0;n<r.length;n++){var o=r[n];t[o]=this[o]}if(t.hash=e.hash,""!==e.href)if(e.slashes&&!e.protocol){for(var i=Object.keys(e),s=0;s<i.length;s++){var a=i[s];"protocol"!==a&&(t[a]=e[a])}j[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/")}else if(e.protocol&&e.protocol!==t.protocol)if(j[e.protocol]){if(t.protocol=e.protocol,e.host||I[e.protocol])t.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),t.pathname=c.join("/")}t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(f=t.pathname||"",p=t.search||"",t.path=f+p),t.slashes=t.slashes||e.slashes}else for(var l=Object.keys(e),u=0;u<l.length;u++){var h=l[u];t[h]=e[h]}else{var f=t.pathname&&"/"===t.pathname.charAt(0),p=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=p||f||t.host&&e.pathname,d=f,g=t.pathname&&t.pathname.split("/")||[],c=e.pathname&&e.pathname.split("/")||[],y=t.protocol&&!j[t.protocol];if(y&&(t.hostname="",t.port=null,t.host&&(""===g[0]?g[0]=t.host:g.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),f=f&&(""===c[0]||""===g[0])),p)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,g=c;else if(c.length)(g=g||[]).pop(),g=g.concat(c),t.search=e.search,t.query=e.query;else if(!C.isNullOrUndefined(e.search))return y&&(t.hostname=t.host=g.shift(),w=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=w.shift(),t.host=t.hostname=w.shift()),t.search=e.search,t.query=e.query,C.isNull(t.pathname)&&C.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(g.length){for(var v=g.slice(-1)[0],p=(t.host||e.host||1<g.length)&&("."===v||".."===v)||""===v,m=0,b=g.length;0<=b;b--)"."===(v=g[b])?g.splice(b,1):".."===v?(g.splice(b,1),m++):m&&(g.splice(b,1),m--);if(!f&&!d)for(;m--;)g.unshift("..");!f||""===g[0]||g[0]&&"/"===g[0].charAt(0)||g.unshift(""),p&&"/"!==g.join("/").substr(-1)&&g.push("");var w,d=""===g[0]||g[0]&&"/"===g[0].charAt(0);y&&(t.hostname=t.host=!d&&g.length?g.shift():"",w=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=w.shift(),t.host=t.hostname=w.shift()),(f=f||t.host&&g.length)&&!d&&g.unshift(""),g.length?t.pathname=g.join("/"):(t.pathname=null,t.path=null),C.isNull(t.pathname)&&C.isNull(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes}else t.pathname=null,t.search?t.path="/"+t.search:t.path=null}return t.href=t.format(),t},_.prototype.parseHost=function(){var e=this.host,t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":124,punycode:56,querystring:101}],124:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],125:[function(e,r,t){!function(t){!function(){function n(e){try{if(!t.localStorage)return}catch(e){return}e=t.localStorage[e];return null!=e&&"true"===String(e).toLowerCase()}r.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],126:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r,n=arguments[t];for(r in n)o.call(n,r)&&(e[r]=n[r])}return e};var o=Object.prototype.hasOwnProperty},{}],127:[function(e,t,r){t.exports={LocalStorage:class{constructor(){this.hostName="",this.accessToken="",this.userToken=""}getAccessToken(){return this.accessToken}getUserToken(){return this.userToken}getHostName(){return this.hostName}setAccessToken(e){this.accessToken=e}setUserToken(e){this.userToken=e}setHostName(e){this.hostName=e}clearStorage(){this.setUserToken(""),this.setAccessToken(""),this.setHostName("")}}}},{}],128:[function(e,t,r){t.exports={SessionStorage:class{SessionStorageKeys={ACCESSTOKEN:"AccessToken",USERTOKEN:"UserToken",HOSTNAME:"HostName",CODEVERIFIER:"CodeVerifier",RANDOMSTATE:"RandomState",CODE:"Code",STATE:"State",NEWLOGIN:"NewLogin"};getAccessToken(){return sessionStorage.getItem(this.SessionStorageKeys.ACCESSTOKEN)}getCode(){return sessionStorage.getItem(this.SessionStorageKeys.CODE)}getCodeVerifier(){return sessionStorage.getItem(this.SessionStorageKeys.CODEVERIFIER)}getRandomState(){return sessionStorage.getItem(this.SessionStorageKeys.RANDOMSTATE)}getState(){return sessionStorage.getItem(this.SessionStorageKeys.STATE)}getUserToken(){return sessionStorage.getItem(this.SessionStorageKeys.USERTOKEN)}getHostName(){return sessionStorage.getItem(this.SessionStorageKeys.HOSTNAME)}getNewLogin(){return sessionStorage.getItem(this.SessionStorageKeys.NEWLOGIN)}setAccessToken(e){sessionStorage.setItem(this.SessionStorageKeys.ACCESSTOKEN,e)}setCode(e){sessionStorage.setItem(this.SessionStorageKeys.CODE,e)}setCodeVerifier(e){sessionStorage.setItem(this.SessionStorageKeys.CODEVERIFIER,e)}setRandomState(e){sessionStorage.setItem(this.SessionStorageKeys.RANDOMSTATE,e)}setState(e){sessionStorage.setItem(this.SessionStorageKeys.STATE,e)}setUserToken(e){sessionStorage.setItem(this.SessionStorageKeys.USERTOKEN,e)}setHostName(e){sessionStorage.setItem(this.SessionStorageKeys.HOSTNAME,e)}setNewLogin(e){sessionStorage.setItem(this.SessionStorageKeys.NEWLOGIN,e)}clearPKCEStorage(){sessionStorage.removeItem(this.SessionStorageKeys.CODE),sessionStorage.removeItem(this.SessionStorageKeys.STATE),sessionStorage.removeItem(this.SessionStorageKeys.CODEVERIFIER),sessionStorage.removeItem(this.SessionStorageKeys.RANDOMSTATE)}clearStorage(){sessionStorage.removeItem(this.SessionStorageKeys.USERTOKEN),sessionStorage.removeItem(this.SessionStorageKeys.ACCESSTOKEN),sessionStorage.removeItem(this.SessionStorageKeys.HOSTNAME),sessionStorage.removeItem(this.SessionStorageKeys.CODE),sessionStorage.removeItem(this.SessionStorageKeys.CODEVERIFIER),sessionStorage.removeItem(this.SessionStorageKeys.STATE),sessionStorage.removeItem(this.SessionStorageKeys.RANDOMSTATE),sessionStorage.removeItem(this.SessionStorageKeys.NEWLOGIN)}}}},{}],129:[function(o,e,t){const h=o("fs"),i=o("@microsoft/signalr"),u=o("axios"),p=o("https"),d=o("./LocalStorage"),s=o("./SessionStorage"),r=o("crypto-js"),g={hubConnection:i.HubConnection,CAs:[],CAFiles:[],Services:{CORE:"core",APPLIANCE:"appliance",NOTIFICATION:"notification",A2A:"a2a"},HttpMethods:{POST:"post",GET:"get",PUT:"put",DELETE:"delete"},A2ATypes:{PASSWORD:"password",PRIVATEKEY:"privatekey"},SshKeyFormats:{OPENSSH:"openssh",SSH2:"ssh2",PUTTY:"putty"},_saveUserToken:(e,t)=>{if(e)throw new Error("Failed to save user token.");try{var r=JSON.parse(t);if("Success"!==r.Status)throw new Error("Failed to save user token.");g.Storage.setUserToken(r.UserToken)}catch(e){throw new Error("Failed to save user token.")}},_saveAccessToken:(e,t)=>{if(e)throw new Error("Failed to save access token.");try{var r=JSON.parse(t);if(!r.success)throw new Error("Failed to save access token.");g.Storage.setAccessToken(r.access_token)}catch(e){throw new Error("Failed to save access token.")}},_execute:(e,t,r,n,o,i,s,a=null,c=!1)=>{o?("accept"in o||(o.accept="application/json"),"accept-language"in o||(o["accept-language"]="en-US,en;q=0.9"),"content-type"in o||(o["content-type"]="application/json")):o={accept:"application/json","accept-language":"en-US,en;q=0.9","content-type":"application/json"};let l=null;(l=a?u({method:t,url:e,headers:o,data:r,responseType:n,httpsAgent:a}):u({method:t,url:e,headers:o,data:r,responseType:n,httpsAgent:new p.Agent({ca:g.CAs})})).then(function(e){let t=null;t=c?JSON.stringify(e.headers):JSON.stringify(e.data),i&&i(null,t,s)}).catch(function(e){let t=null;t=e.response&&e.response.data?JSON.stringify(e.response.data):e.message,i&&i(new Error(t),t,s)})},_executePromise:(e,t,r,i,s,a,c,l=null,u=!1)=>new Promise((n,o)=>{g._execute(e,t,r,i,s,(e,t,r)=>{a?a(e,t,r):e&&o(e),n(t)},c,l,u)}),_getProviderId:async(e,t,r)=>{if(null==r||""===r||"LOCAL"==r.toUpperCase()||"CERTIFICATE"==r.toUpperCase())return t;let n=null;try{n=await g._executePromise(`https://${e}/service/core/v4/AuthenticationProviders`,g.HttpMethods.GET,null,"json",null,null,null),n=JSON.parse(n)}catch(e){throw new Error(`Could not find the provider: '${r}'. `+e)}try{for(const o of n){if(r.toUpperCase()==o.Name.toUpperCase())return o.RstsProviderId;if(r.toUpperCase()==o.Id.toUpperCase())return o.RstsProviderId;if(o.Id.toUpperCase().includes(r.toUpperCase()))return o.RstsProviderId}}catch(e){throw new Error(`Could not find the provider: '${r}'. `+e)}throw new Error(`Could not find the provider: '${r}'`)},oAuthCodeVerifier:()=>g.toBase64Url(r.lib.WordArray.random(30)),oAuthCodeChallenge:e=>g.toBase64Url(r.SHA256(e)),toBase64Url:e=>r.enc.Base64.stringify(e).replace(/[=]/gi,"").replace(/[+]/gi,"-").replace(/[/]/gi,"_"),_loginUrl:(e,t)=>{var r=g.oAuthCodeVerifier(),n=g.oAuthCodeVerifier();return g.Storage.setCodeVerifier(r),g.Storage.setRandomState(n),`https://${e}/RSTS/Login?response_type=code&code_challenge_method=S256&code_challenge=${g.oAuthCodeChallenge(r)}&state=${n}&redirect_uri=`+encodeURIComponent(t)},_goToLogin:(e,t)=>{window.location=g._loginUrl(e,t)},_tradeForUserToken:(e,t)=>{t=`https://${t}/service/core/v4/Token/LoginResponse`;return body={StsAccessToken:e},g._executePromise(t,g.HttpMethods.POST,body,"json",null,g._saveUserToken)},_tradeForAccessToken:(e,t,r)=>{r=`https://${r}/RSTS/oauth2/token`;body=new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t});return g._executePromise(r,g.HttpMethods.POST,body,"json",{"content-type":"application/x-www-form-urlencoded"},g._saveAccessToken)},_connectInternal:(t,r,e)=>{if(null==t||""===t)throw new Error("hostName may not be null or empty");if(null==e)throw new Error("getAccessToken may not be null or undefined");var n=g.Storage.getHostName(),n=(n&&t!==n&&g.Storage.clearStorage(),g.Storage.setHostName(t),g.Storage.getUserToken());let o=g.Storage.getAccessToken();var i,s=g.Storage.getCode(),a=g.Storage.getState();return n?(n=new g.SafeguardConnection(t),r&&r(n),n):o?(g._tradeForUserToken(o,t),n=new g.SafeguardConnection(t),r&&r(n),n):void(s&&a?(n=g.Storage.getCodeVerifier(),i=g.Storage.getRandomState(),g.Storage.clearPKCEStorage(),a==i&&g._tradeForAccessToken(s,n,t).then(()=>{o=g.Storage.getAccessToken(),g._tradeForUserToken(o,t);var e=new g.SafeguardConnection(t);return r&&r(e),e})):e())},addCA:e=>{g.CAs.push(e)},addCAFromFile:t=>{try{var e=h.readFileSync(t);g.addCA(e),g.CAFiles.push(t)}catch(e){throw new Error(`Failed to add certificate authority: '${t}'`)}},clearCAs:()=>{g.CAs=[],g.CAFiles=[]},connectRsts:async(e,t,r,n)=>(g.Storage=n||new s.SessionStorage,g._connectInternal(e,r,()=>g._goToLogin(e,t))),connectPassword:async(e,t,r,n,o,i)=>{if(null==e||""===e)throw new Error("hostName may not be null or empty");if(null==t||""===t)throw new Error("userName may not be null or empty");if(null==r||""===r)throw new Error("password may not be null or empty");n=await g._getProviderId(e,"local",n);g.Storage=i||new d.LocalStorage,g.Storage.clearStorage(),g.Storage.setHostName(e);try{var s={grant_type:"password",username:t,password:r,scope:"rsts:sts:primaryproviderid:"+n},a=await g._executePromise(`https://${e}/RSTS/oauth2/token`,g.HttpMethods.POST,s,"json",null,null,null),c=(g.Storage.setAccessToken(JSON.parse(a).access_token),s={StsAccessToken:g.Storage.getAccessToken()},await g._executePromise(`https://${e}/service/core/v4/Token/LoginResponse`,g.HttpMethods.POST,s,"json",null,null,null)),l=(g.Storage.setUserToken(JSON.parse(c).UserToken),new g.SafeguardConnection(e));return o&&o(l),l}catch(e){throw new Error(e.message)}},connectCertificate:async(e,t,r,n,o,i,s,a)=>{if(null==e||""===e)throw new Error("hostName may not be null or empty");if(!(null!=t&&""!==t||null!=r&&""!==r||null!=n&&""!==n))throw new Error("Either a cert and key or pfx are required.");if(null==o||""===o)throw new Error("passphrase may not be null or empty");i=await g._getProviderId(e,"certificate",i);g.Storage=a||new d.LocalStorage,g.Storage.clearStorage(),g.Storage.setHostName(e);try{var c={grant_type:"client_credentials",scope:"rsts:sts:primaryproviderid:"+i},l=new p.Agent({cert:t,key:r,pfx:n,ca:g.CAs,passphrase:o}),u=await g._executePromise(`https://${e}/RSTS/oauth2/token`,g.HttpMethods.POST,c,"json",null,null,null,l),h=(g.Storage.setAccessToken(JSON.parse(u).access_token),c={StsAccessToken:g.Storage.getAccessToken()},await g._executePromise(`https://${e}/service/core/v4/Token/LoginResponse`,g.HttpMethods.POST,c,"json")),f=(g.Storage.setUserToken(JSON.parse(h).UserToken),new g.SafeguardConnection(e));return s&&s(f),f}catch(e){throw new Error(e.message)}},connectCertificateFromFiles:async(e,t,r,n,o,i,s,a)=>{let c=null,l=null,u=null;return t&&(c=h.readFileSync(t)),r&&(l=h.readFileSync(r)),n&&(u=h.readFileSync(n)),g.connectCertificate(e,c,l,u,o,i,s,a)},connectAnonymous:(e,t,r)=>{if(null==e||""===e)throw new Error("hostName may not be null or empty");g.Storage=r||new s.SessionStorage,g.Storage.clearStorage(),g.Storage.setHostName(e);r=new g.SafeguardConnection(e);return t&&t(r),r},a2aGetCredential:async(t,r,n,o,i,s,a,c)=>{if(null==t||""===t)throw new Error("hostName may not be null or empty");if(null==r||""===r)throw new Error("apiKey may not be null or empty");if(null==i||""===i||null==s||""===s||null==a||""===a)throw new Error("A cert and key must be specified.");o=o||g.SshKeyFormats.OPENSSH;try{var l=new p.Agent({cert:i,key:s,ca:g.CAs,passphrase:a}),u={authorization:"A2A "+r};let e=await g._executePromise(`https://${t}/service/a2a/v4/Credentials?type=${n}&keyFormat=`+o,g.HttpMethods.GET,null,"json",u,null,null,l);return'"'===(e='"'===e.slice(0,1)?e.slice(1):e).slice(-1)&&(e=e.slice(0,-1)),c&&c(e),e}catch(e){throw new Error("Failed to retrieve credentials: "+e)}},a2aGetCredentialFromFiles:async(e,t,r,n,o,i,s,a)=>{let c=null,l=null;return o&&(c=h.readFileSync(o)),i&&(l=h.readFileSync(i)),g.a2aGetCredential(e,t,r,n,c,l,s,a)},Storage:new s.SessionStorage,SafeguardConnection:class{constructor(e){if(null==e||""===e)throw new Error("hostName may not be null or empty");this.hostName=e}_constructUrl(t,r,e){var n=`https://${this.hostName}/service/`;try{e&&(r=r+"?"+Object.entries(e).map(e=>e.map(encodeURIComponent).join("=")).join("&"))}catch(e){throw new Error(`Could not process parameters for call to the ${t} service at endpoint ${r}.`)}switch(t){case g.Services.CORE:return n+"core/"+r;case g.Services.APPLIANCE:return n+"appliance/"+r;case g.Services.NOTIFICATION:return n+"notification/"+r;case g.Services.A2A:return n+"a2a/"+r;default:throw new Error(`Unsupported service requested: '${t}'.`)}}_getBearerToken(){var e=g.Storage.getUserToken();if(null==e||""===e)throw new Error("Access token is missing. Please log in again.");return"Bearer "+e}async getAccessTokenLifetimeRemaining(e){var t=this._getBearerToken(),r=this._constructUrl(g.Services.CORE,"v4/LoginMessage",null),t={authorization:t,"X-TokenLifetimeRemaining":""},r=await g._executePromise(r,g.HttpMethods.GET,null,"json",t,null,null,null,!0),r=JSON.parse(r);return e&&e(r["x-tokenlifetimeremaining"]),r["x-tokenlifetimeremaining"]}async logout(e){var t=this._getBearerToken(),r=this._constructUrl(g.Services.CORE,"v4/Token/Logout",null),t={authorization:t},r=(g.Storage.clearStorage(),await g._executePromise(r,g.HttpMethods.POST,null,"json",t,e,null));return r}async invoke(e,t,r,n,o,i,s,a){if(null==e||""===e)throw new Error("service may not be null or empty");if(null==t||""===t)throw new Error("httpMethod may not be null or empty");if(null==r||""===r)throw new Error("relativeUrl may not be null or empty");g.Storage.getUserToken()&&(c=this._getBearerToken(),i?i.authorization=c:i={authorization:c});var c=this._constructUrl(e,r,o);try{return await g._executePromise(c,t,n,"json",i,s,a)}catch(e){throw new Error(e.message)}}async registerSignalR(t){var e=g.Storage.getUserToken();if(null==e||""===e||null==this.hostName||""===this.hostName)throw new Error("You must log in before you can register for SignalR events.");if(!t)throw new Error("A callback must be specified to register for SignalR events.");if(0!=g.CAFiles.length){var r=o("ssl-root-cas").create();for(const n of g.CAFiles)r.addFile(n);o("https").globalAgent.options.ca.concat(r)}e={accessTokenFactory:()=>g.Storage.getUserToken()};g.hubConnection=(new i.HubConnectionBuilder).withUrl(`https://${this.hostName}/service/event/signalr`,e).build(),g.hubConnection.on("NotifyEventAsync",function(e){t&&t(e)}),g.hubConnection.start().then(()=>console.log("SignalR Started!")).catch(e=>console.log(e))}}};e.exports=g},{"./LocalStorage":127,"./SessionStorage":128,"@microsoft/signalr":23,axios:24,"crypto-js":68,fs:55,https:95,"ssl-root-cas":54}]},{},[129])(129)});