@eluvio/elv-client-js 4.0.114 → 4.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElvClient-min.js +68 -0
- package/dist/ElvClient-node-min.js +67 -0
- package/dist/ElvFrameClient-min.js +60 -0
- package/dist/ElvPermissionsClient-min.js +60 -0
- package/dist/ElvWalletClient-min.js +68 -0
- package/dist/ElvWalletClient-node-min.js +67 -0
- package/dist/src/AuthorizationClient.js +2166 -0
- package/dist/src/ContentObjectAudit.js +175 -0
- package/dist/src/ContentObjectVerification.js +281 -0
- package/dist/src/Crypto.js +412 -0
- package/dist/src/ElvClient.js +2063 -0
- package/dist/src/ElvWallet.js +247 -0
- package/dist/src/EthClient.js +1153 -0
- package/dist/src/FrameClient.js +484 -0
- package/dist/src/HttpClient.js +314 -0
- package/dist/src/Id.js +20 -0
- package/dist/src/LogMessage.js +25 -0
- package/dist/src/PermissionsClient.js +1556 -0
- package/dist/src/RemoteSigner.js +383 -0
- package/dist/src/UserProfileClient.js +1465 -0
- package/dist/src/Utils.js +893 -0
- package/dist/src/Validation.js +121 -0
- package/dist/src/abr_profiles/abr_profile_live_drm.js +1661 -0
- package/dist/src/abr_profiles/abr_profile_live_to_vod.js +1606 -0
- package/dist/src/client/ABRPublishing.js +1018 -0
- package/dist/src/client/AccessGroups.js +1503 -0
- package/dist/src/client/ContentAccess.js +5202 -0
- package/dist/src/client/ContentManagement.js +2680 -0
- package/dist/src/client/Contracts.js +1520 -0
- package/dist/src/client/Files.js +2181 -0
- package/dist/src/client/LiveConf.js +567 -0
- package/dist/src/client/LiveStream.js +2638 -0
- package/dist/src/client/NFT.js +162 -0
- package/dist/src/client/NTP.js +581 -0
- package/dist/src/contracts/v2/AccessIndexor.js +831 -0
- package/dist/src/contracts/v2/Accessible.js +31 -0
- package/dist/src/contracts/v2/BaseAccessControlGroup.js +1263 -0
- package/dist/src/contracts/v2/BaseAccessWallet.js +1609 -0
- package/dist/src/contracts/v2/BaseAccessWalletFactory.js +93 -0
- package/dist/src/contracts/v2/BaseContent.js +1076 -0
- package/dist/src/contracts/v2/BaseContentFactory.js +219 -0
- package/dist/src/contracts/v2/BaseContentSpace.js +1352 -0
- package/dist/src/contracts/v2/BaseContentType.js +364 -0
- package/dist/src/contracts/v2/BaseFactory.js +107 -0
- package/dist/src/contracts/v2/BaseGroupFactory.js +93 -0
- package/dist/src/contracts/v2/BaseLibrary.js +1041 -0
- package/dist/src/contracts/v2/BaseLibraryFactory.js +96 -0
- package/dist/src/contracts/v2/Certifyer.js +86 -0
- package/dist/src/contracts/v2/Container.js +540 -0
- package/dist/src/contracts/v2/Content.js +443 -0
- package/dist/src/contracts/v2/Editable.js +306 -0
- package/dist/src/contracts/v2/ExternalUserWallet.js +379 -0
- package/dist/src/contracts/v2/IFactorySpace.js +57 -0
- package/dist/src/contracts/v2/IKmsSpace.js +52 -0
- package/dist/src/contracts/v2/INodeSpace.js +18 -0
- package/dist/src/contracts/v2/IUserSpace.js +18 -0
- package/dist/src/contracts/v2/LvRecordableStream.js +1037 -0
- package/dist/src/contracts/v2/LvRecording.js +627 -0
- package/dist/src/contracts/v2/LvStreamRightsHolder.js +562 -0
- package/dist/src/contracts/v2/MetaObject.js +119 -0
- package/dist/src/contracts/v2/Node.js +167 -0
- package/dist/src/contracts/v2/NodeSpace.js +273 -0
- package/dist/src/contracts/v2/Ownable.js +87 -0
- package/dist/src/contracts/v2/PaymentService.js +627 -0
- package/dist/src/contracts/v2/Precompile.js +15 -0
- package/dist/src/contracts/v2/Transactable.js +82 -0
- package/dist/src/contracts/v2/UserSpace.js +29 -0
- package/dist/src/contracts/v2/Utils.js +18 -0
- package/dist/src/contracts/v2/Verifier.js +53 -0
- package/dist/src/contracts/v2/strings.js +4 -0
- package/dist/src/contracts/v3/AccessIndexor.js +774 -0
- package/dist/src/contracts/v3/Accessible.js +232 -0
- package/dist/src/contracts/v3/Adminable.js +107 -0
- package/dist/src/contracts/v3/AvailsDelivery.js +586 -0
- package/dist/src/contracts/v3/BaseAccessControlGroup.js +1603 -0
- package/dist/src/contracts/v3/BaseAccessWallet.js +1628 -0
- package/dist/src/contracts/v3/BaseAccessWalletFactory.js +112 -0
- package/dist/src/contracts/v3/BaseContent.js +1312 -0
- package/dist/src/contracts/v3/BaseContentFactory.js +183 -0
- package/dist/src/contracts/v3/BaseContentFactoryExt.js +175 -0
- package/dist/src/contracts/v3/BaseContentSpace.js +1515 -0
- package/dist/src/contracts/v3/BaseContentType.js +527 -0
- package/dist/src/contracts/v3/BaseFactory.js +126 -0
- package/dist/src/contracts/v3/BaseGroupFactory.js +112 -0
- package/dist/src/contracts/v3/BaseLibrary.js +1204 -0
- package/dist/src/contracts/v3/BaseLibraryFactory.js +115 -0
- package/dist/src/contracts/v3/BaseTenantSpace.js +1587 -0
- package/dist/src/contracts/v3/Certifyer.js +86 -0
- package/dist/src/contracts/v3/Container.js +739 -0
- package/dist/src/contracts/v3/Content.js +438 -0
- package/dist/src/contracts/v3/CounterObject.js +243 -0
- package/dist/src/contracts/v3/Editable.js +519 -0
- package/dist/src/contracts/v3/EncToken.js +4 -0
- package/dist/src/contracts/v3/ExternalUserWallet.js +587 -0
- package/dist/src/contracts/v3/IAdmin.js +18 -0
- package/dist/src/contracts/v3/IFactorySpace.js +57 -0
- package/dist/src/contracts/v3/IKmsSpace.js +52 -0
- package/dist/src/contracts/v3/INodeSpace.js +18 -0
- package/dist/src/contracts/v3/IUserSpace.js +32 -0
- package/dist/src/contracts/v3/LvRecordableStream.js +1032 -0
- package/dist/src/contracts/v3/LvRecording.js +650 -0
- package/dist/src/contracts/v3/LvStreamRightsHolder.js +557 -0
- package/dist/src/contracts/v3/MetaObject.js +144 -0
- package/dist/src/contracts/v3/Node.js +178 -0
- package/dist/src/contracts/v3/NodeSpace.js +284 -0
- package/dist/src/contracts/v3/Ownable.js +98 -0
- package/dist/src/contracts/v3/PaymentService.js +622 -0
- package/dist/src/contracts/v3/Precompile.js +26 -0
- package/dist/src/contracts/v3/TenantFuncsBase.js +351 -0
- package/dist/src/contracts/v3/Transactable.js +82 -0
- package/dist/src/contracts/v3/UserSpace.js +43 -0
- package/dist/src/contracts/v3/Utils.js +18 -0
- package/dist/src/contracts/v3/Verifier.js +53 -0
- package/dist/src/contracts/v3/strings.js +4 -0
- package/dist/src/contracts/v3b/BaseAccessControlGroup.js +1704 -0
- package/dist/src/events/Topics.js +1793 -0
- package/dist/src/index.js +8 -0
- package/dist/src/walletClient/ClientMethods.js +3102 -0
- package/dist/src/walletClient/Configuration.js +38 -0
- package/dist/src/walletClient/Notifications.js +168 -0
- package/dist/src/walletClient/Profile.js +332 -0
- package/dist/src/walletClient/Utils.js +281 -0
- package/dist/src/walletClient/index.js +2109 -0
- package/package.json +1 -1
- package/src/AuthorizationClient.js +24 -16
- package/src/ElvClient.js +19 -0
- package/src/client/ContentAccess.js +20 -2
- package/src/client/LiveConf.js +10 -8
- package/src/client/LiveStream.js +6 -4
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=195)}([function(e,t,r){"use strict";r.d(t,"k",(function(){return a})),r.d(t,"j",(function(){return c})),r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return f})),r.d(t,"o",(function(){return l})),r.d(t,"p",(function(){return h})),r.d(t,"l",(function(){return d})),r.d(t,"i",(function(){return A})),r.d(t,"d",(function(){return p})),r.d(t,"e",(function(){return g})),r.d(t,"c",(function(){return b})),r.d(t,"g",(function(){return y})),r.d(t,"f",(function(){return v})),r.d(t,"h",(function(){return m})),r.d(t,"n",(function(){return w})),r.d(t,"m",(function(){return I}));var n=new(r(1).b)("bytes/5.7.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return d(e)&&!(e.length%2)||c(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!s(r)||r<0||r>=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),o(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),d(e)){var a=e.substring(2);a.length%2&&("left"===t.hexPad?a="0"+a:"right"===t.hexPad?a+="0":n.throwArgumentError("hex data is odd-length","value",e));for(var s=[],u=0;u<a.length;u+=2)s.push(parseInt(a.substring(u,u+2),16));return o(new Uint8Array(s))}return c(e)?o(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function f(e){var t=e.map((function(e){return u(e)})),r=t.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(r);return t.reduce((function(e,t){return n.set(t,e),e+t.length}),0),o(n)}function l(e){var t=u(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function h(e,t){(e=u(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),o(r)}function d(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function A(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r="0123456789abcdef"[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(c(e)){for(var o="0x",a=0;a<e.length;a++){var s=e[a];o+="0123456789abcdef"[(240&s)>>4]+"0123456789abcdef"[15&s]}return o}return n.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!=typeof e)e=A(e);else if(!d(e)||e.length%2)return null;return(e.length-2)/2}function g(e,t,r){return"string"!=typeof e?e=A(e):(!d(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function b(e){var t="0x";return e.forEach((function(e){t+=A(e).substring(2)})),t}function y(e){var t=v(A(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function v(e){"string"!=typeof e&&(e=A(e)),d(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function m(e,t){for("string"!=typeof e?e=A(e):d(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){var r=u(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=A(r.slice(0,32)),t.s=A(r.slice(32,64))):65===r.length?(t.r=A(r.slice(0,32)),t.s=A(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=A(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var i=h(u(t._vs),32);t._vs=A(i);var o=i[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127;var s=A(i);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var c=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==c&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&d(t.r)?t.r=m(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=m(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);var f=u(t.s);f[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var l=A(f);t._vs&&(d(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=m(t._vs,32)),null==t._vs?t._vs=l:t._vs!==l&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function I(e){return A(f([(e=w(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p}));function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var a=!1,s=!1,c={debug:1,default:2,info:2,warning:3,error:4,off:5},u=c.default,f=null;var l,h,d=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(l||(l={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(h||(h={}));var A="0123456789abcdef",p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return t=e,n=[{key:"globalLogger",value:function(){return f||(f=new e("logger/5.7.0")),f}},{key:"setCensorship",value:function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!r}},{key:"setLogLevel",value:function(t){var r=c[t.toLowerCase()];null!=r?u=r:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}],(r=[{key:"_log",value:function(e,t){var r=e.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",e),u>c[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.DEBUG,r)}},{key:"info",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.INFO,r)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.WARNING,r)}},{key:"makeError",value:function(t,r,n){if(s)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",o=0;o<t.length;o++)r+=A[t[o]>>4],r+=A[15&t[o]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=t,a="";switch(r){case h.NUMERIC_FAULT:a="NUMERIC_FAULT";var c=t;switch(c){case"overflow":case"underflow":case"division-by-zero":a+="-"+c;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case h.CALL_EXCEPTION:case h.INSUFFICIENT_FUNDS:case h.MISSING_NEW:case h.NONCE_EXPIRED:case h.REPLACEMENT_UNDERPRICED:case h.TRANSACTION_REPLACED:case h.UNPREDICTABLE_GAS_LIMIT:a=r}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var u=new Error(t);return u.reason=o,u.code=r,Object.keys(n).forEach((function(e){u[e]=n[e]})),u}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})}},{key:"checkSafeUint53",value:function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();p.errors=h,p.levels=l},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(218).Buffer}catch(e){}function c(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function u(e,t,r){var n=c(e,r);return r-1>=t&&(n|=c(e,r-1)<<4),n}function f(e,t,r,n){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c<s;c++){var u=e.charCodeAt(c)-48;o*=n,a=u>=49?u-49+10:u>=17?u-17+10:u,i(u>=0&&a<n,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===r?this._parseHex(e,o,n):(this._parseBase(e,r,o),"le"===n&&this._initArray(this.toArray(),r,n)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,a,s=0;if("be"===r)for(n=e.length-1,o=0;n>=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n<e.length;n+=3)a=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u<s;u+=n)c=f(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var l=1;for(c=f(e,u,e.length,t),u=0;u<a;u++)l*=t;this.imuln(l),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){l(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){a.prototype.inspect=h}else a.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<n|o)).toString(16);o=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,a--),r=0!==o||a!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=A[e],f=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var h=l.modrn(f).toString(e);r=(l=l.idivn(f)).isZero()?h+r:d[u-h.length]+h+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var f=c>>>26,l=67108863&c,h=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=h;d++){var A=u-d|0;f+=(a=(i=0|e.words[A])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}r.words[u]=0|l,c=0|f}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,n),a},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,a=e.words,s=t.words,c=r.words,u=0,f=0|a[0],l=8191&f,h=f>>>13,d=0|a[1],A=8191&d,p=d>>>13,g=0|a[2],b=8191&g,y=g>>>13,v=0|a[3],m=8191&v,w=v>>>13,I=0|a[4],E=8191&I,B=I>>>13,C=0|a[5],_=8191&C,k=C>>>13,S=0|a[6],Q=8191&S,x=S>>>13,R=0|a[7],O=8191&R,D=R>>>13,j=0|a[8],P=8191&j,M=j>>>13,N=0|a[9],T=8191&N,L=N>>>13,F=0|s[0],U=8191&F,G=F>>>13,H=0|s[1],q=8191&H,K=H>>>13,Y=0|s[2],J=8191&Y,z=Y>>>13,W=0|s[3],V=8191&W,Z=W>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],Ae=8191&de,pe=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(u+(n=Math.imul(l,U))|0)+((8191&(i=(i=Math.imul(l,G))+Math.imul(h,U)|0))<<13)|0;u=((o=Math.imul(h,G))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,G))+Math.imul(p,U)|0,o=Math.imul(p,G);var be=(u+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(h,q)|0))<<13)|0;u=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,G))+Math.imul(y,U)|0,o=Math.imul(y,G),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(p,q)|0,o=o+Math.imul(p,K)|0;var ye=(u+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,z)|0)+Math.imul(h,J)|0))<<13)|0;u=((o=o+Math.imul(h,z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(m,U),i=(i=Math.imul(m,G))+Math.imul(w,U)|0,o=Math.imul(w,G),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,z)|0)+Math.imul(p,J)|0,o=o+Math.imul(p,z)|0;var ve=(u+(n=n+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,V)|0))<<13)|0;u=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,U),i=(i=Math.imul(E,G))+Math.imul(B,U)|0,o=Math.imul(B,G),n=n+Math.imul(m,q)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,z)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(p,V)|0,o=o+Math.imul(p,Z)|0;var me=(u+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,$)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(_,U),i=(i=Math.imul(_,G))+Math.imul(k,U)|0,o=Math.imul(k,G),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,z)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(p,$)|0,o=o+Math.imul(p,ee)|0;var we=(u+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;u=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(Q,U),i=(i=Math.imul(Q,G))+Math.imul(x,U)|0,o=Math.imul(x,G),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,z)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(p,re)|0,o=o+Math.imul(p,ne)|0;var Ie=(u+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;u=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(O,U),i=(i=Math.imul(O,G))+Math.imul(D,U)|0,o=Math.imul(D,G),n=n+Math.imul(Q,q)|0,i=(i=i+Math.imul(Q,K)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,z)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,z)|0,n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(p,oe)|0,o=o+Math.imul(p,ae)|0;var Ee=(u+(n=n+Math.imul(l,ce)|0)|0)+((8191&(i=(i=i+Math.imul(l,ue)|0)+Math.imul(h,ce)|0))<<13)|0;u=((o=o+Math.imul(h,ue)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,G))+Math.imul(M,U)|0,o=Math.imul(M,G),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(Q,J)|0,i=(i=i+Math.imul(Q,z)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(p,ce)|0,o=o+Math.imul(p,ue)|0;var Be=(u+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;u=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,G))+Math.imul(L,U)|0,o=Math.imul(L,G),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,z)|0,n=n+Math.imul(Q,V)|0,i=(i=i+Math.imul(Q,Z)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,n=n+Math.imul(A,le)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(p,le)|0,o=o+Math.imul(p,he)|0;var Ce=(u+(n=n+Math.imul(l,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(l,pe)|0)+Math.imul(h,Ae)|0))<<13)|0;u=((o=o+Math.imul(h,pe)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,K))+Math.imul(L,q)|0,o=Math.imul(L,K),n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,z)|0,n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(Q,$)|0,i=(i=i+Math.imul(Q,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,he)|0;var _e=(u+(n=n+Math.imul(A,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(A,pe)|0)+Math.imul(p,Ae)|0))<<13)|0;u=((o=o+Math.imul(p,pe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,J),i=(i=Math.imul(T,z))+Math.imul(L,J)|0,o=Math.imul(L,z),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(Q,re)|0,i=(i=i+Math.imul(Q,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,n=n+Math.imul(m,le)|0,i=(i=i+Math.imul(m,he)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,he)|0;var ke=(u+(n=n+Math.imul(b,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(b,pe)|0)+Math.imul(y,Ae)|0))<<13)|0;u=((o=o+Math.imul(y,pe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,Z))+Math.imul(L,V)|0,o=Math.imul(L,Z),n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(Q,oe)|0,i=(i=i+Math.imul(Q,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,he)|0;var Se=(u+(n=n+Math.imul(m,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(m,pe)|0)+Math.imul(w,Ae)|0))<<13)|0;u=((o=o+Math.imul(w,pe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(T,$),i=(i=Math.imul(T,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(Q,ce)|0,i=(i=i+Math.imul(Q,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(_,le)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,he)|0;var Qe=(u+(n=n+Math.imul(E,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(E,pe)|0)+Math.imul(B,Ae)|0))<<13)|0;u=((o=o+Math.imul(B,pe)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,n=Math.imul(T,re),i=(i=Math.imul(T,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,ue)|0,n=n+Math.imul(Q,le)|0,i=(i=i+Math.imul(Q,he)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,he)|0;var xe=(u+(n=n+Math.imul(_,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(_,pe)|0)+Math.imul(k,Ae)|0))<<13)|0;u=((o=o+Math.imul(k,pe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,oe),i=(i=Math.imul(T,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),n=n+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(O,le)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,he)|0;var Re=(u+(n=n+Math.imul(Q,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(Q,pe)|0)+Math.imul(x,Ae)|0))<<13)|0;u=((o=o+Math.imul(x,pe)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(T,ce),i=(i=Math.imul(T,ue))+Math.imul(L,ce)|0,o=Math.imul(L,ue),n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Oe=(u+(n=n+Math.imul(O,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(O,pe)|0)+Math.imul(D,Ae)|0))<<13)|0;u=((o=o+Math.imul(D,pe)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(T,le),i=(i=Math.imul(T,he))+Math.imul(L,le)|0,o=Math.imul(L,he);var De=(u+(n=n+Math.imul(P,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(P,pe)|0)+Math.imul(M,Ae)|0))<<13)|0;u=((o=o+Math.imul(M,pe)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var je=(u+(n=Math.imul(T,Ae))|0)+((8191&(i=(i=Math.imul(T,pe))+Math.imul(L,Ae)|0))<<13)|0;return u=((o=Math.imul(L,pe))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,c[0]=ge,c[1]=be,c[2]=ye,c[3]=ve,c[4]=me,c[5]=we,c[6]=Ie,c[7]=Ee,c[8]=Be,c[9]=Ce,c[10]=_e,c[11]=ke,c[12]=Se,c[13]=Qe,c[14]=xe,c[15]=Re,c[16]=Oe,c[17]=De,c[18]=je,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var f=o-u,l=(0|e.words[f])*(0|t.words[u]),h=67108863&l;s=67108863&(h=h+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(b=g),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):v(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=c,h=u,d=0;d<a;d++){var A=r[f+d],p=n[f+d],g=r[f+d+a],b=n[f+d+a],y=l*g-h*b;b=l*b+h*g,g=y,r[f+d]=A+g,n[f+d]=p+b,r[f+d+a]=A-g,n[f+d+a]=p-b,d!==s&&(y=c*l-u*h,h=c*h+u*l,l=y)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,n){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<n;++a)r[a]=0;i(0===o),i(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,c,n,i),this.transform(u,o,f,l,n,i);for(var d=0;d<n;d++){var A=s[d]*f[d]-c[d]*l[d];c[d]=s[d]*l[d]+c[d]*f[d],s[d]=A}return this.conjugate(s,c,n),this.transform(s,c,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),v(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<67108864);for(var r=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<r;this.words[t]=c|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var n;i("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=r;if(n-=a,n=Math.max(0,n),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;u>=0&&(0!==f||u>=n);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,o,a=e.length+r;this._expand(a);var s=0;for(n=0;n<e.length;n++){o=(0|this.words[n+r])+s;var c=(0|e.words[n])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)s=(o=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(o=-(0|this.words[n])+s)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var f=n.clone()._ishlnsubmul(i,1,c);0===f.negative&&(n=f,s&&(s.words[c]=1));for(var l=c-1;l>=0;l--){var h=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,l);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(f),o.isub(l)),n.iushrn(1),o.iushrn(1);for(var A=0,p=1;0==(r.words[0]&p)&&A<26;++A,p<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(l)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(c)):(r.isub(t),s.isub(n),c.isub(o))}return{a:s,b:c,gcd:r.iushln(u)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,o=new a(1),s=new a(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function I(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){I.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){I.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){I.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){I.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}I.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},I.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},I.prototype.split=function(e,t){e.iushrn(this.n,0,t)},I.prototype.imulK=function(e){return e.imul(this.k)},o(E,I),E.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(B,I),o(C,I),o(_,I),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new B;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return w[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var l=this.pow(f,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),A=o;0!==d.cmp(s);){for(var p=d,g=0;0!==p.cmp(s);g++)p=p.redSqr();i(g<A);var b=this.pow(l,new a(1).iushln(A-g-1));h=h.redMul(b),l=b.redSqr(),d=d.redMul(l),A=g}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],f=c-1;f>=0;f--){var l=u>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==o?(o<<=1,o|=l,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},o(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(20)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){
|
|
2
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3
|
+
var n=r(5),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(e){
|
|
4
|
+
/*!
|
|
5
|
+
* The buffer module from node.js, for the browser.
|
|
6
|
+
*
|
|
7
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
var n=r(201),i=r(202),o=r(203);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|A(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(c.isBuffer(t)){var r=0|d(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(f(t),e=s(e,t<0?0:0|d(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|d(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function A(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Q(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var l=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){l=!1;break}if(l)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return G(F(t,e.length-r),e,r,n)}function w(e,t,r,n){return G(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function I(e,t,r,n){return w(e,t,r,n)}function E(e,t,r,n){return G(U(t),e,r,n)}function B(e,t,r,n){return G(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,c,u=e[i],f=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(f=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return function(e,t,r,n){return f(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},c.allocUnsafe=function(e){return l(null,e)},c.allocUnsafeSlow=function(e){return l(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.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}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},c.byteLength=A,c.prototype._isBuffer=!0,c.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)g(this,t,t+1);return this},c.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)g(this,t,t+3),g(this,t+1,t+2);return this},c.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):p.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=e.slice(t,r),l=0;l<s;++l)if(u[l]!==f[l]){o=u[l],a=f[l];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.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 i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return I(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Q(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=L(e[o]);return i}function x(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function j(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,o){return o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},c.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),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:F(new c(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var T=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(9))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],f=!1,l=-1;function h(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&d())}function d(){if(!f){var e=s(h);f=!0;for(var t=u.length;t;){for(c=u,u=[];++l<t;)c&&c[l].run();l=-1,t=u.length}c=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function A(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new A(e,t)),1!==u.length||f||s(d)},A.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";e.exports={ArrayIsArray:function(e){return Array.isArray(e)},ArrayPrototypeIncludes:function(e,t){return e.includes(t)},ArrayPrototypeIndexOf:function(e,t){return e.indexOf(t)},ArrayPrototypeJoin:function(e,t){return e.join(t)},ArrayPrototypeMap:function(e,t){return e.map(t)},ArrayPrototypePop:function(e,t){return e.pop(t)},ArrayPrototypePush:function(e,t){return e.push(t)},ArrayPrototypeSlice:function(e,t,r){return e.slice(t,r)},Error:Error,FunctionPrototypeCall:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.call.apply(e,[t].concat(n))},FunctionPrototypeSymbolHasInstance:function(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:function(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty:function(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor:function(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys:function(e){return Object.keys(e)},ObjectSetPrototypeOf:function(e,t){return Object.setPrototypeOf(e,t)},Promise:Promise,PromisePrototypeCatch:function(e,t){return e.catch(t)},PromisePrototypeThen:function(e,t,r){return e.then(t,r)},PromiseReject:function(e){return Promise.reject(e)},PromiseResolve:function(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest:function(e,t){return e.test(t)},SafeSet:Set,String:String,StringPrototypeSlice:function(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase:function(e){return e.toLowerCase()},StringPrototypeToUpperCase:function(e){return e.toUpperCase()},StringPrototypeTrim:function(e){return e.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:function(e,t,r){return e.set(t,r)},Boolean:Boolean,Uint8Array:Uint8Array}},function(e,t,r){var n=t;n.utils=r(21),n.common=r(45),n.sha=r(219),n.ripemd=r(223),n.hmac=r(224),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},,function(e,t,r){"use strict";function n(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(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,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function c(e,t,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&f(i,r.prototype),i}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};u(w,a,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&n.call(E,a)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==h(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(h(t)+" is not iterable")}return v.prototype=m,i(B,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:v,configurable:!0}),v.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),u(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),u(B,c,"Generator"),u(B,a,(function(){return this})),u(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function A(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){A(o,n,i,a,s,"next",e)}function s(e){A(o,n,i,a,s,"throw",e)}a(void 0)}))}}var g=r(5),b=r(7),y=b.kResistStopPropagation,v=b.SymbolDispose,m=globalThis.AbortSignal||r(47).AbortSignal,w=globalThis.AbortController||r(47).AbortController,I=Object.getPrototypeOf(p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))).constructor,E=globalThis.Blob||g.Blob,B=void 0!==E?function(e){return e instanceof E}:function(e){return!1},C=function(e,t){if(void 0!==e&&(null===e||"object"!==h(e)||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)},_=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!Array.isArray(e))throw new TypeError("Expected input to be an Array, got ".concat(h(e)));for(var n="",i=0;i<e.length;i++)n+=" ".concat(e[i].stack,"\n");return(r=a(this,t,[n])).name="AggregateError",r.errors=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(s(Error));e.exports={AggregateError:_,kEmptyObject:Object.freeze({}),once:function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}},createDeferredPromise:function(){var e,t;return{promise:new Promise((function(r,n){e=r,t=n})),resolve:e,reject:t}},promisify:function(e){return new Promise((function(t,r){e((function(e){if(e)return r(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.apply(void 0,i)}))}))},debuglog:function(){return function(){}},format:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.replace(/%([sdifj])/g,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0];var i=t[1],o=r.shift();if("f"===i)return o.toFixed(6);if("j"===i)return JSON.stringify(o);if("s"===i&&"object"===h(o)){var a=o.constructor!==Object?o.constructor.name:"";return"".concat(a," {}").trim()}return o.toString()}))},inspect:function(e){switch(h(e)){case"string":if(e.includes("'")){if(!e.includes('"'))return'"'.concat(e,'"');if(!e.includes("`")&&!e.includes("${"))return"`".concat(e,"`")}return"'".concat(e,"'");case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return"".concat(String(e),"n");case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:function(e){return e instanceof I},isArrayBufferView:function(e){return ArrayBuffer.isView(e)}},isBlob:B,deprecate:function(e,t){return e},addAbortListener:r(19).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);var r;return C(e,"signal"),function(e,t){if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)}(t,"listener"),e.aborted?queueMicrotask((function(){return t()})):(e.addEventListener("abort",t,n({__proto__:null,once:!0},y,!0)),r=function(){e.removeEventListener("abort",t)}),n({__proto__:null},v,(function(){var e;null===(e=r)||void 0===e||e()}))},AbortSignalAny:m.any||function(e){if(1===e.length)return e[0];var t=new w,r=function(){return t.abort()};return e.forEach((function(e){C(e,"signals"),e.addEventListener("abort",r,{once:!0})})),t.signal.addEventListener("abort",(function(){e.forEach((function(e){return e.removeEventListener("abort",r)}))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)})(e)}function o(e,t,r){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&A(i,r.prototype),i}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,u(n.key),n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function f(e,t,r){return t=h(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y=r(11),v=y.format,m=y.inspect,w=y.AggregateError,I=globalThis.AggregateError||w,E=Symbol("kIsNodeError"),B=["string","function","number","object","Function","Object","boolean","bigint","symbol"],C=/^([A-Z][a-z0-9]*)+$/,_={};function k(e,t){if(!e)throw new _.ERR_INTERNAL_ASSERTION(t)}function S(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function Q(e,t,r){if("function"==typeof t)return k(t.length<=r.length,"Code: ".concat(e,"; The provided arguments length (").concat(r.length,") does not match the required ones (").concat(t.length,").")),t.apply(void 0,p(r));var n=(t.match(/%[dfijoOs]/g)||[]).length;return k(n===r.length,"Code: ".concat(e,"; The provided arguments length (").concat(r.length,") does not match the required ones (").concat(n,").")),0===r.length?t:v.apply(void 0,[t].concat(p(r)))}function x(e,t,r){r||(r=Error);var n=function(r){function n(){a(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return f(this,n,[Q(e,t,i)])}return d(n,r),c(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}])}(r);Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[E]=!0,_[e]=n}function R(e){var t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}var O=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(a(this,t),void 0!==i&&"object"!==n(i))throw new _.ERR_INVALID_ARG_TYPE("options","Object",i);return(e=f(this,t,[r,i])).code="ABORT_ERR",e.name="AbortError",e}return d(t,e),c(t)}(i(Error));x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(function(e,t,r){k("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);var i="The ";e.endsWith(" argument")?i+="".concat(e," "):i+='"'.concat(e,'" ').concat(e.includes(".")?"property":"argument"," "),i+="must be ";var o,a=[],s=[],c=[],u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=g(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(t);try{for(u.s();!(o=u.n()).done;){var f=o.value;k("string"==typeof f,"All expected entries have to be of type string"),B.includes(f)?a.push(f.toLowerCase()):C.test(f)?s.push(f):(k("object"!==f,'The value "object" should be written as "Object"'),c.push(f))}}catch(e){u.e(e)}finally{u.f()}if(s.length>0){var l=a.indexOf("object");-1!==l&&(a.splice(a,l,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:i+="of type ".concat(a[0]);break;case 2:i+="one of type ".concat(a[0]," or ").concat(a[1]);break;default:var h=a.pop();i+="one of type ".concat(a.join(", "),", or ").concat(h)}(s.length>0||c.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+="an instance of ".concat(s[0]);break;case 2:i+="an instance of ".concat(s[0]," or ").concat(s[1]);break;default:var d=s.pop();i+="an instance of ".concat(s.join(", "),", or ").concat(d)}c.length>0&&(i+=" or ")}switch(c.length){case 0:break;case 1:c[0].toLowerCase()!==c[0]&&(i+="an "),i+="".concat(c[0]);break;case 2:i+="one of ".concat(c[0]," or ").concat(c[1]);break;default:var A=c.pop();i+="one of ".concat(c.join(", "),", or ").concat(A)}if(null==r)i+=". Received ".concat(r);else if("function"==typeof r&&r.name)i+=". Received function ".concat(r.name);else if("object"===n(r)){var p;if(null!==(p=r.constructor)&&void 0!==p&&p.name)i+=". Received an instance of ".concat(r.constructor.name);else{var b=m(r,{depth:-1});i+=". Received ".concat(b)}}else{var y=m(r,{colors:!1});y.length>25&&(y="".concat(y.slice(0,25),"...")),i+=". Received type ".concat(n(r)," (").concat(y,")")}return i}),TypeError),x("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid",n=m(t);n.length>128&&(n=n.slice(0,128)+"...");var i=e.includes(".")?"property":"argument";return"The ".concat(i," '").concat(e,"' ").concat(r,". Received ").concat(n)}),TypeError),x("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i,o=null!=r&&null!==(i=r.constructor)&&void 0!==i&&i.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r));return"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),x("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;k(t.length>0,"At least one arg needs to be specified");var i=t.length;switch(t=(Array.isArray(t)?t:[t]).map((function(e){return'"'.concat(e,'"')})).join(" or "),i){case 1:n+="The ".concat(t[0]," argument");break;case 2:n+="The ".concat(t[0]," and ").concat(t[1]," arguments");break;default:var o=t.pop();n+="The ".concat(t.join(", "),", and ").concat(o," arguments")}return"".concat(n," must be specified")}),TypeError),x("ERR_OUT_OF_RANGE",(function(e,t,r){var n;return k(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?n=S(String(r)):"bigint"==typeof r?(n=String(r),(r>Math.pow(2n,32n)||r<-Math.pow(2n,32n))&&(n=S(n)),n+="n"):n=m(r),'The value of "'.concat(e,'" is out of range. It must be ').concat(t,". Received ").concat(n)}),RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:O,aggregateTwoErrors:R((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;var r=new I([t,e],t.message);return r.code=t.code,r}return e||t})),hideStackFrames:R,codes:_}},,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,i=r(2),o=r(14),a=r(98);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n,i=new Array(Math.max(e.bitLength(),r)+1);for(n=0;n<i.length;n+=1)i[n]=0;var o=1<<t+1,a=e.clone();for(n=0;n<i.length;n++){var s,c=a.andln(o-1);a.isOdd()?(s=c>(o>>1)-1?(o>>1)-c:c,a.isubn(s)):s=0,i[n]=s,a.iushrn(1)}return i},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c,r[0].push(a),s=0==(1&u)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=t,i=r(2),o=r(14),a=r(98);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c,r[0].push(a),s=0==(1&u)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c}));var n=r(102),i=r.n(n);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var c=function(){return t=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wasm=t},n=[{key:"bytesToHex",value:function(e){return e.reduce((function(e,t){return e+t.toString(16).padStart(2,"0")}),"")}},{key:"bytesToBinary",value:function(e){return e.reduce((function(e,t){return e+t.toString(2).padStart(8,"0")+" "}),"")}},{key:"hexToBytes",value:function(e){return new Uint8Array(e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})))}},{key:"randomBytes",value:function(e){if("undefined"!=typeof window&&"undefined"!==window.crypto){var t=new Uint8Array(e);return window.crypto.getRandomValues(t),t}return i.a.randomBytes(e)}}],(r=[{key:"arrayToBuf",value:function(t){var r=this.wasm,n={ptr:null,len:0};if(!t)return n;var i=null;if(t instanceof Uint8Array||void 0!==e&&t instanceof e)i=t;else{if(!(t instanceof ArrayBuffer||t.__proto__.toString().includes("ArrayBuffer")))throw new Error("arrayToBuf() failed: Expected Uint8Array, Buffer, or\n ArrayBuffer");i=new Uint8Array(t)}return n.len=i.length,n.ptr=r._malloc(i.length),r.writeArrayToMemory(i,n.ptr),n}},{key:"arrayToSmartBuf",value:function(e){var t=this.wasm,r=this.arrayToBuf(e);return r.ptr&&setTimeout((function(){t._free(r.ptr),r.len=0,r.ptr=null}),0),r}},{key:"smartMalloc",value:function(e){var t=this.wasm,r=t._malloc(e);return setTimeout((function(){t._free(r)}),0),r}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}()}).call(this,r(5).Buffer)},function(e,t,r){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,c={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return i(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(s[(240&n)>>4]+s[15&n])}return t.join("")}}),f={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],A=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],b=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],I=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],E=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],B=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],C=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function _(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var k=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};k.prototype._prepare=function(){var e=f[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),i=this.key.length/4,o=_(this.key);for(t=0;t<i;t++)r=t>>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,s=0,c=i;c<n;){if(a=o[i-1],o[0]^=h[a>>16&255]<<24^h[a>>8&255]<<16^h[255&a]<<8^h[a>>24&255]^l[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];a=o[i/2-1],o[i/2]^=h[255&a]^h[a>>8&255]<<8^h[a>>16&255]<<16^h[a>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&c<n;)u=c>>2,d=c%4,this._Ke[u][d]=o[t],this._Kd[e-u][d]=o[t++],c++}for(var u=1;u<e;u++)for(var d=0;d<4;d++)a=this._Kd[u][d],this._Kd[u][d]=I[a>>24&255]^E[a>>16&255]^B[a>>8&255]^C[255&a]},k.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=_(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)r[i]=A[n[i]>>24&255]^p[n[(i+1)%4]>>16&255]^g[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[a][i];n=r.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],c[4*i]=255&(h[n[i]>>24&255]^s>>24),c[4*i+1]=255&(h[n[(i+1)%4]>>16&255]^s>>16),c[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(h[255&n[(i+3)%4]]^s);return c},k.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=_(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)r[i]=y[n[i]>>24&255]^v[n[(i+3)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[a][i];n=r.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],c[4*i]=255&(d[n[i]>>24&255]^s>>24),c[4*i+1]=255&(d[n[(i+3)%4]>>16&255]^s>>16),c[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(d[255&n[(i+1)%4]]^s);return c};var S=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new k(t)};S.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.encrypt(r),t,n);return t},S.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.decrypt(r),t,n);return t};var Q=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else r=o(16);this._lastCipherblock=i(r,!0),this._aes=new k(t)};Q.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,t,n)}return t},Q.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)t[n+s]=r[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,n,n+16)}return t};var x=function e(t,r,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 size)")}else r=o(16);n||(n=1),this.segmentSize=n,this._shiftRegister=i(r,!0),this._aes=new k(t)};x.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},x.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var R=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else r=o(16);this._lastPrecipher=i(r,!0),this._lastPrecipherIndex=16,this._aes=new k(t)};R.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},R.prototype.decrypt=R.prototype.encrypt;var O=function e(t){if(!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};O.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},O.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},O.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var D=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof O||(r=new O(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new k(t)};D.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},D.prototype.decrypt=D.prototype.encrypt;var j={AES:k,Counter:O,ModeOfOperation:{ecb:S,cbc:Q,cfb:x,ofb:R,ctr:D},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=o(e.length+t);a(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(r);return a(e,s,0,0,r),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=j}()},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&y(e,"error",t,r)}(e,i,{once:!0})}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(e))}function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,a,s;if(f(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.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){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)}function A(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):b(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+n(e));e.addEventListener(t,(function n(o){i.once&&e.removeEventListener(t,n),r(o)}))}}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),c.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},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else{var u=c.length,f=b(c,u);for(r=0;r<u;++r)a(f[r],this,t)}return!0},c.prototype.addListener=function(e,t){return h(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return h(this,e,t,!0)},c.prototype.once=function(e,t){return f(t),this.on(e,A(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,A(this,e,t)),this},c.prototype.removeListener=function(e,t){var r,n,i,o,a;if(f(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;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(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 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]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},c.prototype.listeners=function(e){return p(this,e,!0)},c.prototype.rawListeners=function(e){return p(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=r(14),i=r(3);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=c(i.toString(16))}return r},t.zero2=s,t.zero8=c,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],a[s]=u>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+r+i+a+(c+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,u){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+c+(f+=(l=l+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(5).Buffer)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(7),o=i.SymbolAsyncIterator,a=i.SymbolIterator,s=i.SymbolFor,c=s("nodejs.stream.destroyed"),u=s("nodejs.stream.errored"),f=s("nodejs.stream.readable"),l=s("nodejs.stream.writable"),h=s("nodejs.stream.disturbed"),d=s("nodejs.webstream.isClosedPromise"),A=s("nodejs.webstream.controllerErrorFunction");function p(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||r&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(t=e._readableState)||void 0===t?void 0:t.readable)||e._writableState&&!e._readableState)}function g(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function b(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function y(e){return!(!e||b(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function v(e){return!(!e||b(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||b(e)||"object"!==n(e.readable)||"object"!==n(e.writable))}function w(e){if(!b(e))return null;var t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[c]||null!=n&&n.destroyed)}function I(e){if(!g(e))return null;if(!0===e.writableEnded)return!0;var t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function E(e,t){if(!p(e))return null;var r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function B(e){return e&&null!=e[f]?e[f]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!w(e)&&(p(e)&&e.readable&&!E(e))}function C(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!w(e)&&(g(e)&&e.writable&&!I(e))}function _(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function k(e){return"boolean"==typeof e._sent100&&_(e)}e.exports={isDestroyed:w,kIsDestroyed:c,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[h])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:h,isErrored:function(e){var t,r,n,i,o,a,s,c,f,l;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(a=e[u])&&void 0!==a?a:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(s=e._readableState)||void 0===s?void 0:s.errorEmitted)&&void 0!==n?n:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(f=e._readableState)||void 0===f?void 0:f.errored)&&void 0!==t?t:null===(l=e._writableState)||void 0===l?void 0:l.errored))},kIsErrored:u,isReadable:B,kIsReadable:f,kIsClosedPromise:d,kControllerErrorFunction:A,kIsWritable:l,isClosed:function(e){if(!b(e))return null;if("boolean"==typeof e.closed)return e.closed;var t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&_(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return b(e)?!!w(e)||(!1===(null==t?void 0:t.readable)||!B(e))&&(!1===(null==t?void 0:t.writable)||!C(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[o]:!1===t?"function"==typeof e[a]:"function"==typeof e[o]||"function"==typeof e[a])},isReadableNodeStream:p,isReadableStream:y,isReadableEnded:function(e){if(!p(e))return null;if(!0===e.readableEnded)return!0;var t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:E,isReadableErrored:function(e){var t,r;return b(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isNodeStream:b,isWebStream:function(e){return y(e)||v(e)||m(e)},isWritable:C,isWritableNodeStream:g,isWritableStream:v,isWritableEnded:I,isWritableFinished:function(e,t){if(!g(e))return null;if(!0===e.writableFinished)return!0;var r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return b(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:k,willEmitClose:function(e){if(!b(e))return null;var t=e._writableState,r=e._readableState,n=t||r;return!n&&k(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:m}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(7),c=s.ObjectDefineProperties,u=s.ObjectGetOwnPropertyDescriptor,f=s.ObjectKeys,l=s.ObjectSetPrototypeOf;e.exports=v;var h,d,A=r(62),p=r(85);l(v.prototype,A.prototype),l(v,A);for(var g=f(p.prototype),b=0;b<g.length;b++){var y=g[b];v.prototype[y]||(v.prototype[y]=p.prototype[y])}function v(e){if(!(this instanceof v))return new v(e);A.call(this,e),p.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function m(){return void 0===h&&(h={}),h}c(v.prototype,{writable:o({__proto__:null},u(p.prototype,"writable")),writableHighWaterMark:o({__proto__:null},u(p.prototype,"writableHighWaterMark")),writableObjectMode:o({__proto__:null},u(p.prototype,"writableObjectMode")),writableBuffer:o({__proto__:null},u(p.prototype,"writableBuffer")),writableLength:o({__proto__:null},u(p.prototype,"writableLength")),writableFinished:o({__proto__:null},u(p.prototype,"writableFinished")),writableCorked:o({__proto__:null},u(p.prototype,"writableCorked")),writableEnded:o({__proto__:null},u(p.prototype,"writableEnded")),writableNeedDrain:o({__proto__:null},u(p.prototype,"writableNeedDrain")),destroyed:{__proto__:null,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),v.fromWeb=function(e,t){return m().newStreamDuplexFromReadableWritablePair(e,t)},v.toWeb=function(e){return m().newReadableWritablePairFromDuplex(e)},v.from=function(e){return d||(d=r(301)),d(e,"body")}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(199)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},function(e,t){function r(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n,i=r(6),o=r(12),a=o.AbortError,s=o.codes,c=s.ERR_INVALID_ARG_TYPE,u=s.ERR_STREAM_PREMATURE_CLOSE,f=r(11),l=f.kEmptyObject,h=f.once,d=r(48),A=d.validateAbortSignal,p=d.validateFunction,g=d.validateObject,b=d.validateBoolean,y=r(7),v=y.Promise,m=y.PromisePrototypeThen,w=y.SymbolDispose,I=r(23),E=I.isClosed,B=I.isReadable,C=I.isReadableNodeStream,_=I.isReadableStream,k=I.isReadableFinished,S=I.isReadableErrored,Q=I.isWritable,x=I.isWritableNodeStream,R=I.isWritableStream,O=I.isWritableFinished,D=I.isWritableErrored,j=I.isNodeStream,P=I.willEmitClose,M=I.kIsClosedPromise;function N(e){return e.setHeader&&"function"==typeof e.abort}var T=function(){};function L(e,t,o){var s,f;if(2===arguments.length?(o=t,t=l):null==t?t=l:g(t,"options"),p(o,"callback"),A(t.signal,"options.signal"),o=h(o),_(e)||R(e))return F(e,t,o);if(!j(e))throw new c("stream",["ReadableStream","WritableStream","Stream"],e);var d=null!==(s=t.readable)&&void 0!==s?s:C(e),b=null!==(f=t.writable)&&void 0!==f?f:x(e),y=e._writableState,v=e._readableState,m=function(){e.writable||L()},I=P(e)&&C(e)===d&&x(e)===b,M=O(e,!1),L=function(){M=!0,e.destroyed&&(I=!1),(!I||e.readable&&!d)&&(d&&!U||o.call(e))},U=k(e,!1),G=function(){U=!0,e.destroyed&&(I=!1),(!I||e.writable&&!b)&&(b&&!M||o.call(e))},H=function(t){o.call(e,t)},q=E(e),K=function(){q=!0;var t=D(e)||S(e);return t&&"boolean"!=typeof t?o.call(e,t):d&&!U&&C(e,!0)&&!k(e,!1)?o.call(e,new u):!b||M||O(e,!1)?void o.call(e):o.call(e,new u)},Y=function(){q=!0;var t=D(e)||S(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},J=function(){e.req.on("finish",L)};N(e)?(e.on("complete",L),I||e.on("abort",K),e.req?J():e.on("request",J)):b&&!y&&(e.on("end",m),e.on("close",m)),I||"boolean"!=typeof e.aborted||e.on("aborted",K),e.on("end",G),e.on("finish",L),!1!==t.error&&e.on("error",H),e.on("close",K),q?i.nextTick(K):null!=y&&y.errorEmitted||null!=v&&v.errorEmitted?I||i.nextTick(Y):(d||I&&!B(e)||!M&&!1!==Q(e))&&(b||I&&!Q(e)||!U&&!1!==B(e))?v&&e.req&&e.aborted&&i.nextTick(Y):i.nextTick(Y);var z=function(){o=T,e.removeListener("aborted",K),e.removeListener("complete",L),e.removeListener("abort",K),e.removeListener("request",J),e.req&&e.req.removeListener("finish",L),e.removeListener("end",m),e.removeListener("close",m),e.removeListener("finish",L),e.removeListener("end",G),e.removeListener("error",H),e.removeListener("close",K)};if(t.signal&&!q){var W=function(){var r=o;z(),r.call(e,new a(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(W);else{var V=(n=n||r(11).addAbortListener)(t.signal,W),Z=o;o=h((function(){V[w]();for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];Z.apply(e,r)}))}}return z}function F(e,t,o){var s=!1,c=T;if(t.signal)if(c=function(){s=!0,o.call(e,new a(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(c);else{var u=(n=n||r(11).addAbortListener)(t.signal,c),f=o;o=h((function(){u[w]();for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];f.apply(e,r)}))}var l=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];s||i.nextTick((function(){return o.apply(e,r)}))};return m(e[M].promise,l,l),T}e.exports=L,e.exports.finished=function(e,t){var r,n=!1;return null===t&&(t=l),null!==(r=t)&&void 0!==r&&r.cleanup&&(b(t.cleanup,"cleanup"),n=t.cleanup),new v((function(r,i){var o=L(e,t,(function(e){n&&o(),e?i(e):r()}))}))}},function(e,t,r){"use strict";var n=r(300).Buffer,i=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 o(e){var t;switch(this.encoding=function(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===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,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 s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(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 l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.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||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=a(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=a(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.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}},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r(6))},function(e,t,r){var n=r(4).Buffer,i=r(142).Transform,o=r(28).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";var n=r(29),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(22));o.inherits=r(3);var a=r(143),s=r(89);o.inherits(l,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var f=c[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{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)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(121),o="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t,r){"use strict";var n=r(6),i=r(12),o=i.aggregateTwoErrors,a=i.codes.ERR_MULTIPLE_CALLBACK,s=i.AbortError,c=r(7).Symbol,u=r(23),f=u.kIsDestroyed,l=u.isDestroyed,h=u.isFinished,d=u.isServerRequest,A=c("kDestroy"),p=c("kConstruct");function g(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t,r){var i=!1;function o(t){if(!i){i=!0;var o=e._readableState,a=e._writableState;g(t,a,o),a&&(a.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(y,e,t):n.nextTick(v,e)}}try{e._destroy(t||null,o)}catch(t){o(t)}}function y(e,t){m(e,t),v(e)}function v(e){var t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){var r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function w(e,t,r){var i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(m,e,t):m(e,t))}function I(e){var t=!1;function r(r){if(t)w(e,null!=r?r:new a);else{t=!0;var i=e._readableState,o=e._writableState,s=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(A,r):r?w(e,r,!0):n.nextTick(E,e)}}try{e._construct((function(e){n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function E(e){e.emit(p)}function B(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function C(e){e.emit("close")}function _(e,t){e.emit("error",t),n.nextTick(C,e)}e.exports={construct:function(e,t){if("function"==typeof e._construct){var r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(p,t),e.listenerCount(p)>1||n.nextTick(I,e)}},destroyer:function(e,t){e&&!l(e)&&(t||h(e)||(t=new s),d(e)?(e.socket=null,e.destroy(t)):B(e)?e.abort():B(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(_,e,t):n.nextTick(C,e),e.destroyed||(e[f]=!0))},destroy:function(e,t){var r=this._readableState,n=this._writableState,i=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof t&&t(),this):(g(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?b(this,e,t):this.once(A,(function(r){b(this,o(r,e),t)})),this)},undestroy:function(){var e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:w}},function(e,t,r){"use strict";(function(t,n){var i=r(4).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(r.slice(a,a+65536));else o.getRandomValues(r);if("function"==typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(9),r(6))},function(e,t,r){var n=r(4).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%i,u=Math.min(o-s,i-c),f=0;f<u;f++)r[c+f]=e[s+f];s+=u,(a+=u)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";var n=r(29),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(22));o.inherits=r(3);var a=r(166),s=r(169);o.inherits(l,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var f=c[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{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)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i={};function o(e,t,r){r||(r=Error);var n=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"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])}return"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 i,o,s,c;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return c+=". Received type ".concat(n(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"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(183),o=r(187);r(3)(u,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.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",f)))}function f(){this._writableState.ended||t.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.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,r(6))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(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,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,"a",(function(){return a}));var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wasm=t,this.ptr=null,this.len=0},(t=[{key:"clear",value:function(){this.len=0}},{key:"free",value:function(){null!==this.ptr&&(this.wasm._free(this.ptr),this.len=0,this.ptr=null)}},{key:"resize",value:function(e){null!==this.ptr&&this.free(),this.len=e,this.ptr=this.wasm._malloc(e)}},{key:"ensureSize",value:function(e){(null===this.ptr||this.len<e)&&this.resize(e)}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},,,function(e,t,r){(function(t,n){var i=r(55),o=r(25),a=r(26),s=r(54),c=r(207);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}void 0===globalThis.Buffer&&(globalThis.Buffer=r(5).Buffer);var l,h,d,A=r(108),p=r(212).default,g=r(213),b=r(109),y=r(217),v=r(398).utils,m=v.keccak256,w=v.getAddress,I={name:"Utils",nullAddress:"0x0000000000000000000000000000000000000000",weiPerEther:new p("1000000000000000000"),ToBigNumber:function(e){return new p(e)},WeiToEther:function(e){return I.ToBigNumber(e).div(I.weiPerEther)},EtherToWei:function(e){return I.ToBigNumber(e).times(I.weiPerEther)},FormatAddress:function(e){return e&&"string"==typeof e?((e=e.trim()).startsWith("0x")||(e="0x"+e),e.toLowerCase()):""},FormatSignature:function(e){return e=e.replace("0x",""),"ES256K_"+A.encode(t.from(e,"hex"))},DecodeVersionHash:function(e){if(!e.startsWith("hq__")&&!e.startsWith("tq__"))throw new Error('Invalid version hash: "'.concat(e,'"'));e=e.slice(4);var r=I.FromB58(e),n=r.slice(0,32),i=n.toString("hex");r=r.slice(32);for(var o=0;r[o]>=128;)o++;o++;var a=r.slice(0,o),s=g.decode(a);return r=r.slice(o),{digest:i,size:s,objectId:"iq__"+I.B58(r),partHash:"hqp_"+I.B58(t.concat([n,a]))}},DecodeSignedToken:function(e){var r=I.FromB58(e.slice(6)),n="0x".concat(r.slice(0,65).toString("hex")),i=JSON.parse(t.from(y.inflateRaw(r.slice(65))).toString("utf-8"));return i.adr=I.FormatAddress("0x".concat(t.from(i.adr,"base64").toString("hex"))),{payload:i,signature:n}},DecodeWriteToken:function(e){if(e.length<4)throw new Error('Invalid write token: ["'.concat(e,'"] (unknown prefix)'));var t;if(e.startsWith("tqw__")?(t="tq__",e=e.slice(5)):(t=e.slice(0,4),e=e.slice(4)),0===e.length)throw new Error('Invalid write token: ["'.concat(e,'"] (too short)'));switch(t){case"tqw_":case"tq__":case"tqpw":case"tqp_":case"tlro":break;default:throw new Error('Invalid write token: ["'.concat(e,'"] (unknown prefix)'))}var r,n,i,o,a,s=I.FromB58(e);function c(e,t){var r,n,i=g.decode(s,0),o=g.decode.bytes;return n=e?0===(r=s.slice(o+1,i+o)).length?"":t+I.B58(r):"0x"+(r=s.slice(o,i+o)).toString("hex"),s=s.slice(i+o),n}switch(t){case"tqw_":case"tqpw":r="0x"+s.toString("hex");break;case"tlro":case"tq__":n=c(!0,"iq__"),i=c(!0,"inod"),r=c(!1,"");break;case"tqp_":if(s.length<3)throw new Error('Invalid write token: ["'.concat(e,'"] (token truncated)'));o=s[0],a=s[1],s=s.slice(2),r=c(!1,"");break;default:throw new Error('Invalid write token: ["'.concat(e,'"] (unknown prefix)'))}return{tokenType:t,tokenId:r,objectId:n,nodeId:i,scheme:o,flags:a}},AddressToHash:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.replace(r?"0x04":"0x",""),A.encode(t.from(e,"hex"))},AddressToSpaceId:function(e){return"ispc"+I.AddressToHash(e)},AddressToNodeId:function(e){return"inod"+I.AddressToHash(e)},AddressToLibraryId:function(e){return"ilib"+I.AddressToHash(e)},AddressToObjectId:function(e){return"iq__"+I.AddressToHash(e)},HashToAddress:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=t?e:e.substr(4),I.FormatAddress((t?"0x04":"0x")+A.decode(e).toString("hex"))},EqualAddress:function(e,t){return!(!e||!t)&&I.FormatAddress(e)===I.FormatAddress(t)},EqualHash:function(e,t){return!(!e||!t)&&(!(e.length<=4||t.length<=4)&&I.HashToAddress(e)===I.HashToAddress(t))},ValidAddress:function(e){try{return w(e),!0}catch(e){return!1}},ValidHash:function(e){return I.ValidAddress(I.HashToAddress(e))},ToBytes32:function(e){return"0x"+e.split("").map((function(e){return e.charCodeAt(0).toString(16)})).join("").slice(0,64).padEnd(64,"0")},BufferToArrayBuffer:function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)},FromHex:function(e){return e=e.replace(/^0x/,""),t.from(e,"hex").toString()},B64:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8";return t.from(e,r).toString("base64")},FromB64:function(e){return t.from(e,"base64").toString("utf-8")},FromB64URL:function(e){var t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(t){if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-t).join("=")}return I.FromB64(e)},B58:function(e){return A.encode(t.from(e))},FromB58:function(e){return A.decode(e)},FromB58ToStr:function(e){return(new TextDecoder).decode(I.FromB58(e))},DecodeAuthorizationToken:function(e){var t=(e=decodeURIComponent(e)).split("."),r=c(t,2),n=r[0],i=r[1];return f(f({},n=JSON.parse(I.FromB64(n))),{},{signature:i})},LimitedMap:(d=a(o.mark((function e(t,r,n){var s,c,u,f,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=0,c=!1,u=function(){var e=a(o.mark((function e(){var t;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!c){e.next=5;break}return e.next=3,new Promise((function(e){return setTimeout(e,10)}));case 3:e.next=0;break;case 5:return c=!0,t=s,s+=1,c=!1,e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=[],l=0,e.abrupt("return",new Promise((function(e,s){i(Array(t||1)).forEach(a(o.mark((function t(){var i;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l+=1,t.next=3,u();case 3:i=t.sent;case 4:if(!(i<r.length)){t.next=19;break}return t.prev=5,t.next=8,n(r[i],i);case 8:f[i]=t.sent,t.next=14;break;case 11:t.prev=11,t.t0=t.catch(5),s(t.t0);case 14:return t.next=16,u();case 16:i=t.sent,t.next=4;break;case 19:0==(l-=1)&&e(f);case 21:case"end":return t.stop()}}),t,null,[[5,11]])}))))})));case 6:case"end":return e.stop()}}),e)}))),function(e,t,r){return d.apply(this,arguments)}),ResponseToJson:(h=a(o.mark((function e(t){var r,n,i=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=i.length>2?i[2]:void 0,e.next=4,I.ResponseToFormat("json",t,r,n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)}),ResponseToFormat:(l=a(o.mark((function e(t,r){var n,i,a,s=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>2&&void 0!==s[2]&&s[2],i=s.length>3?s[3]:void 0,e.next=4,r;case 4:r=e.sent,e.t0=t.toLowerCase(),e.next="json"===e.t0?8:"text"===e.t0?13:"blob"===e.t0?18:"arraybuffer"===e.t0?21:"formdata"===e.t0?24:"buffer"===e.t0?27:30;break;case 8:return e.next=10,r.json();case 10:return a=e.sent,n&&i("response body: ".concat(JSON.stringify(a,null,2))),e.abrupt("return",a);case 13:return e.next=15,r.text();case 15:return a=e.sent,n&&i("response body: ".concat(a)),e.abrupt("return",a);case 18:return e.next=20,r.blob();case 20:return e.abrupt("return",e.sent);case 21:return e.next=23,r.arrayBuffer();case 23:return e.abrupt("return",e.sent);case 24:return e.next=26,r.formData();case 26:return e.abrupt("return",e.sent);case 27:return e.next=29,r.buffer();case 29:return e.abrupt("return",e.sent);case 30:return e.abrupt("return",r);case 31:case"end":return e.stop()}}),e)}))),function(e,t){return l.apply(this,arguments)}),ResizeImage:function(e){var t=e.imageUrl,r=e.height;return!t||t&&!t.startsWith("http")?t:(t=b(t).removeSearch("height").removeSearch("header-x_image_height"),r&&!isNaN(parseInt(r))&&t.addSearch("height",parseInt(r)),t.toString())},SafeTraverse:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!e)return e;1===r.length&&Array.isArray(r[0])&&(r=r[0]);for(var i=e,o=0;o<r.length;o++)if(void 0===(i=i[r[o]]))return;return i},IsCloneable:function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return I.IsCloneable(e[t])}));case"Map":return i(e.keys()).every(I.IsCloneable)&&i(e.values()).every(I.IsCloneable);case"Set":return i(e.keys()).every(I.IsCloneable);default:return!1}},MakeClonable:function(e){if(I.IsCloneable(e))return e;if(t.isBuffer(e))return I.BufferToArrayBuffer(e);switch({}.toString.call(e).slice(8,-1)){case"Response":case"Function":return;case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return e;case"Array":return e.map((function(e){return I.MakeClonable(e)}));case"Set":return new Set(Array.from(e.keys()).map((function(e){return I.MakeClonable(e)})));case"Map":var r=new Map;return Array.from(e.keys()).forEach((function(t){var n=I.MakeClonable(e.get(t));n&&r.set(t,n)})),r;case"Error":return e.message;case"Object":var n={};return Object.keys(e).map((function(t){var r=I.MakeClonable(e[t]);r&&(n[t]=r)})),n;default:return JSON.parse(JSON.stringify(e))}},PublicKeyToAddress:function(e){var r=new Uint8Array(t.from(e.replace("0x04",""),"hex")),n="0x"+m(r).slice(26);return I.FormatAddress(n)},PLATFORM_NODE:"node",PLATFORM_WEB:"web",PLATFORM_REACT_NATIVE:"react-native",Platform:function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?I.PLATFORM_REACT_NATIVE:void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node?I.PLATFORM_NODE:I.PLATFORM_WEB},HLSJSSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.profile,r=void 0===t?"default":t,n="undefined"!=typeof window&&void 0!==window.navigator&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent),i={maxBufferHole:2.2,nudgeOffset:.2,nudgeMaxRetry:12,highBufferWatchdogPeriod:1};return!n&&["ull","ultraLowLatency"].includes(r)?{lowLatencyMode:!0,liveSyncDuration:4,liveMaxLatencyDuration:5,liveDurationInfinity:!1,maxBufferLength:8,backBufferLength:4,highBufferWatchdogPeriod:1}:["ll","lowLatency","ull","ultraLowLatency"].includes(r)?f({lowLatencyMode:!0,liveSyncDuration:5,liveMaxLatencyDuration:n?15:10,liveDurationInfinity:!1,maxBufferLength:5,backBufferLength:5},i):i},LiveHLSJSSettings:function(e){var t=e.lowLatency,r=void 0!==t&&t,n=e.ultraLowLatency,i=void 0!==n&&n;return I.HLSJSSettings({profile:i?"ull":r?"ll":"default"})}};e.exports=I}).call(this,r(5).Buffer,r(6))},function(e,t,r){"use strict";var n=r(21),i=r(14);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==r(e)}},function(e,t,r){"use strict";var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0,i=n.AbortController,o=n.AbortSignal;e.exports=i,e.exports.AbortSignal=o,e.exports.default=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(7),o=i.ArrayIsArray,a=i.ArrayPrototypeIncludes,s=i.ArrayPrototypeJoin,c=i.ArrayPrototypeMap,u=i.NumberIsInteger,f=i.NumberIsNaN,l=i.NumberMAX_SAFE_INTEGER,h=i.NumberMIN_SAFE_INTEGER,d=i.NumberParseInt,A=i.ObjectPrototypeHasOwnProperty,p=i.RegExpPrototypeExec,g=i.String,b=i.StringPrototypeToUpperCase,y=i.StringPrototypeTrim,v=r(12),m=v.hideStackFrames,w=v.codes,I=w.ERR_SOCKET_BAD_PORT,E=w.ERR_INVALID_ARG_TYPE,B=w.ERR_INVALID_ARG_VALUE,C=w.ERR_OUT_OF_RANGE,_=w.ERR_UNKNOWN_SIGNAL,k=r(11).normalizeEncoding,S=r(11).types,Q=S.isAsyncFunction,x=S.isArrayBufferView,R={};var O=/^[0-7]+$/;var D=m((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if("number"!=typeof e)throw new E(t,"number",e);if(!u(e))throw new C(t,"an integer",e);if(e<r||e>n)throw new C(t,">= ".concat(r," && <= ").concat(n),e)})),j=m((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-2147483648,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2147483647;if("number"!=typeof e)throw new E(t,"number",e);if(!u(e))throw new C(t,"an integer",e);if(e<r||e>n)throw new C(t,">= ".concat(r," && <= ").concat(n),e)})),P=m((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"!=typeof e)throw new E(t,"number",e);if(!u(e))throw new C(t,"an integer",e);var n=r?1:0,i=4294967295;if(e<n||e>i)throw new C(t,">= ".concat(n," && <= ").concat(i),e)}));function M(e,t){if("string"!=typeof e)throw new E(t,"string",e)}var N=m((function(e,t,r){if(!a(r,e)){var n=s(c(r,(function(e){return"string"==typeof e?"'".concat(e,"'"):g(e)})),", ");throw new B(t,e,"must be one of: "+n)}}));function T(e,t){if("boolean"!=typeof e)throw new E(t,"boolean",e)}function L(e,t,r){return null!=e&&A(e,t)?e[t]:r}var F=m((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=L(r,"allowArray",!1),a=L(r,"allowFunction",!1),s=L(r,"nullable",!1);if(!s&&null===e||!i&&o(e)||"object"!==n(e)&&(!a||"function"!=typeof e))throw new E(t,"Object",e)})),U=m((function(e,t){if(null!=e&&"object"!==n(e)&&"function"!=typeof e)throw new E(t,"a dictionary",e)})),G=m((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!o(e))throw new E(t,"Array",e);if(e.length<r){var n="must be longer than ".concat(r);throw new B(t,e,n)}}));var H=m((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"buffer";if(!x(e))throw new E(t,["Buffer","TypedArray","DataView"],e)}));var q=m((function(e,t){if(void 0!==e&&(null===e||"object"!==n(e)||!("aborted"in e)))throw new E(t,"AbortSignal",e)})),K=m((function(e,t){if("function"!=typeof e)throw new E(t,"Function",e)})),Y=m((function(e,t){if("function"!=typeof e||Q(e))throw new E(t,"Function",e)})),J=m((function(e,t){if(void 0!==e)throw new E(t,"undefined",e)}));var z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function W(e,t){if(void 0===e||!p(z,e))throw new B(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===p(O,e))throw new B(t,e,"must be a 32-bit unsigned integer or an octal string");e=d(e,8)}return P(e,t),e},validateArray:G,validateStringArray:function(e,t){G(e,t);for(var r=0;r<e.length;r++)M(e[r],"".concat(t,"[").concat(r,"]"))},validateBooleanArray:function(e,t){G(e,t);for(var r=0;r<e.length;r++)T(e[r],"".concat(t,"[").concat(r,"]"))},validateAbortSignalArray:function(e,t){G(e,t);for(var r=0;r<e.length;r++){var n=e[r],i="".concat(t,"[").concat(r,"]");if(null==n)throw new E(i,"AbortSignal",n);q(n,i)}},validateBoolean:T,validateBuffer:H,validateDictionary:U,validateEncoding:function(e,t){var r=k(t),n=e.length;if("hex"===r&&n%2!=0)throw new B("encoding",t,"is invalid for data of length ".concat(n))},validateFunction:K,validateInt32:j,validateInteger:D,validateNumber:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("number"!=typeof e)throw new E(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&f(e))throw new C(t,"".concat(null!=r?">= ".concat(r):"").concat(null!=r&&null!=n?" && ":"").concat(null!=n?"<= ".concat(n):""),e)},validateObject:F,validateOneOf:N,validatePlainFunction:Y,validatePort:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Port",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===y(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new I(t,e,r);return 0|e},validateSignalName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"signal";if(M(e,t),void 0===R[e]){if(void 0!==R[b(e)])throw new _(e+" (signals must use all capital letters)");throw new _(e)}},validateString:M,validateUint32:P,validateUndefined:J,validateUnion:function(e,t,r){if(!a(r,e))throw new E(t,"('".concat(s(r,"|"),"')"),e)},validateAbortSignal:q,validateLinkHeaderValue:function(e){if("string"==typeof e)return W(e,"hints"),e;if(o(e)){var t=e.length,r="";if(0===t)return r;for(var n=0;n<t;n++){var i=e[n];W(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new B("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},function(e,t,r){"use strict";var n=r(3),i=r(86),o=r(91),a=r(92),s=r(30);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r(5).Buffer)},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e){this.rand=e}if(e.exports=function(e){return i||(i=new o(null)),i.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":n(self)))self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":n(window))&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=r(334);if("function"!=typeof a.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t,r){var n=t;n.bignum=r(2),n.define=r(357).define,n.base=r(53),n.constants=r(175),n.decoders=r(362),n.encoders=r(364)},function(e,t,r){var n=t;n.Reporter=r(359).Reporter,n.DecoderBuffer=r(174).DecoderBuffer,n.EncoderBuffer=r(174).EncoderBuffer,n.Node=r(360)},function(e,t,r){var n=r(105);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(204),i=r(205),o=r(107),a=r(206);e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(232),i=r(233),o=r(234),a=r(235),s=r(236);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(58);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(120),i=r(243),o=r(244),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,r){var n=r(79)(Object,"create");e.exports=n},function(e,t,r){var n=r(258);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&i.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,o(B,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return new d(e,0)}function l(e){return function(){return new h(e.apply(this,arguments))}}function h(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof d;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}i(o.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t){this.v=e,this.k=t}h.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},h.prototype.next=function(e){return this._invoke("next",e)},h.prototype.throw=function(e){return this._invoke("throw",e)},h.prototype.return=function(e){return this._invoke("return",e)};var A=r(6),p=r(7),g=p.ArrayPrototypeIndexOf,b=p.NumberIsInteger,y=p.NumberIsNaN,v=p.NumberParseInt,m=p.ObjectDefineProperties,w=p.ObjectKeys,I=p.ObjectSetPrototypeOf,E=p.Promise,B=p.SafeSet,C=p.SymbolAsyncDispose,_=p.SymbolAsyncIterator,k=p.Symbol;e.exports=ie,ie.ReadableState=ne;var S=r(19).EventEmitter,Q=r(84),x=Q.Stream,R=Q.prependListener,O=r(5).Buffer,D=r(63).addAbortSignal,j=r(27),P=r(11).debuglog("stream",(function(e){P=e})),M=r(299),N=r(35),T=r(64),L=T.getHighWaterMark,F=T.getDefaultHighWaterMark,U=r(12),G=U.aggregateTwoErrors,H=U.codes,q=H.ERR_INVALID_ARG_TYPE,K=H.ERR_METHOD_NOT_IMPLEMENTED,Y=H.ERR_OUT_OF_RANGE,J=H.ERR_STREAM_PUSH_AFTER_EOF,z=H.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,W=U.AbortError,V=r(48).validateObject,Z=k("kPaused"),X=r(28).StringDecoder,$=r(137);I(ie.prototype,x.prototype),I(ie,x);var ee=function(){},te=N.errorOrDestroy;function re(e){return{enumerable:!1,get:function(){return 0!=(this.state&e)},set:function(t){t?this.state|=e:this.state&=~e}}}function ne(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(24)),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?L(this,e,"readableHighWaterMark",n):F(!1),this.buffer=new M,this.length=0,this.pipes=[],this.flowing=null,this[Z]=null,e&&!1===e.emitClose&&(this.state&=-2049),e&&!1===e.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new X(e.encoding),this.encoding=e.encoding)}function ie(e){var t=this;if(!(this instanceof ie))return new ie(e);var n=this instanceof r(24);this._readableState=new ne(e,this,n),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!n&&D(e.signal,this)),x.call(this,e),N.construct(this,(function(){t._readableState.needReadable&&le(t,t._readableState)}))}function oe(e,t,r,n){P("readableAddChunk",t);var i,o=e._readableState;if(0==(1&o.state)&&("string"==typeof t?(r=r||o.defaultEncoding,o.encoding!==r&&(n&&o.encoding?t=O.from(t,r).toString(o.encoding):(t=O.from(t,r),r=""))):t instanceof O?r="":x._isUint8Array(t)?(t=x._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new q("chunk",["string","Buffer","Uint8Array"],t))),i)te(e,i);else if(null===t)o.state&=-9,function(e,t){if(P("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ue(e):(t.needReadable=!1,t.emittedReadable=!0,fe(e))}(e,o);else if(0!=(1&o.state)||t&&t.length>0)if(n)if(0!=(4&o.state))te(e,new z);else{if(o.destroyed||o.errored)return!1;ae(e,o,t,!0)}else if(o.ended)te(e,new J);else{if(o.destroyed||o.errored)return!1;o.state&=-9,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?ae(e,o,t,!1):le(e,o)):ae(e,o,t,!1)}else n||(o.state&=-9,le(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function ae(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(0!=(65536&t.state)?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),0!=(64&t.state)&&ue(e)),le(e,t)}m(ne.prototype,{objectMode:re(1),ended:re(2),endEmitted:re(4),reading:re(8),constructed:re(16),sync:re(32),needReadable:re(64),emittedReadable:re(128),readableListening:re(256),resumeScheduled:re(512),errorEmitted:re(1024),emitClose:re(2048),autoDestroy:re(4096),destroyed:re(8192),closed:re(16384),closeEmitted:re(32768),multiAwaitDrain:re(65536),readingMore:re(1<<17),dataEmitted:re(1<<18)}),ie.prototype.destroy=N.destroy,ie.prototype._undestroy=N.undestroy,ie.prototype._destroy=function(e,t){t(e)},ie.prototype[S.captureRejectionSymbol]=function(e){this.destroy(e)},ie.prototype[C]=function(){var e,t=this;return this.destroyed||(e=this.readableEnded?null:new W,this.destroy(e)),new E((function(r,n){return j(t,(function(t){return t&&t!==e?n(t):r(null)}))}))},ie.prototype.push=function(e,t){return oe(this,e,t,!1)},ie.prototype.unshift=function(e,t){return oe(this,e,t,!0)},ie.prototype.isPaused=function(){var e=this._readableState;return!0===e[Z]||!1===e.flowing},ie.prototype.setEncoding=function(e){var t=new X(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r,n=this._readableState.buffer,i="",o=c(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;i+=t.write(a)}}catch(e){o.e(e)}finally{o.f()}return n.clear(),""!==i&&n.push(i),this._readableState.length=i.length,this};var se;function ce(e,t){return e<=0||0===t.length&&t.ended?0:0!=(1&t.state)?1:y(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function ue(e){var t=e._readableState;P("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(P("emitReadable",t.flowing),t.emittedReadable=!0,A.nextTick(fe,e))}function fe(e){var t=e._readableState;P("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ge(e)}function le(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,A.nextTick(he,e,t))}function he(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(P("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function de(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[Z]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function Ae(e){P("readable nexttick read 0"),e.read(0)}function pe(e,t){P("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ge(e),t.flowing&&!t.reading&&e.read(0)}function ge(e){var t=e._readableState;for(P("flow",t.flowing);t.flowing&&null!==e.read(););}function be(e,t){"function"!=typeof e.read&&(e=ie.wrap(e,{objectMode:!0}));var r=function(e,t){return ye.apply(this,arguments)}(e,t);return r.stream=e,r}function ye(){return(ye=l(s().mark((function e(t,r){var n,i,o,a,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=function(e){this===t?(n(),n=ee):n=e},n=ee,t.on("readable",i),a=j(t,{writable:!1},(function(e){o=e?G(o,e):null,n(),n=ee})),e.prev=4;case 5:if(null===(c=t.destroyed?null:t.read())){e.next=12;break}return e.next=10,c;case 10:e.next=22;break;case 12:if(!o){e.next=16;break}throw o;case 16:if(null!==o){e.next=20;break}return e.abrupt("return");case 20:return e.next=22,f(new E(i));case 22:e.next=5;break;case 24:e.next=30;break;case 26:throw e.prev=26,e.t0=e.catch(4),o=G(o,e.t0);case 30:return e.prev=30,!o&&!1===(null==r?void 0:r.destroyOnReturn)||void 0!==o&&!t._readableState.autoDestroy?(t.off("readable",i),a()):N.destroyer(t,null),e.finish(30);case 33:case"end":return e.stop()}}),e,null,[[4,26,30,33]])})))).apply(this,arguments)}function ve(e,t){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);var r}function me(e){var t=e._readableState;P("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,A.nextTick(we,t,e))}function we(e,t){if(P("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)A.nextTick(Ie,t);else if(e.autoDestroy){var r=t._writableState;(!r||r.autoDestroy&&(r.finished||!1===r.writable))&&t.destroy()}}function Ie(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}function Ee(){return void 0===se&&(se={}),se}ie.prototype.read=function(e){P("read",e),void 0===e?e=NaN:b(e)||(e=v(e,10));var t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new Y("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return P("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?me(this):ue(this),null;if(0===(e=ce(e,t))&&t.ended)return 0===t.length&&me(this),null;var n,i=0!=(64&t.state);if(P("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&P("length less than watermark",i=!0),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)P("reading, ended or constructing",i=!1);else if(i){P("do read"),t.state|=40,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){te(this,e)}t.state&=-33,t.reading||(e=ce(r,t))}return null===(n=e>0?ve(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&me(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},ie.prototype._read=function(e){throw new K("_read()")},ie.prototype.pipe=function(e,t){var r=this,n=this._readableState;1===n.pipes.length&&(n.multiAwaitDrain||(n.multiAwaitDrain=!0,n.awaitDrainWriters=new B(n.awaitDrainWriters?[n.awaitDrainWriters]:[]))),n.pipes.push(e),P("pipe count=%d opts=%j",n.pipes.length,t);var i,o=(!t||!1!==t.end)&&e!==A.stdout&&e!==A.stderr?s:p;function a(t,o){P("onunpipe"),t===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,function(){P("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),i&&e.removeListener("drain",i);e.removeListener("error",l),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",p),r.removeListener("data",f),c=!0,i&&n.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&i()}())}function s(){P("onend"),e.end()}n.endEmitted?A.nextTick(o):r.once("end",o),e.on("unpipe",a);var c=!1;function u(){c||(1===n.pipes.length&&n.pipes[0]===e?(P("false write response, pause",0),n.awaitDrainWriters=e,n.multiAwaitDrain=!1):n.pipes.length>1&&n.pipes.includes(e)&&(P("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(e)),r.pause()),i||(i=function(e,t){return function(){var r=e._readableState;r.awaitDrainWriters===t?(P("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(P("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",i))}function f(t){P("ondata");var r=e.write(t);P("dest.write",r),!1===r&&u()}function l(t){if(P("onerror",t),p(),e.removeListener("error",l),0===e.listenerCount("error")){var r=e._writableState||e._readableState;r&&!r.errorEmitted?te(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",d),p()}function d(){P("onfinish"),e.removeListener("close",h),p()}function p(){P("unpipe"),r.unpipe(e)}return r.on("data",f),R(e,"error",l),e.once("close",h),e.once("finish",d),e.emit("pipe",r),!0===e.writableNeedDrain?u():n.flowing||(P("pipe resume"),r.resume()),e},ie.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipes.length)return this;if(!e){var r=t.pipes;t.pipes=[],this.pause();for(var n=0;n<r.length;n++)r[n].emit("unpipe",this,{hasUnpiped:!1});return this}var i=g(t.pipes,e);return-1===i||(t.pipes.splice(i,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},ie.prototype.on=function(e,t){var r=x.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,P("on readable",n.length,n.reading),n.length?ue(this):n.reading||A.nextTick(Ae,this))),r},ie.prototype.addListener=ie.prototype.on,ie.prototype.removeListener=function(e,t){var r=x.prototype.removeListener.call(this,e,t);return"readable"===e&&A.nextTick(de,this),r},ie.prototype.off=ie.prototype.removeListener,ie.prototype.removeAllListeners=function(e){var t=x.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||A.nextTick(de,this),t},ie.prototype.resume=function(){var e=this._readableState;return e.flowing||(P("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,A.nextTick(pe,e,t))}(this,e)),e[Z]=!1,this},ie.prototype.pause=function(){return P("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(P("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Z]=!0,this},ie.prototype.wrap=function(e){var t=this,r=!1;e.on("data",(function(n){!t.push(n)&&e.pause&&(r=!0,e.pause())})),e.on("end",(function(){t.push(null)})),e.on("error",(function(e){te(t,e)})),e.on("close",(function(){t.destroy()})),e.on("destroy",(function(){t.destroy()})),this._read=function(){r&&e.resume&&(r=!1,e.resume())};for(var n=w(e),i=1;i<n.length;i++){var o=n[i];void 0===this[o]&&"function"==typeof e[o]&&(this[o]=e[o].bind(e))}return this},ie.prototype[_]=function(){return be(this)},ie.prototype.iterator=function(e){return void 0!==e&&V(e,"options"),be(this,e)},m(ie.prototype,{readable:{__proto__:null,get:function(){var e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set:function(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get:function(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get:function(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get:function(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get:function(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get:function(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get:function(){return!!this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get:function(){return!!this._readableState&&this._readableState.endEmitted}}}),m(ne.prototype,{pipesCount:{__proto__:null,get:function(){return this.pipes.length}},paused:{__proto__:null,get:function(){return!1!==this[Z]},set:function(e){this[Z]=!!e}}}),ie._fromList=ve,ie.from=function(e,t){return $(ie,e,t)},ie.fromWeb=function(e,t){return Ee().newStreamReadableFromReadableStream(e,t)},ie.toWeb=function(e,t){return Ee().newReadableStreamFromStreamReadable(e,t)},ie.wrap=function(e,t){var r,n;return new ie(o(o({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r},t),{},{destroy:function(t,r){N.destroyer(e,t),r(t)}})).wrap(e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=r(7).SymbolDispose,a=r(12),s=a.AbortError,c=a.codes,u=r(23),f=u.isNodeStream,l=u.isWebStream,h=u.kControllerErrorFunction,d=r(27),A=c.ERR_INVALID_ARG_TYPE;e.exports.addAbortSignal=function(t,r){if(function(e,t){if("object"!==n(e)||!("aborted"in e))throw new A(t,"AbortSignal",e)}(t,"signal"),!f(r)&&!l(r))throw new A("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!==n(e)||!("aborted"in e))return t;var a=f(t)?function(){t.destroy(new s(void 0,{cause:e.reason}))}:function(){t[h](new s(void 0,{cause:e.reason}))};if(e.aborted)a();else{var c=(i=i||r(11).addAbortListener)(e,a);d(t,c[o])}return t}},function(e,t,r){"use strict";var n=r(7),i=n.MathFloor,o=n.NumberIsInteger,a=r(48).validateInteger,s=r(12).codes.ERR_INVALID_ARG_VALUE,c=16384,u=16;function f(e){return e?u:c}e.exports={getHighWaterMark:function(e,t,r,n){var a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,n,r);if(null!=a){if(!o(a)||a<0){var c=n?"options.".concat(r):"options.highWaterMark";throw new s(c,a)}return i(a)}return f(e.objectMode)},getDefaultHighWaterMark:f,setDefaultHighWaterMark:function(e,t){a(t,"value",0),e?u=t:c=t}}},function(e,t,r){var n=r(4).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,c,u=r[0],f=r[1],l=r[2],h=r[3],d=e[0]^t[0],A=e[1]^t[1],p=e[2]^t[2],g=e[3]^t[3],b=4,y=1;y<i;y++)o=u[d>>>24]^f[A>>>16&255]^l[p>>>8&255]^h[255&g]^t[b++],a=u[A>>>24]^f[p>>>16&255]^l[g>>>8&255]^h[255&d]^t[b++],s=u[p>>>24]^f[g>>>16&255]^l[d>>>8&255]^h[255&A]^t[b++],c=u[g>>>24]^f[d>>>16&255]^l[A>>>8&255]^h[255&p]^t[b++],d=o,A=a,p=s,g=c;return o=(n[d>>>24]<<24|n[A>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[b++],a=(n[A>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^t[b++],s=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&A])^t[b++],c=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[A>>>8&255]<<8|n[255&p])^t[b++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var f=e[a],l=e[f],h=e[l],d=257*e[u]^16843008*u;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*l^257*f^16843008*a,o[0][u]=d<<24|d>>>8,o[1][u]=d<<16|d>>>16,o[2][u]=d<<8|d>>>24,o[3][u]=d,0===a?a=s=1:(a=f^e[e[e[h^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],f=0;f<n;f++){var l=n-f,h=i[l-(f%4?0:4)];u[f]=f<4||l<=4?h:c.INV_SUB_MIX[0][c.SBOX[h>>>24]]^c.INV_SUB_MIX[1][c.SBOX[h>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[h>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var n=r(4).Buffer,i=r(86);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var f=new i;f.update(u),f.update(e),t&&f.update(t),u=f.digest();var l=0;if(a>0){var h=s.length-a;l=Math.min(a,u.length),u.copy(s,h,0,l),a-=l}if(l<u.length&&o>0){var d=c.length-o,A=Math.min(o,u.length-l);u.copy(c,d,l,l+A),o-=A}}return u.fill(0),{key:s,iv:c}}},function(e,t,r){"use strict";var n=r(2),i=r(15),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,c,u=[];for(a=0;a<n.length;a+=r.step){c=0;for(var f=a+r.step-1;f>=a;f--)c=(c<<1)+n[f];u.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a<u.length;a++)(c=u[a])===d?h=h.mixedAdd(r.points[a]):c===-d&&(h=h.mixedAdd(r.points[a].neg()));l=l.add(h)}return l.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),c=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(var f=0;u>=0&&0===a[u];u--)f++;if(u>=0&&f++,c=c.dblp(f),u<0)break;var l=a[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,u,f=this._wnafT1,l=this._wnafT2,h=this._wnafT3,d=0;for(s=0;s<n;s++){var A=(u=t[s])._getNAFPoints(e);f[s]=A.wnd,l[s]=A.points}for(s=n-1;s>=1;s-=2){var p=s-1,g=s;if(1===f[p]&&1===f[g]){var b=[t[p],null,null,t[g]];0===t[p].y.cmp(t[g].y)?(b[1]=t[p].add(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg())):0===t[p].y.cmp(t[g].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].add(t[g].neg())):(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[p],r[g]);for(d=Math.max(v[0].length,d),h[p]=new Array(d),h[g]=new Array(d),c=0;c<d;c++){var m=0|v[0][c],w=0|v[1][c];h[p][c]=y[3*(m+1)+(w+1)],h[g][c]=0,l[p]=b}}else h[p]=o(r[p],f[p],this._bitLength),h[g]=o(r[g],f[g],this._bitLength),d=Math.max(h[p].length,d),d=Math.max(h[g].length,d)}var I=this.jpoint(null,null,null),E=this._wnafT4;for(s=d;s>=0;s--){for(var B=0;s>=0;){var C=!0;for(c=0;c<n;c++)E[c]=0|h[c][s],0!==E[c]&&(C=!1);if(!C)break;B++,s--}if(s>=0&&B++,I=I.dblp(B),s<0)break;for(c=0;c<n;c++){var _=E[c];0!==_&&(_>0?u=l[c][_-1>>1]:_<0&&(u=l[c][-_-1>>1].neg()),I="affine"===u.type?I.mixedAdd(u):I.add(u))}}for(s=0;s<n;s++)l[s]=null;return i?I:I.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(356),o=r(367),a=r(368),s=r(94),c=r(152),u=r(4).Buffer;function f(e){var t;"object"!==n(e)||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,l=a(e,t),h=l.tag,d=l.data;switch(h){case"CERTIFICATE":f=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=i.PublicKey.decode(d,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=i.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(i.split("-")[1],10)/8,h=c.pbkdf2Sync(t,r,n,l,"sha1"),d=s.createDecipheriv(i,h,a),A=[];return A.push(d.update(f)),A.push(d.final()),u.concat(A)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(f=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:i.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=i.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}f.signature=i.signature,e.exports=f},function(e,t,r){"use strict";var n=r(2),i=r(16),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,c,u=[];for(a=0;a<n.length;a+=r.step){c=0;for(var f=a+r.step-1;f>=a;f--)c=(c<<1)+n[f];u.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a<u.length;a++)(c=u[a])===d?h=h.mixedAdd(r.points[a]):c===-d&&(h=h.mixedAdd(r.points[a].neg()));l=l.add(h)}return l.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),c=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(var f=0;u>=0&&0===a[u];u--)f++;if(u>=0&&f++,c=c.dblp(f),u<0)break;var l=a[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,u,f=this._wnafT1,l=this._wnafT2,h=this._wnafT3,d=0;for(s=0;s<n;s++){var A=(u=t[s])._getNAFPoints(e);f[s]=A.wnd,l[s]=A.points}for(s=n-1;s>=1;s-=2){var p=s-1,g=s;if(1===f[p]&&1===f[g]){var b=[t[p],null,null,t[g]];0===t[p].y.cmp(t[g].y)?(b[1]=t[p].add(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg())):0===t[p].y.cmp(t[g].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].add(t[g].neg())):(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[p],r[g]);for(d=Math.max(v[0].length,d),h[p]=new Array(d),h[g]=new Array(d),c=0;c<d;c++){var m=0|v[0][c],w=0|v[1][c];h[p][c]=y[3*(m+1)+(w+1)],h[g][c]=0,l[p]=b}}else h[p]=o(r[p],f[p],this._bitLength),h[g]=o(r[g],f[g],this._bitLength),d=Math.max(h[p].length,d),d=Math.max(h[g].length,d)}var I=this.jpoint(null,null,null),E=this._wnafT4;for(s=d;s>=0;s--){for(var B=0;s>=0;){var C=!0;for(c=0;c<n;c++)E[c]=0|h[c][s],0!==E[c]&&(C=!1);if(!C)break;B++,s--}if(s>=0&&B++,I=I.dblp(B),s<0)break;for(c=0;c<n;c++){var _=E[c];0!==_&&(_>0?u=l[c][_-1>>1]:_<0&&(u=l[c][-_-1>>1].neg()),I="affine"===u.type?I.mixedAdd(u):I.add(u))}}for(s=0;s<n;s++)l[s]=null;return i?I:I.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,n=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,c=528734635,u=1541459225,f=new Uint32Array(64);function l(e){for(var l=0,h=e.length;h>=64;){var d=r,A=n,p=i,g=o,b=a,y=s,v=c,m=u,w=void 0,I=void 0,E=void 0,B=void 0,C=void 0;for(I=0;I<16;I++)E=l+4*I,f[I]=(255&e[E])<<24|(255&e[E+1])<<16|(255&e[E+2])<<8|255&e[E+3];for(I=16;I<64;I++)B=((w=f[I-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,C=((w=f[I-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,f[I]=(B+f[I-7]|0)+(C+f[I-16]|0)|0;for(I=0;I<64;I++)B=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&y^~b&v)|0)+(m+(t[I]+f[I]|0)|0)|0,C=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&A^d&p^A&p)|0,m=v,v=y,y=b,b=g+B|0,g=p,p=A,A=d,d=B+C|0;r=r+d|0,n=n+A|0,i=i+p|0,o=o+g|0,a=a+b|0,s=s+y|0,c=c+v|0,u=u+m|0,l+=64,h-=64}}l(e);var h,d=e.length%64,A=e.length/536870912|0,p=e.length<<3,g=d<56?56:120,b=e.slice(e.length-d,e.length);for(b.push(128),h=d+1;h<g;h++)b.push(0);return b.push(A>>>24&255),b.push(A>>>16&255),b.push(A>>>8&255),b.push(A>>>0&255),b.push(p>>>24&255),b.push(p>>>16&255),b.push(p>>>8&255),b.push(p>>>0&255),l(b),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e);var i,o=64+t.length+4,a=new Array(o),s=new Array(64),c=[];for(i=0;i<64;i++)a[i]=54;for(i=0;i<e.length;i++)a[i]^=e[i];for(i=0;i<t.length;i++)a[64+i]=t[i];for(i=o-4;i<o;i++)a[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function u(){for(var e=o-1;e>=o-4;e--){if(a[e]++,a[e]<=255)return;a[e]=0}}for(;r>=32;)u(),c=c.concat(n(s.concat(n(a)))),r-=32;return r>0&&(u(),c=c.concat(n(s.concat(n(a))).slice(0,r))),c}function o(e,t,r,n,i){var o;for(u(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)c(e,16*o,i,16),s(i,n),u(i,0,e,t+16*o,16);for(o=0;o<r;o++)u(e,t+2*o*16,e,16*o,16);for(o=0;o<r;o++)u(e,t+16*(2*o+1),e,16*(o+r),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){u(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function c(e,t,r,n){for(var i=0;i<n;i++)r[i]^=e[t+i]}function u(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function f(e){if(!e||"number"!=typeof e.length)return!1;for(var t=0;t<e.length;t++){var r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function l(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function h(e,r,n,a,s,h,d){if(n=l(n,"N"),a=l(a,"r"),s=l(s,"p"),h=l(h,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!f(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var A=i(e,r,128*s*a),p=new Uint32Array(32*s*a),g=0;g<p.length;g++){var b=4*g;p[g]=(255&A[b+3])<<24|(255&A[b+2])<<16|(255&A[b+1])<<8|(255&A[b+0])<<0}var y,v,m=new Uint32Array(64*a),w=new Uint32Array(32*a*n),I=32*a,E=new Uint32Array(16),B=new Uint32Array(16),C=s*n*2,_=0,k=null,S=!1,Q=0,x=0,R=d?parseInt(1e3/a):4294967295,O=void 0!==t?t:setTimeout,D=function t(){if(S)return d(new Error("cancelled"),_/C);var r;switch(Q){case 0:u(p,v=32*x*a,m,0,I),Q=1,y=0;case 1:(r=n-y)>R&&(r=R);for(var f=0;f<r;f++)u(m,0,w,(y+f)*I,I),o(m,I,a,E,B);if(y+=r,_+=r,d){var l=parseInt(1e3*_/C);if(l!==k){if(S=d(null,_/C))break;k=l}}if(y<n)break;y=0,Q=2;case 2:(r=n-y)>R&&(r=R);for(var g=0;g<r;g++){var b=m[16*(2*a-1)]&n-1;c(w,b*I,m,I),o(m,I,a,E,B)}if(y+=r,_+=r,d){var D=parseInt(1e3*_/C);if(D!==k){if(S=d(null,_/C))break;k=D}}if(y<n)break;if(u(m,0,p,v,I),++x<s){Q=0;break}A=[];for(var j=0;j<p.length;j++)A.push(p[j]>>0&255),A.push(p[j]>>8&255),A.push(p[j]>>16&255),A.push(p[j]>>24&255);var P=i(e,A,h);return d&&d(null,1,P),P}d&&O(t)};if(!d)for(;;){var j=D();if(null!=j)return j}D()}var d={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,c){var u=0;a&&a(0),h(e,t,r,n,i,o,(function(e,t,r){if(e)c(e);else if(r)a&&1!==u&&a(1),s(new Uint8Array(r));else if(a&&t!==u)return u=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(h(e,t,r,n,i,o))}};e.exports=d}()}).call(this,r(76).setImmediate)},function(e,t,r){var n=r(388).Transform;function i(e){return function(t,r,n){return"function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=function(e,t,r){return r(null,e)}),"function"!=typeof n&&(n=null),e(t,r,n)}}var o=i((function(e,t,r){var i=new n(e);return i._transform=t,r&&(i._flush=r),i})),a=i((function(e,t,r){function i(o){if(!(this instanceof i))return new i(o);this.options=Object.assign({},e,o),n.call(this,this.options),this._transform=t,r&&(this._flush=r)}var o,a;return a=n,(o=i).super_=a,o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i})),s=i((function(e,t,r){var i=new n(Object.assign({objectMode:!0,highWaterMark:16},e));return i._transform=t,r&&(i._flush=r),i}));e.exports=o,e.exports.ctor=a,e.exports.obj=s},,function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(105);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(225),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(9))},function(e,t,r){var n,i,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var i=e[n];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=n<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return o=a.shift()+(a.length>0?"?":"")+a.join("&")}return function(){return e("object"===a(arguments[0])?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=o():void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)},function(e,t,r){var n=r(25),i=r(26),o=r(44);t.ValidatePresence=function(e,t){if(!t)throw Error("".concat(e," not specified"))},t.ValidateLibrary=function(e){if(!e)throw Error("Library ID not specified");if(!e.toString().startsWith("i"))throw Error("Invalid library ID: ".concat(e))},t.ValidateObject=function(e){if(!e)throw Error("Object ID not specified");if(!e.toString().startsWith("i"))throw Error("Invalid object ID: ".concat(e))},t.ValidateVersion=function(e){if(!e)throw Error("Version hash not specified");if(!e.toString().startsWith("h"))throw Error("Invalid version hash: ".concat(e))},t.ValidateWriteToken=function(e){if(!e)throw Error("Write token not specified");if(!e.toString().startsWith("t"))throw Error("Invalid write token: ".concat(e))},t.ValidatePartHash=function(e){if(!e)throw Error("Part hash not specified");if(!(e.toString().startsWith("hqp_")||e.toString().startsWith("hqpe")||e.toString().startsWith("hqt_")||e.toString().startsWith("hqte")||e.toString().startsWith("hql_")||e.toString().startsWith("hqle")))throw Error("Invalid part hash: ".concat(e))},t.ValidateParameters=function(e){var r=e.libraryId,n=e.objectId,i=e.versionHash,o=e.writeToken;if(o){if(i)throw Error("Cannot specify writeToken and versionHash at same time (token:".concat(o,", hash:").concat(i,")"));t.ValidateWriteToken(o)}else i?t.ValidateVersion(i):(t.ValidateLibrary(r),t.ValidateObject(n))},t.ValidateAddress=function(e){if(!e)throw Error("Address not specified");if(!/^(0x)?[0-9a-f]{40}$/i.test(e.toLowerCase()))throw Error("Invalid address: ".concat(e));return o.FormatAddress(e)},t.ValidatePermission=function(e){if(e&&"full-access"!==e&&"no-access"!==e)throw Error("Invalid profile permission: ".concat(e));return e},t.ValidateDate=function(e){if(e){if(isNaN(new Date(e)))throw Error("Invalid date: ".concat(e));return new Date(e).getTime()}},t.ValidateUserWallet=function(){var e=i(n.mark((function e(t){var r,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.address,i=t.client,r){e.next=5;break}throw Error("Address not specified");case 5:if(i){e.next=7;break}throw Error("Client not specified");case 7:return e.next=9,i.userProfileClient.UserWalletAddress({address:r});case 9:if(e.sent){e.next=12;break}throw Error("User address has no wallet: ".concat(r));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},function(e,t,r){var n=r(242),i=r(248);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},function(e,t,r){var n=r(59),i=r(31);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){var n=r(123);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t,r){var n=r(80),i=r(128);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&i.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,o(B,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function s(e){return function(){return new c(e.apply(this,arguments))}}function c(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof f;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}i(o.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function u(e){var t={},r=!1;function n(t,n){return r=!0,{done:!1,value:new f(n=new Promise((function(r){r(e[t](n))})),1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}function f(e,t){this.v=e,this.k=t}function l(e){var t,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new h(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function h(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(h=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new h(e)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(e){return this._invoke("next",e)},c.prototype.throw=function(e){return this._invoke("throw",e)},c.prototype.return=function(e){return this._invoke("return",e)};var d,A,p,g=r(6),b=r(7),y=b.ArrayIsArray,v=b.Promise,m=b.SymbolAsyncIterator,w=b.SymbolDispose,I=r(27),E=r(11).once,B=r(35),C=r(24),_=r(12),k=_.aggregateTwoErrors,S=_.codes,Q=S.ERR_INVALID_ARG_TYPE,x=S.ERR_INVALID_RETURN_VALUE,R=S.ERR_MISSING_ARGS,O=S.ERR_STREAM_DESTROYED,D=S.ERR_STREAM_PREMATURE_CLOSE,j=_.AbortError,P=r(48),M=P.validateFunction,N=P.validateAbortSignal,T=r(23),L=T.isIterable,F=T.isReadable,U=T.isReadableNodeStream,G=T.isNodeStream,H=T.isTransformStream,q=T.isWebStream,K=T.isReadableStream,Y=T.isReadableFinished,J=globalThis.AbortController||r(47).AbortController;function z(e,t,r){var n=!1;return e.on("close",(function(){n=!0})),{destroy:function(t){n||(n=!0,B.destroyer(e,t||new O("pipe")))},cleanup:I(e,{readable:t,writable:r},(function(e){n=!e}))}}function W(e){return M(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function V(e){if(L(e))return e;if(U(e))return function(e){return Z.apply(this,arguments)}(e);throw new Q("val",["Readable","Iterable","AsyncIterable"],e)}function Z(){return(Z=s(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A||(A=r(62)),e.delegateYield(u(l(A.prototype[m].call(t))),"t0",2);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,t,r,n){return $.apply(this,arguments)}function $(){return($=o(a().mark((function e(t,r,n,i){var o,s,c,u,f,h,d,A,p,g,b,y;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.end,c=null,u=function(e){if(e&&(s=e),c){var t=c;c=null,t()}},f=function(){return new v((function(e,t){s?t(s):c=function(){s?t(s):e()}}))},r.on("drain",u),h=I(r,{readable:!1},u),e.prev=6,!r.writableNeedDrain){e.next=10;break}return e.next=10,f();case 10:d=!1,A=!1,e.prev=12,g=l(t);case 14:return e.next=16,g.next();case 16:if(!(d=!(b=e.sent).done)){e.next=24;break}if(y=b.value,r.write(y)){e.next=21;break}return e.next=21,f();case 21:d=!1,e.next=14;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(12),A=!0,p=e.t0;case 30:if(e.prev=30,e.prev=31,!d||null==g.return){e.next=35;break}return e.next=35,g.return();case 35:if(e.prev=35,!A){e.next=38;break}throw p;case 38:return e.finish(35);case 39:return e.finish(30);case 40:if(!o){e.next=44;break}return r.end(),e.next=44,f();case 44:n(),e.next=50;break;case 47:e.prev=47,e.t1=e.catch(6),n(s!==e.t1?k(s,e.t1):e.t1);case 50:return e.prev=50,h(),r.off("drain",u),e.finish(50);case 54:case"end":return e.stop()}}),e,null,[[6,47,50,54],[12,26,30,40],[31,,35,39]])})))).apply(this,arguments)}function ee(e,t,r,n){return te.apply(this,arguments)}function te(){return(te=o(a().mark((function e(t,r,n,i){var o,s,c,u,f,h,d,A;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=i.end,H(r)&&(r=r.writable),s=r.getWriter(),e.prev=3,c=!1,u=!1,e.prev=6,h=l(t);case 8:return e.next=10,h.next();case 10:if(!(c=!(d=e.sent).done)){e.next=18;break}return A=d.value,e.next=14,s.ready;case 14:s.write(A).catch((function(){}));case 15:c=!1,e.next=8;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(6),u=!0,f=e.t0;case 24:if(e.prev=24,e.prev=25,!c||null==h.return){e.next=29;break}return e.next=29,h.return();case 29:if(e.prev=29,!u){e.next=32;break}throw f;case 32:return e.finish(29);case 33:return e.finish(24);case 34:return e.next=36,s.ready;case 36:if(!o){e.next=39;break}return e.next=39,s.close();case 39:n(),e.next=53;break;case 42:return e.prev=42,e.t1=e.catch(3),e.prev=44,e.next=47,s.abort(e.t1);case 47:n(e.t1),e.next=53;break;case 50:e.prev=50,e.t2=e.catch(44),n(e.t2);case 53:case"end":return e.stop()}}),e,null,[[3,42],[6,20,24,34],[25,,29,33],[44,50]])})))).apply(this,arguments)}function re(e,t,n){if(1===e.length&&y(e[0])&&(e=e[0]),e.length<2)throw new R("streams");var i,o,a,s=new J,c=s.signal,u=null==n?void 0:n.signal,f=[];function l(){m(new j)}N(u,"options.signal"),p=p||r(11).addAbortListener,u&&(i=p(u,l));var h,A=[],b=0;function v(e){m(e,0==--b)}function m(e,r){var n;if(!e||o&&"ERR_STREAM_PREMATURE_CLOSE"!==o.code||(o=e),o||r){for(;A.length;)A.shift()(o);null===(n=i)||void 0===n||n[w](),s.abort(),r&&(o||f.forEach((function(e){return e()})),g.nextTick(t,o,a))}}for(var E,B,_=function(){var t=e[k],i=k<e.length-1,o=k>0,s=i||!1!==(null==n?void 0:n.end),u=k===e.length-1;if(G(t)){var l=function(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&v(e)};if(s){var p=z(t,i,o),y=p.destroy,m=p.cleanup;A.push(y),F(t)&&u&&f.push(m)}t.on("error",l),F(t)&&u&&f.push((function(){t.removeListener("error",l)}))}if(0===k)if("function"==typeof t){if(h=t({signal:c}),!L(h))throw new x("Iterable, AsyncIterable or Stream","source",h)}else h=L(t)||U(t)||H(t)?t:C.from(t);else if("function"==typeof t)if(h=H(h)?V(null===(E=h)||void 0===E?void 0:E.readable):V(h),h=t(h,{signal:c}),i){if(!L(h,!0))throw new x("AsyncIterable","transform[".concat(k-1,"]"),h)}else{d||(d=r(138));var w=new d({objectMode:!0}),_=null===(B=h)||void 0===B?void 0:B.then;if("function"==typeof _)b++,_.call(h,(function(e){a=e,null!=e&&w.write(e),s&&w.end(),g.nextTick(v)}),(function(e){w.destroy(e),g.nextTick(v,e)}));else if(L(h,!0))b++,X(h,w,v,{end:s});else{if(!K(h)&&!H(h))throw new x("AsyncIterable or Promise","destination",h);var S=h.readable||h;b++,X(S,w,v,{end:s})}var R=z(h=w,!1,!0),O=R.destroy,j=R.cleanup;A.push(O),u&&f.push(j)}else if(G(t)){if(U(h)){b+=2;var P=function(e,t,r,n){var i=n.end,o=!1;if(t.on("close",(function(){o||r(new D)})),e.pipe(t,{end:!1}),i){var a=function(){o=!0,t.end()};Y(e)?g.nextTick(a):e.once("end",a)}else r();return I(e,{readable:!0,writable:!1},(function(t){var n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)})),I(t,{readable:!1,writable:!0},r)}(h,t,v,{end:s});F(t)&&u&&f.push(P)}else if(H(h)||K(h)){var M=h.readable||h;b++,X(M,t,v,{end:s})}else{if(!L(h))throw new Q("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);b++,X(h,t,v,{end:s})}h=t}else if(q(t)){if(U(h))b++,ee(V(h),t,v,{end:s});else if(K(h)||L(h))b++,ee(h,t,v,{end:s});else{if(!H(h))throw new Q("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);b++,ee(h.readable,t,v,{end:s})}h=t}else h=C.from(t)},k=0;k<e.length;k++)_();return(null!=c&&c.aborted||null!=u&&u.aborted)&&g.nextTick(l),h}e.exports={pipelineImpl:re,pipeline:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return re(t,E(W(t)))}}},function(e,t,r){"use strict";var n=r(7),i=n.ArrayIsArray,o=n.ObjectSetPrototypeOf,a=r(19).EventEmitter;function s(e){a.call(this,e)}function c(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}o(s.prototype,a.prototype),o(s,a),s.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){l(),0===a.listenerCount(this,"error")&&this.emit("error",e)}function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return c(r,"error",f),c(e,"error",f),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:c}},function(e,t,r){var n=r(6),i=r(7),o=i.ArrayPrototypeSlice,a=i.Error,s=i.FunctionPrototypeSymbolHasInstance,c=i.ObjectDefineProperty,u=i.ObjectDefineProperties,f=i.ObjectSetPrototypeOf,l=i.StringPrototypeToLowerCase,h=i.Symbol,d=i.SymbolHasInstance;e.exports=N,N.WritableState=P;var A=r(19).EventEmitter,p=r(84).Stream,g=r(5).Buffer,b=r(35),y=r(63).addAbortSignal,v=r(64),m=v.getHighWaterMark,w=v.getDefaultHighWaterMark,I=r(12).codes,E=I.ERR_INVALID_ARG_TYPE,B=I.ERR_METHOD_NOT_IMPLEMENTED,C=I.ERR_MULTIPLE_CALLBACK,_=I.ERR_STREAM_CANNOT_PIPE,k=I.ERR_STREAM_DESTROYED,S=I.ERR_STREAM_ALREADY_FINISHED,Q=I.ERR_STREAM_NULL_VALUES,x=I.ERR_STREAM_WRITE_AFTER_END,R=I.ERR_UNKNOWN_ENCODING,O=b.errorOrDestroy;function D(){}f(N.prototype,p.prototype),f(N,p);var j=h("kOnFinished");function P(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(24)),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=U.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[j]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function N(e){var t=this,n=this instanceof r(24);if(!n&&!s(N,this))return new N(e);this._writableState=new P(e,this,n),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),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),p.call(this,e),b.construct(this,(function(){var e=t._writableState;e.writing||K(t,e),z(t,e)}))}function T(e,t,r,i){var o,a=e._writableState;if("function"==typeof r)i=r,r=a.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new R(r)}else r=a.defaultEncoding;"function"!=typeof i&&(i=D)}if(null===t)throw new Q;if(!a.objectMode)if("string"==typeof t)!1!==a.decodeStrings&&(t=g.from(t,r),r="buffer");else if(t instanceof g)r="buffer";else{if(!p._isUint8Array(t))throw new E("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}return a.ending?o=new x:a.destroyed&&(o=new k("write")),o?(n.nextTick(i,o),O(e,o,!0),o):(a.pendingcb++,function(e,t,r,n,i){var o=t.objectMode?1:r.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==D&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return a&&!t.errored&&!t.destroyed}(e,a,t,r,i))}function L(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new k("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function F(e,t,r,n){--t.pendingcb,n(r),q(t),O(e,r)}function U(e,t){var r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(F,e,r,t,o):F(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&K(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(G,r.afterWriteTickInfo)):H(e,r,1,o))):O(e,new C)}function G(e){var t=e.stream,r=e.state,n=e.count,i=e.cb;return r.afterWriteTickInfo=null,H(t,r,n,i)}function H(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&q(t),z(e,t)}function q(e){if(!e.writing){for(var t=e.bufferedIndex;t<e.buffered.length;++t){var r,n=e.buffered[t],i=n.chunk,o=n.callback,a=e.objectMode?1:i.length;e.length-=a,o(null!==(r=e.errored)&&void 0!==r?r:new k("write"))}for(var s=e[j].splice(0),c=0;c<s.length;c++){var u;s[c](null!==(u=e.errored)&&void 0!==u?u:new k("end"))}M(e)}}function K(e,t){if(!(t.corked||t.bufferProcessing||t.destroyed)&&t.constructed){var r=t.buffered,n=t.bufferedIndex,i=t.objectMode,a=r.length-n;if(a){var s=n;if(t.bufferProcessing=!0,a>1&&e._writev){t.pendingcb-=a-1;var c=t.allNoop?D:function(e){for(var t=s;t<r.length;++t)r[t].callback(e)},u=t.allNoop&&0===s?r:o(r,s);u.allBuffers=t.allBuffers,L(e,t,!0,t.length,u,"",c),M(t)}else{do{var f=r[s],l=f.chunk,h=f.encoding,d=f.callback;r[s++]=null,L(e,t,!1,i?1:l.length,l,h,d)}while(s<r.length&&!t.writing);s===r.length?M(t):s>256?(r.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}}}function Y(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function J(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){var r=!1;function i(i){if(r)O(e,null!=i?i:C());else if(r=!0,t.pendingcb--,i){for(var o=t[j].splice(0),a=0;a<o.length;a++)o[a](i);O(e,i,t.sync)}else Y(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(W,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function z(e,t,r){Y(t)&&(J(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick((function(e,t){Y(t)?W(e,t):t.pendingcb--}),e,t)):Y(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;for(var r=t[j].splice(0),n=0;n<r.length;n++)r[n]();if(e.emit("finish"),t.autoDestroy){var i=e._readableState;(!i||i.autoDestroy&&(i.endEmitted||!1===i.readable))&&e.destroy()}}P.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},c(P.prototype,"bufferedRequestCount",{__proto__:null,get:function(){return this.buffered.length-this.bufferedIndex}}),c(N,d,{__proto__:null,value:function(e){return!!s(this,e)||this===N&&(e&&e._writableState instanceof P)}}),N.prototype.pipe=function(){O(this,new _)},N.prototype.write=function(e,t,r){return!0===T(this,e,t,r)},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||K(this,e))},N.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=l(e)),!g.isEncoding(e))throw new R(e);return this._writableState.defaultEncoding=e,this},N.prototype._write=function(e,t,r){if(!this._writev)throw new B("_write()");this._writev([{chunk:e,encoding:t}],r)},N.prototype._writev=null,N.prototype.end=function(e,t,r){var i,o=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){var s=T(this,e,t);s instanceof a&&(i=s)}return o.corked&&(o.corked=1,this.uncork()),i||(o.errored||o.ending?o.finished?i=new S("end"):o.destroyed&&(i=new k("end")):(o.ending=!0,z(this,o,!0),o.ended=!0)),"function"==typeof r&&(i||o.finished?n.nextTick(r,i):o[j].push(r)),this},u(N.prototype,{closed:{__proto__:null,get:function(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get:function(){return!!this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get:function(){var e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set:function(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get:function(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get:function(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get:function(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get:function(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get:function(){var e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get:function(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get:function(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get:function(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get:function(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});var V,Z=b.destroy;function X(){return void 0===V&&(V={}),V}N.prototype.destroy=function(e,t){var r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[j].length)&&n.nextTick(q,r),Z.call(this,e,t),this},N.prototype._undestroy=b.undestroy,N.prototype._destroy=function(e,t){t(e)},N.prototype[A.captureRejectionSymbol]=function(e){this.destroy(e)},N.fromWeb=function(e,t){return X().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return X().newWritableStreamFromStreamWritable(e)}},function(e,t,r){"use strict";var n=r(3),i=r(141),o=r(4).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),r=f(r,n=u(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=h(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){(t=e.exports=r(143)).Stream=t,t.Readable=t,t.Writable=r(89),t.Duplex=r(32),t.Transform=r(146),t.PassThrough=r(306)},function(e,t,r){var n=r(5),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){var o=r(29);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;y.WritableState=b;var u=Object.create(r(22));u.inherits=r(3);var f={deprecate:r(90)},l=r(144),h=r(88).Buffer,d=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var A,p=r(145);function g(){}function b(e,t){s=s||r(32),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(B,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),B(e,t))}(e,r,n,t,i);else{var a=I(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?c(m,e,r,a,i):m(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||r(32),!(A.call(y,this)||this instanceof s))return new y(e);this._writableState=new b(e,this),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)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),B(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var r=I(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(y,l),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!A.call(this,e)||this===y&&(e&&e._writableState instanceof b)}})):A=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return c}(this,i,s,e,t,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(6),r(76).setImmediate,r(9))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(9))},function(e,t,r){"use strict";var n=r(5).Buffer,i=r(3),o=r(141),a=new Array(16),s=[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],c=[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],u=[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],f=[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],l=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(e,t){return e<<t|e>>>32-t}function p(e,t,r,n,i,o,a,s){return A(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return A(e+(t&r|~t&n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return A(e+((t|~r)^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return A(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return A(e+(t^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,m=0|this._a,w=0|this._b,I=0|this._c,E=0|this._d,B=0|this._e,C=0;C<80;C+=1){var _,k;C<16?(_=p(r,n,i,o,d,e[s[C]],l[0],u[C]),k=v(m,w,I,E,B,e[c[C]],h[0],f[C])):C<32?(_=g(r,n,i,o,d,e[s[C]],l[1],u[C]),k=y(m,w,I,E,B,e[c[C]],h[1],f[C])):C<48?(_=b(r,n,i,o,d,e[s[C]],l[2],u[C]),k=b(m,w,I,E,B,e[c[C]],h[2],f[C])):C<64?(_=y(r,n,i,o,d,e[s[C]],l[3],u[C]),k=g(m,w,I,E,B,e[c[C]],h[3],f[C])):(_=v(r,n,i,o,d,e[s[C]],l[4],u[C]),k=p(m,w,I,E,B,e[c[C]],h[4],f[C])),r=d,d=o,o=A(i,10),i=n,n=_,m=B,B=E,E=A(I,10),I=w,w=k}var S=this._b+i+E|0;this._b=this._c+o+B|0,this._c=this._d+d+m|0,this._d=this._e+r+w|0,this._e=this._a+n+I|0,this._a=S},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(311),t.sha1=r(312),t.sha224=r(313),t.sha256=r(147),t.sha384=r(314),t.sha512=r(148)},function(e,t,r){"use strict";var n=r(14);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){var n=r(323),i=r(331),o=r(161);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(324),CBC:r(325),CFB:r(326),CFB8:r(327),CFB1:r(328),OFB:r(329),CTR:r(159),GCM:r(159)},i=r(161);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){var n=r(5),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){(function(t){var n=r(2),i=r(36);function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,r){var i=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),a=r.modulus.byteLength(),s=new n(e).mul(i.blinder).umod(r.modulus),c=s.toRed(n.mont(r.prime1)),u=s.toRed(n.mont(r.prime2)),f=r.coefficient,l=r.prime1,h=r.prime2,d=c.redPow(r.exponent1).fromRed(),A=u.redPow(r.exponent2).fromRed(),p=d.isub(A).imul(f).umod(l).imul(h);return A.iadd(p).imul(i.unblinder).umod(r.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,r(5).Buffer)},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n,i=t,o=r(8),a=r(172),s=r(15).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(349)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";var n,i=t,o=r(8),a=r(179),s=r(16).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(376)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";var n=r(39).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||f()},u=t._writableState&&t._writableState.finished,f=function(){s=!1,u=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},d=function(e){o.call(t,e)},A=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},p=function(){t.req.on("finish",f)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",f),t.on("abort",A),t.req?p():t.on("request",p)),t.on("end",h),t.on("finish",f),!1!==r.error&&t.on("error",d),t.on("close",A),function(){t.removeListener("complete",f),t.removeListener("abort",A),t.removeListener("request",p),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",A)}}},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(36),t.createHash=t.Hash=r(49),t.createHmac=t.Hmac=r(149);var n=r(316),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(152);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(318);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=r(333);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=r(337);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=r(370);var f=r(383);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var l=r(386);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},a=0;a<i.length;a++){var s=i.charAt(a);if(void 0!==o[s])throw new TypeError(s+" is ambiguous");o[s]=a}function c(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function u(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=c(t)^n>>5}for(t=c(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=c(t)^31&i}return t}function f(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var i=(e=r).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var a=e.slice(0,i),s=e.slice(i+1);if(s.length<6)return"Data too short";var f=u(a);if("string"==typeof f)return f;for(var l=[],h=0;h<s.length;++h){var d=s.charAt(h),A=o[d];if(void 0===A)return"Unknown character "+d;f=c(f)^A,h+6>=s.length||l.push(A)}return 1!==f?"Invalid checksum for "+e:{prefix:a,words:l}}function l(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],c=0;c<e.length;++c)for(i=i<<t|e[c],o+=t;o>=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)return"Excess padding";if(i<<r-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=f.apply(null,arguments);if("object"===n(e))return e},decode:function(e){var t=f.apply(null,arguments);if("object"===n(t))return t;throw new Error(t)},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");var n=u(e=e.toLowerCase());if("string"==typeof n)throw new Error(n);for(var o=e+"1",a=0;a<t.length;++a){var s=t[a];if(s>>5!=0)throw new Error("Non 5-bit word");n=c(n)^s,o+=i.charAt(s)}for(a=0;a<6;++a)n=c(n);for(n^=1,a=0;a<6;++a){o+=i.charAt(n>>5*(5-a)&31)}return o},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},,function(e,t,r){var n=r(33).default,i=r(198);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(106);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(211);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){(function(e){var n,i,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
11
|
+
/*!
|
|
12
|
+
* URI.js - Mutating URLs
|
|
13
|
+
*
|
|
14
|
+
* Version: 1.19.11
|
|
15
|
+
*
|
|
16
|
+
* Author: Rodney Rehm
|
|
17
|
+
* Web: http://medialize.github.io/URI.js/
|
|
18
|
+
*
|
|
19
|
+
* Licensed under
|
|
20
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
21
|
+
*
|
|
22
|
+
*/!function(s,c){"use strict";"object"===a(e)&&e.exports?e.exports=c(r(110),r(111),r(112)):(i=[r(110),r(111),r(112)],void 0===(o="function"==typeof(n=c)?n.apply(t,i):n)||(e.exports=o))}(0,(function(e,t,r,n){"use strict";var i=n&&n.URI;function o(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof o))return r?n?new o(e,t):new o(e):new o;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.11";var s=o.prototype,c=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===f(e)}function h(e,t){var r,n,i={};if("RegExp"===f(t))i=null;else if(l(t))for(r=0,n=t.length;r<n;r++)i[t[r]]=!0;else i[t]=!0;for(r=0,n=e.length;r<n;r++){(i&&void 0!==i[e[r]]||!i&&t.test(e[r]))&&(e.splice(r,1),n--,r--)}return e}function d(e,t){var r,n;if(l(t)){for(r=0,n=t.length;r<n;r++)if(!d(e,t[r]))return!1;return!0}var i=f(t);for(r=0,n=e.length;r<n;r++)if("RegExp"===i){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function A(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function p(e){return e.replace(/^\/+|\/+$/g,"")}function g(e){return escape(e)}function b(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=b,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=b,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var r=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var y,v={encode:"encode",decode:"decode"},m=function(e,t){return function(r){try{return o[t](r+"").replace(o.characters[e][t].expression,(function(r){return o.characters[e][t].map[r]}))}catch(e){return r}}};for(y in v)o[y+"PathSegment"]=m("pathname",v[y]),o[y+"UrnPathSegment"]=m("urnpath",v[y]);var w=function(e,t,r){return function(n){var i;i=r?function(e){return o[t](o[r](e))}:o[t];for(var a=(n+"").split(e),s=0,c=a.length;s<c;s++)a[s]=i(a[s]);return a.join(e)}};function I(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function E(e,t){return function(r,n){return void 0===r?this._parts[e]||"":(null!==r&&(r+="").charAt(0)===t&&(r=r.substring(1)),this._parts[e]=r,this.build(!n),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=m("reserved","encode"),o.parse=function(e,t){var r;return t||(t={preventInvalidHostname:o.preventInvalidHostname}),(r=(e=(e=e.replace(o.leading_whitespace_expression,"")).replace(o.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=o.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var r,n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),c=e.indexOf(":",a+1);-1!==c&&(-1===s||c<s)?(t.hostname=e.substring(0,i)||null,t.port=null):(n=e.substring(0,i).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),t.preventInvalidHostname&&o.ensureValidHostname(t.hostname,t.protocol),t.port&&o.ensureValidPort(t.port),e.substring(i)||"/"},o.parseAuthority=function(e,t){return e=o.parseUserinfo(e,t),o.parseHost(e,t)},o.parseUserinfo=function(e,t){var r=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n,i=e.indexOf("/"),a=e.lastIndexOf("@",i>-1?i:e.length-1);return a>-1&&(-1===i||a<i)?(n=e.substring(0,a).split(":"),t.username=n[0]?o.decode(n[0]):null,n.shift(),t.password=n[0]?o.decode(n.join(":")):null,e=r.substring(a+1)):(t.username=null,t.password=null),e},o.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,i,a={},s=e.split("&"),u=s.length,f=0;f<u;f++)r=s[f].split("="),n=o.decodeQuery(r.shift(),t),i=r.length?o.decodeQuery(r.join("="),t):null,"__proto__"!==n&&(c.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(i)):a[n]=i);return a},o.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",r=!0),t+=o.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},o.buildHost=function(e){var t="";return e.hostname?(o.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},o.buildAuthority=function(e){return o.buildUserinfo(e)+o.buildHost(e)},o.buildUserinfo=function(e){var t="";return e.username&&(t+=o.encode(e.username)),e.password&&(t+=":"+o.encode(e.password)),t&&(t+="@"),t},o.buildQuery=function(e,t,r){var n,i,a,s,u="";for(i in e)if("__proto__"!==i&&c.call(e,i))if(l(e[i]))for(n={},a=0,s=e[i].length;a<s;a++)void 0!==e[i][a]&&void 0===n[e[i][a]+""]&&(u+="&"+o.buildQueryParameter(i,e[i][a],r),!0!==t&&(n[e[i][a]+""]=!0));else void 0!==e[i]&&(u+="&"+o.buildQueryParameter(i,e[i],r));return u.substring(1)},o.buildQueryParameter=function(e,t,r){return o.encodeQuery(e,r)+(null!==t?"="+o.encodeQuery(t,r):"")},o.addQuery=function(e,t,r){if("object"===a(t))for(var n in t)c.call(t,n)&&o.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),l(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}},o.setQuery=function(e,t,r){if("object"===a(t))for(var n in t)c.call(t,n)&&o.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},o.removeQuery=function(e,t,r){var n,i,s;if(l(t))for(n=0,i=t.length;n<i;n++)e[t[n]]=void 0;else if("RegExp"===f(t))for(s in e)t.test(s)&&(e[s]=void 0);else if("object"===a(t))for(s in t)c.call(t,s)&&o.removeQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===f(r)?!l(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=h(e[t],r):e[t]!==String(r)||l(r)&&1!==r.length?l(e[t])&&(e[t]=h(e[t],r)):e[t]=void 0:e[t]=void 0}},o.hasQuery=function(e,t,r,n){switch(f(t)){case"String":break;case"RegExp":for(var i in e)if(c.call(e,i)&&t.test(i)&&(void 0===r||o.hasQuery(e,i,r)))return!0;return!1;case"Object":for(var a in t)if(c.call(t,a)&&!o.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(f(r)){case"Undefined":return t in e;case"Boolean":return r===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!r(e[t],t,e);case"Array":return!!l(e[t])&&(n?d:A)(e[t],r);case"RegExp":return l(e[t])?!!n&&d(e[t],r):Boolean(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return l(e[t])?!!n&&d(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var e=[],t=[],r=0,n=0;n<arguments.length;n++){var i=new o(arguments[n]);e.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&t.push(a[s]),a[s]&&r++}if(!t.length||!r)return new o("");var c=new o("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||c.path("/"+c.path()),c.normalize()},o.commonPath=function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(r)&&"/"===t.charAt(r)||(r=e.substring(0,r).lastIndexOf("/")),e.substring(0,r+1))},o.withinString=function(e,t,r){r||(r={});var n=r.start||o.findUri.start,i=r.end||o.findUri.end,a=r.trim||o.findUri.trim,s=r.parens||o.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var u=n.exec(e);if(!u)break;var f=u.index;if(r.ignoreHtml){var l=e.slice(Math.max(f-3,0),f);if(l&&c.test(l))continue}for(var h=f+e.slice(f).search(i),d=e.slice(f,h),A=-1;;){var p=s.exec(d);if(!p)break;var g=p.index+p[0].length;A=Math.max(A,g)}if(!((d=A>-1?d.slice(0,A)+d.slice(A).replace(a,""):d.replace(a,"")).length<=u[0].length||r.ignore&&r.ignore.test(d))){var b=t(d,f,h=f+d.length,e);void 0!==b?(b=String(b),e=e.slice(0,f)+b+e.slice(h),n.lastIndex=f+b.length):n.lastIndex=h}}return n.lastIndex=0,e},o.ensureValidHostname=function(t,r){var n=!!t,i=!1;if(!!r&&(i=d(o.hostProtocols,r)),i&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=I("protocol"),s.username=I("username"),s.password=I("password"),s.hostname=I("hostname"),s.port=I("port"),s.query=E("query","?"),s.fragment=E("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(r):r}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var n=e instanceof o,i="object"===a(e)&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[o.getDomAttribute(e)]||"",i=!1);if(!n&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!n&&!i)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&c.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,i=!1,a=!1,s=!1,c=!1,u=!1,f=!this._parts.urn;switch(this._parts.hostname&&(f=!1,n=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(t=n||i))&&r&&r.has(this._parts.hostname),c=a&&o.idn_expression.test(this._parts.hostname),u=a&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return f;case"absolute":return!f;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return i;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var B=s.protocol,C=s.port,_=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return B.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),C.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return _.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=o(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=o.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=o.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,n),a=new RegExp("^"+u(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[i.toLowerCase()]&&r.get(this._parts.hostname)||i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?o.decodePath(n):n}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+u(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?o.decodePathSegment(n):n}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var a=new RegExp(u(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(r=i.substring(a+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?o.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var s,c=this.suffix();if(c)s=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return s&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,c=t.length;s<c;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(p(t[s])))}else(t||"string"==typeof t)&&(t=p(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=p(t):a.splice(e,1);return o&&a.unshift(""),this.path(a.join(n),r)},s.segmentCoded=function(e,t,r){var n,i,a;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(l(n=this.segment(e,t,r)))for(i=0,a=n.length;i<a;i++)n[i]=o.decode(n[i]);else n=void 0!==n?o.decode(n):void 0;return n}if(l(t))for(i=0,a=t.length;i<a;i++)t[i]=o.encode(t[i]);else t="string"==typeof t||t instanceof String?o.encode(t):t;return this.segment(e,t,r)};var k=s.query;return s.query=function(e,t){if(!0===e)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,r);return this._parts.query=o.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=o.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):k.call(this,e,t)},s.setQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!==a(e))throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in e)c.call(e,i)&&(n[i]=e[i])}return this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},s.addQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(n,e,void 0===t?null:t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},s.removeQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(n,e,t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},s.hasQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(n,e,t,r)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},s.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t,r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var n,i,a="";for("/"!==(r=o.recodePath(r)).charAt(0)&&(t=!0,r="/"+r),"/.."!==r.slice(-3)&&"/."!==r.slice(-2)||(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=r.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(n=r.search(/\/\.\.(\/|$)/));)0!==n?(-1===(i=r.substring(0,n).lastIndexOf("/"))&&(i=n),r=r.substring(0,i)+r.substring(n+3)):r=r.substring(3);return t&&this.is("relative")&&(r=a+r.substring(1)),this._parts.path=r,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=o.encode,t=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},s.unicode=function(){var e=o.encode,t=o.decode;o.encode=b,o.decode=unescape;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},s.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var n="",i=0,a=t._parts.query.split("&"),s=a.length;i<s;i++){var c=(a[i]||"").split("=");n+="&"+o.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(n+="="+o.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+=o.decodeQuery(t.hash(),!0)},s.absoluteTo=function(e){var t,r,n,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof o||(e=new o(e)),i._parts.protocol)return i;if(i._parts.protocol=e._parts.protocol,this._parts.hostname)return i;for(r=0;n=a[r];r++)i._parts[n]=e._parts[n];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),i._parts.path=(t?t+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=e._parts.path,i._parts.query||(i._parts.query=e._parts.query)),i.build(),i},s.relativeTo=function(e){var t,r,n,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new o(e).normalize(),t=s._parts,r=e._parts,i=s.path(),a=e.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===r.protocol&&(t.protocol=null),t.username!==r.username||t.password!==r.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==r.hostname||t.port!==r.port)return s.build();if(t.hostname=null,t.port=null,i===a)return t.path="",s.build();if(!(n=o.commonPath(i,a)))return s.build();var c=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(n.length)||"./",s.build()},s.equals=function(e){var t,r,n,i,a,s=this.clone(),u=new o(e),f={};if(s.normalize(),u.normalize(),s.toString()===u.toString())return!0;if(n=s.query(),i=u.query(),s.query(""),u.query(""),s.toString()!==u.toString())return!1;if(n.length!==i.length)return!1;for(a in t=o.parseQuery(n,this._parts.escapeQuerySpace),r=o.parseQuery(i,this._parts.escapeQuerySpace),t)if(c.call(t,a)){if(l(t[a])){if(!A(t[a],r[a]))return!1}else if(t[a]!==r[a])return!1;f[a]=!0}for(a in r)if(c.call(r,a)&&!f[a])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},o}))}).call(this,r(20)(e))},function(e,t,r){(function(e,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
23
|
+
/*! https://mths.be/punycode v1.4.0 by @mathias */!function(a){var s="object"==o(t)&&t&&!t.nodeType&&t,c="object"==o(e)&&e&&!e.nodeType&&e,u="object"==(void 0===n?"undefined":o(n))&&n;u.global!==u&&u.window!==u&&u.self!==u||(a=u);var f,l,h=2147483647,d=/^xn--/,A=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,y=String.fromCharCode;function v(e){throw new RangeError(g[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function w(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(p,".")).split("."),t).join(".")}function I(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function E(e){return m(e,(function(e){var t="";return e>65535&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=y(e)})).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?b(e/700):e>>1,e+=b(e/t);e>455;n+=36)e=b(e/35);return b(n+36*e/(e+38))}function _(e){var t,r,n,i,o,a,s,c,u,f,l,d=[],A=e.length,p=0,g=128,y=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),d.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<A;){for(o=p,a=1,s=36;i>=A&&v("invalid-input"),((c=(l=e.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||c>b((h-p)/a))&&v("overflow"),p+=c*a,!(c<(u=s<=y?1:s>=y+26?26:s-y));s+=36)a>b(h/(f=36-u))&&v("overflow"),a*=f;y=C(p-o,t=d.length+1,0==o),b(p/t)>h-g&&v("overflow"),g+=b(p/t),p%=t,d.splice(p++,0,g)}return E(d)}function k(e){var t,r,n,i,o,a,s,c,u,f,l,d,A,p,g,m=[];for(d=(e=I(e)).length,t=128,r=0,o=72,a=0;a<d;++a)(l=e[a])<128&&m.push(y(l));for(n=i=m.length,i&&m.push("-");n<d;){for(s=h,a=0;a<d;++a)(l=e[a])>=t&&l<s&&(s=l);for(s-t>b((h-r)/(A=n+1))&&v("overflow"),r+=(s-t)*A,t=s,a=0;a<d;++a)if((l=e[a])<t&&++r>h&&v("overflow"),l==t){for(c=r,u=36;!(c<(f=u<=o?1:u>=o+26?26:u-o));u+=36)g=c-f,p=36-f,m.push(y(B(f+g%p,0))),c=b(g/p);m.push(y(B(c,0))),o=C(r,A,n==i),r=0,++n}++r,++t}return m.join("")}if(f={version:"1.3.2",ucs2:{decode:I,encode:E},decode:_,encode:k,toASCII:function(e){return w(e,(function(e){return A.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return w(e,(function(e){return d.test(e)?_(e.slice(4).toLowerCase()):e}))}},"object"==o(r(75))&&r(75))void 0===(i=function(){return f}.call(t,r,t,e))||(e.exports=i);else if(s&&c)if(e.exports==s)c.exports=f;else for(l in f)f.hasOwnProperty(l)&&(s[l]=f[l]);else a.punycode=f}(this)}).call(this,r(20)(e),r(9))},function(e,t,r){(function(e){var n,i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
24
|
+
/*!
|
|
25
|
+
* URI.js - Mutating URLs
|
|
26
|
+
* IPv6 Support
|
|
27
|
+
*
|
|
28
|
+
* Version: 1.19.11
|
|
29
|
+
*
|
|
30
|
+
* Author: Rodney Rehm
|
|
31
|
+
* Web: http://medialize.github.io/URI.js/
|
|
32
|
+
*
|
|
33
|
+
* Licensed under
|
|
34
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
35
|
+
*
|
|
36
|
+
*/!function(a,s){"use strict";"object"===o(e)&&e.exports?e.exports=s():void 0===(i="function"==typeof(n=s)?n.call(t,r,t,e):n)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,r,n=e.toLowerCase().split(":"),i=n.length,o=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[i-1]&&""===n[i-2]&&n.pop(),-1!==n[(i=n.length)-1].indexOf(".")&&(o=7),t=0;t<i&&""!==n[t];t++);if(t<o)for(n.splice(t,1,"0000");n.length<o;)n.splice(t,0,"0000");for(var a=0;a<o;a++){r=n[a].split("");for(var s=0;s<3&&("0"===r[0]&&r.length>1);s++)r.splice(0,1);n[a]=r.join("")}var c=-1,u=0,f=0,l=-1,h=!1;for(a=0;a<o;a++)h?"0"===n[a]?f+=1:(h=!1,f>u&&(c=l,u=f)):"0"===n[a]&&(h=!0,l=a,f=1);f>u&&(c=l,u=f),u>1&&n.splice(c,u,""),i=n.length;var d="";for(""===n[0]&&(d=":"),a=0;a<i&&(d+=n[a],a!==i-1);a++)d+=":";return""===n[i-1]&&(d+=":"),d},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))}).call(this,r(20)(e))},function(e,t,r){(function(e){var n,i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
37
|
+
/*!
|
|
38
|
+
* URI.js - Mutating URLs
|
|
39
|
+
* Second Level Domain (SLD) Support
|
|
40
|
+
*
|
|
41
|
+
* Version: 1.19.11
|
|
42
|
+
*
|
|
43
|
+
* Author: Rodney Rehm
|
|
44
|
+
* Web: http://medialize.github.io/URI.js/
|
|
45
|
+
*
|
|
46
|
+
* Licensed under
|
|
47
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
48
|
+
*
|
|
49
|
+
*/!function(a,s){"use strict";"object"===o(e)&&e.exports?e.exports=s():void 0===(i="function"==typeof(n=s)?n.call(t,r,t,e):n)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var i=r.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var i=r.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))}).call(this,r(20)(e))},function(e,t,r){"use strict";var n=r(21).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(21),i=r(45),o=r(113),a=r(14),s=n.sum32,c=n.sum32_4,u=n.sum32_5,f=o.ch32,l=o.maj32,h=o.s0_256,d=o.s1_256,A=o.g0_256,p=o.g1_256,g=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=c(p(r[n-2]),r[n-7],A(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],y=this.h[4],v=this.h[5],m=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var I=u(w,d(y),f(y,v,m),this.k[n],r[n]),E=s(h(i),l(i,o,g));w=m,m=v,v=y,y=s(b,I),b=g,g=o,o=i,i=s(I,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],m),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(21),i=r(45),o=r(14),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,f=n.sum64,l=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,A=n.sum64_4_lo,p=n.sum64_5_hi,g=n.sum64_5_lo,b=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function m(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function I(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function B(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function S(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function Q(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function R(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=x(r[n-4],r[n-3]),o=R(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],c=S(r[n-30],r[n-29]),u=Q(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=d(i,o,a,s,c,u,f,l),r[n+1]=A(i,o,a,s,c,u,f,l)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],d=this.h[6],A=this.h[7],b=this.h[8],y=this.h[9],v=this.h[10],S=this.h[11],Q=this.h[12],x=this.h[13],R=this.h[14],O=this.h[15];o(this.k.length===r.length);for(var D=0;D<r.length;D+=2){var j=R,P=O,M=_(b,y),N=k(b,y),T=m(b,y,v,S,Q),L=w(b,y,v,S,Q,x),F=this.k[D],U=this.k[D+1],G=r[D],H=r[D+1],q=p(j,P,M,N,T,L,F,U,G,H),K=g(j,P,M,N,T,L,F,U,G,H);j=B(n,i),P=C(n,i),M=I(n,i,a,s,c),N=E(n,i,a,s,c,u);var Y=l(j,P,M,N),J=h(j,P,M,N);R=Q,O=x,Q=v,x=S,v=b,S=y,b=l(d,A,q,K),y=h(A,A,q,K),d=c,A=u,c=a,u=s,a=n,s=i,n=l(q,K,Y,J),i=h(q,K,Y,J)}f(this.h,0,n,i),f(this.h,2,a,s),f(this.h,4,c,u),f(this.h,6,d,A),f(this.h,8,b,y),f(this.h,10,v,S),f(this.h,12,Q,x),f(this.h,14,R,O)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){var n=r(25),i=r(26),o=r(73),a=r(74),s=r(109),c="undefined"!=typeof fetch?fetch:r(117).default,u=r(118).LogMessage,f=r(44),l=function(){"use strict";function e(t){var r=t.uris,n=t.debug;o(this,e),this.uris=r,this.uriIndex=0,this.debug=n,this.draftURIs={},this.retries=Math.max(3,r.length)}return a(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u(this,e,t)}},{key:"BaseURI",value:function(e){return void 0===e&&(e=this.uriIndex),new s(this.uris[e])}},{key:"RecordWriteToken",value:function(e,t){if(!t)throw Error("RecordWriteToken() - nodeUrlStr not supplied");if(!e)throw Error("RecordWriteToken() - writeToken not supplied");this.draftURIs[e]=new s(t)}},{key:"ClearWriteToken",value:function(e){var t=e.writeToken;Object.hasOwn(this.draftURIs,t)&&delete this.draftURIs[t]}},{key:"RequestHeaders",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.Accept||(t.Accept="application/json"),"JSON"===e?t["Content-type"]="application/json":"BINARY"===e&&(t["Content-type"]="application/octet-stream"),t}},{key:"Request",value:(l=i(n.mark((function t(r){var i,o,a,s,c,u,f,l,h,d,A,p,g,b,y,v,m,w,I,E,B,C,_,k,S,Q,x;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.method,o=r.path,a=r.queryParams,s=void 0===a?{}:a,c=r.body,u=r.bodyType,f=void 0===u?"JSON":u,l=r.headers,h=void 0===l?{}:l,d=r.attempts,A=void 0===d?0:d,p=r.allowFailover,g=void 0===p||p,b=r.forceFailover,y=void 0!==b&&b,v=r.allowRetry,m=void 0===v||v,w=r.uriIndex,I=this.BaseURI(w),E=o.replace(/^\//,"").match(/(qlibs\/ilib[a-zA-Z0-9]+|q|qid)\/(tqw__[a-zA-Z0-9]+)/),(B=E?E[2]:void 0)&&(g=!1,this.draftURIs[B]?I=this.draftURIs[B]:this.draftURIs[B]=I),C=I.path(o).query(s).hash(""),_={method:i,headers:this.RequestHeaders(f,h)},"POST"!==i&&"PUT"!==i&&"DELETE"!==i||(c&&"JSON"===f?_.body=JSON.stringify(c):c&&(_.body=c)),this.debug&&(this.Log("".concat(i," - ").concat(C.toString())),this.Log("fetchParameters: ".concat(JSON.stringify(_,null,2)))),t.prev=9,t.next=12,e.Fetch(C.toString(),_);case 12:k=t.sent,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(9),k={ok:!1,status:500,statusText:"ElvClient Error: "+t.t0.message,url:C.toString(),stack:t.t0.stack};case 18:if(k.ok){t.next=47;break}if(!((parseInt(k.status)>=500||y)&&m&&A<this.retries)){t.next=31;break}if(!g){t.next=25;break}this.uriIndex=(this.uriIndex+1)%this.uris.length,this.Log("HttpClient failing over from ".concat(I.toString(),": ").concat(A+1," attempts"),!0),t.next=28;break;case 25:return this.Log("HttpClient retrying request from ".concat(I.toString(),": ").concat(A+1," attempts"),!0),t.next=28,new Promise((function(e){return setTimeout(e,1e3)}));case 28:return t.next=30,this.Request({method:i,path:o,queryParams:s,body:c,bodyType:f,headers:h,attempts:A+1,uriIndex:w,forceFailover:y});case 30:return t.abrupt("return",t.sent);case 31:if(S=k.headers&&k.headers.get("content-type")||"",Q="",!k.text||!k.json){t.next=44;break}if(!S.includes("application/json")){t.next=40;break}return t.next=37,k.json();case 37:t.t1=t.sent,t.next=43;break;case 40:return t.next=42,k.text();case 42:t.t1=t.sent;case 43:Q=t.t1;case 44:throw x={name:"ElvHttpClientError",status:k.status,statusText:k.statusText,message:k.statusText,url:C.toString(),body:Q,requestParams:_},this.debug&&this.Log(JSON.stringify(x,null,2),!0),x;case 47:return this.Log("".concat(k.status," - ").concat(i," ").concat(C.toString())),t.abrupt("return",k);case 49:case"end":return t.stop()}}),t,this,[[9,15]])}))),function(e){return l.apply(this,arguments)})},{key:"RequestAll",value:(r=i(n.mark((function e(t){var r,o,a,s,c,u,f,l,h,d=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.method,o=t.path,a=t.queryParams,s=void 0===a?{}:a,c=t.body,u=t.bodyType,f=void 0===u?"JSON":u,l=t.headers,h=void 0===l?{}:l,e.next=3,Promise.all(Array.from(new Array(this.uris.length).keys()).map(function(){var e=i(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.Request({method:r,path:o,queryParams:s,body:c,bodyType:f,headers:h,allowFailover:!1,uriIndex:t});case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"RequestJsonBody",value:(t=i(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.ResponseToJson(this.Request(t),this.debug,this.Log.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"URL",value:function(e){var t=e.path,r=e.queryParams,n=void 0===r?{}:r,i=this.BaseURI(),o=t.replace(/^\//,"").match(/(qlibs\/ilib[a-zA-Z0-9]+|q|qid)\/(tqw__[a-zA-Z0-9]+)/),a=o?o[2]:void 0;return a&&this.draftURIs[a]&&(i=this.draftURIs[a]),i.path(t).query(n).hash("").toString()}}],[{key:"Fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(e,t)}}]);var t,r,l}();e.exports=l},function(e,t,r){"use strict";(function(r){var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response}).call(this,r(9))},function(e,t,r){var n=r(33),i=function(e,t){return"object"===n(t)&&"function"==typeof t[e]?t[e]:null},o=function(e){return"object"===n(e)?JSON.stringify(e):e};e.exports={LogMessage:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.debug){var n=i("log",e.debugOptions),a=i("error",e.debugOptions),s="(elv-client-js#".concat(e.constructor.name,")"),c="\n".concat(s," ").concat(o(t),"\n");r?a?a(s,t):console.error(c):n?n(s,t):console.log(c)}}}},function(e,t,r){var n=r(79)(r(34),"Map");e.exports=n},function(e,t,r){var n=r(34).Symbol;e.exports=n},function(e,t,r){(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t;e.exports=n}).call(this,r(9))},function(e,t,r){var n=r(81),i=r(58);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},function(e,t,r){var n=r(79),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,r){var n=r(272)(Object.getPrototypeOf,Object);e.exports=n},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(273),i=r(46),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(34),o=r(275),a="object"==n(t)&&t&&!t.nodeType&&t,s=a&&"object"==n(e)&&e&&!e.nodeType&&e,c=s&&s.exports===a?i.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,r(20)(e))},function(e,t,r){var n=r(277),i=r(278),o=r(279),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,r){var n=r(283),i=r(285),o=r(82);e.exports=function(e){return o(e)?n(e,!0):i(e)}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=r(e);return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return e}},function(e,t,r){function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var o=r(5).Buffer,a=r(7),s=a.ObjectDefineProperty,c=a.ObjectKeys,u=a.ReflectApply,f=r(11).promisify.custom,l=r(298),h=l.streamReturningOperators,d=l.promiseReturningOperators,A=r(12).codes.ERR_ILLEGAL_CONSTRUCTOR,p=r(136),g=r(64),b=g.setDefaultHighWaterMark,y=g.getDefaultHighWaterMark,v=r(83).pipeline,m=r(35).destroyer,w=r(27),I=r(140),E=r(23),B=e.exports=r(84).Stream;B.isDestroyed=E.isDestroyed,B.isDisturbed=E.isDisturbed,B.isErrored=E.isErrored,B.isReadable=E.isReadable,B.isWritable=E.isWritable,B.Readable=r(62);var C,_=n(c(h));try{var k=function(){var e=C.value,t=h[e];function r(){if(this instanceof r?this.constructor:void 0)throw A();for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return B.Readable.from(u(t,this,n))}s(r,"name",{__proto__:null,value:t.name}),s(r,"length",{__proto__:null,value:t.length}),s(B.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})};for(_.s();!(C=_.n()).done;)k()}catch(e){_.e(e)}finally{_.f()}var S,Q=n(c(d));try{var x=function(){var e=S.value,t=d[e];function r(){if(this instanceof r?this.constructor:void 0)throw A();for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return u(t,this,n)}s(r,"name",{__proto__:null,value:t.name}),s(r,"length",{__proto__:null,value:t.length}),s(B.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})};for(Q.s();!(S=Q.n()).done;)x()}catch(e){Q.e(e)}finally{Q.f()}B.Writable=r(85),B.Duplex=r(24),B.Transform=r(139),B.PassThrough=r(138),B.pipeline=v;var R=r(63).addAbortSignal;B.addAbortSignal=R,B.finished=w,B.destroy=m,B.compose=p,B.setDefaultHighWaterMark=b,B.getDefaultHighWaterMark=y,s(B,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:function(){return I}}),s(v,f,{__proto__:null,enumerable:!0,get:function(){return I.pipeline}}),s(w,f,{__proto__:null,enumerable:!0,get:function(){return I.finished}}),B.Stream=B,B._isUint8Array=function(e){return e instanceof Uint8Array},B._uint8ArrayToBuffer=function(e){return o.from(e.buffer,e.byteOffset,e.byteLength)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&o.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,a,s,c){var u=d(e[i],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,a(B,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}var s=r(83).pipeline,c=r(24),u=r(35).destroyer,f=r(23),l=f.isNodeStream,h=f.isReadable,d=f.isWritable,A=f.isWebStream,p=f.isTransformStream,g=f.isWritableStream,b=f.isReadableStream,y=r(12),v=y.AbortError,m=y.codes,w=m.ERR_INVALID_ARG_VALUE,I=m.ERR_MISSING_ARGS,E=r(27);e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)throw new I("streams");if(1===t.length)return c.from(t[0]);var n,o,f,y,m,B=[].concat(t);if("function"==typeof t[0]&&(t[0]=c.from(t[0])),"function"==typeof t[t.length-1]){var C=t.length-1;t[C]=c.from(t[C])}for(var _=0;_<t.length;++_)if(l(t[_])||A(t[_])){if(_<t.length-1&&!(h(t[_])||b(t[_])||p(t[_])))throw new w("streams[".concat(_,"]"),B[_],"must be readable");if(_>0&&!(d(t[_])||g(t[_])||p(t[_])))throw new w("streams[".concat(_,"]"),B[_],"must be writable")}function k(e){var t=y;y=null,t?t(e):e?m.destroy(e):R||x||m.destroy()}var S=t[0],Q=s(t,k),x=!!(d(S)||g(S)||p(S)),R=!!(h(Q)||b(Q)||p(Q));if(m=new c({writableObjectMode:!(null==S||!S.writableObjectMode),readableObjectMode:!(null==Q||!Q.readableObjectMode),writable:x,readable:R}),x){if(l(S))m._write=function(e,t,r){S.write(e,t)?r():n=r},m._final=function(e){S.end(),o=e},S.on("drain",(function(){if(n){var e=n;n=null,e()}}));else if(A(S)){var O=p(S)?S.writable:S,D=O.getWriter();m._write=function(){var e=a(i().mark((function e(t,r,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.ready;case 3:D.write(t).catch((function(){})),n(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,r,n){return e.apply(this,arguments)}}(),m._final=function(){var e=a(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.ready;case 3:D.close().catch((function(){})),o=t,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),t(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()}var j=p(Q)?Q.readable:Q;E(j,(function(){if(o){var e=o;o=null,e()}}))}if(R)if(l(Q))Q.on("readable",(function(){if(f){var e=f;f=null,e()}})),Q.on("end",(function(){m.push(null)})),m._read=function(){for(;;){var e=Q.read();if(null===e)return void(f=m._read);if(!m.push(e))return}};else if(A(Q)){var P=p(Q)?Q.readable:Q,M=P.getReader();m._read=a(i().mark((function e(){var t,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,e.next=4,M.read();case 4:if(t=e.sent,r=t.value,n=t.done,m.push(r)){e.next=9;break}return e.abrupt("return");case 9:if(!n){e.next=12;break}return m.push(null),e.abrupt("return");case 12:e.next=17;break;case 14:return e.prev=14,e.t0=e.catch(1),e.abrupt("return");case 17:e.next=0;break;case 19:case"end":return e.stop()}}),e,null,[[1,14]])})))}return m._destroy=function(e,t){e||null===y||(e=new v),f=null,n=null,o=null,null===y?t(e):(y=t,l(Q)&&u(Q,e))},m}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&o.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,a,s,c){var u=d(e[i],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,a(B,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=r(6),l=r(7),h=l.PromisePrototypeThen,d=l.SymbolAsyncIterator,A=l.SymbolIterator,p=r(5).Buffer,g=r(12).codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_NULL_VALUES;e.exports=function(e,t,r){var n,o;if("string"==typeof t||t instanceof p)return new e(c(c({objectMode:!0},r),{},{read:function(){this.push(t),this.push(null)}}));if(t&&t[d])o=!0,n=t[d]();else{if(!t||!t[A])throw new b("iterable",["Iterable"],t);o=!1,n=t[A]()}var s=new e(c({objectMode:!0,highWaterMark:1},r)),u=!1;function l(){return(l=a(i().mark((function e(t){var r,o,a,s,c,u,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null!=t,o="function"==typeof n.throw,!r||!o){e.next=12;break}return e.next=5,n.throw(t);case 5:return a=e.sent,s=a.value,c=a.done,e.next=10,s;case 10:if(!c){e.next=12;break}return e.abrupt("return");case 12:if("function"!=typeof n.return){e.next=19;break}return e.next=15,n.return();case 15:return u=e.sent,f=u.value,e.next=19,f;case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return(g=a(i().mark((function e(){var t,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!o){e.next=7;break}return e.next=4,n.next();case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0=n.next();case 8:if(t=e.t0,r=t.value,!t.done){e.next=15;break}s.push(null),e.next=33;break;case 15:if(!r||"function"!=typeof r.then){e.next=21;break}return e.next=18,r;case 18:e.t1=e.sent,e.next=22;break;case 21:e.t1=r;case 22:if(null!==(a=e.t1)){e.next=28;break}throw u=!1,new y;case 28:if(!s.push(a)){e.next=32;break}return e.abrupt("continue",39);case 32:u=!1;case 33:e.next=38;break;case 35:e.prev=35,e.t2=e.catch(0),s.destroy(e.t2);case 38:return e.abrupt("break",41);case 39:e.next=0;break;case 41:case"end":return e.stop()}}),e,null,[[0,35]])})))).apply(this,arguments)}return s._read=function(){u||(u=!0,function(){g.apply(this,arguments)}())},s._destroy=function(e,t){h(function(e){return l.apply(this,arguments)}(e),(function(){return f.nextTick(t,e)}),(function(r){return f.nextTick(t,r||e)}))},s}},function(e,t,r){"use strict";var n=r(7).ObjectSetPrototypeOf;e.exports=o;var i=r(139);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(7),c=s.ObjectSetPrototypeOf,u=s.Symbol;e.exports=A;var f=r(12).codes.ERR_METHOD_NOT_IMPLEMENTED,l=r(24),h=r(64).getHighWaterMark;c(A.prototype,l.prototype),c(A,l);var d=u("kCallback");function A(e){if(!(this instanceof A))return new A(e);var t=e?h(this,e,"readableHighWaterMark",!0):null;0===t&&(e=o(o({},e),{},{highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0})),l.call(this,e),this._readableState.sync=!1,this[d]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",g)}function p(e){var t=this;"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((function(r,n){r?e?e(r):t.destroy(r):(null!=n&&t.push(n),t.push(null),e&&e())}))}function g(){this._final!==p&&p.call(this)}A.prototype._final=p,A.prototype._transform=function(e,t,r){throw new f("_transform()")},A.prototype._write=function(e,t,r){var n=this,i=this._readableState,o=this._writableState,a=i.length;this._transform(e,t,(function(e,t){e?r(e):(null!=t&&n.push(t),o.ended||a===i.length||i.length<i.highWaterMark?r():n[d]=r)}))},A.prototype._read=function(){if(this[d]){var e=this[d];this[d]=null,e()}}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(7),o=i.ArrayPrototypePop,a=i.Promise,s=r(23),c=s.isIterable,u=s.isNodeStream,f=s.isWebStream,l=r(83).pipelineImpl,h=r(27).finished;r(135),e.exports={finished:h,pipeline:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new a((function(e,r){var i,a,s=t[t.length-1];if(s&&"object"===n(s)&&!u(s)&&!c(s)&&!f(s)){var h=o(t);i=h.signal,a=h.end}l(t,(function(t,n){t?r(t):e(n)}),{signal:i,end:a})}))}}},function(e,t,r){"use strict";var n=r(4).Buffer,i=r(142).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){e.exports=i;var n=r(19).EventEmitter;function i(){n.call(this)}r(3)(i,n),i.Readable=r(87),i.Writable=r(307),i.Duplex=r(308),i.Transform=r(309),i.PassThrough=r(310),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var i=r(29);e.exports=v;var o,a=r(302);v.ReadableState=y;r(19).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(144),u=r(88).Buffer,f=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(22));l.inherits=r(3);var h=r(303),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var A,p=r(304),g=r(145);l.inherits(v,c);var b=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(o=o||r(32));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(A||(A=r(28).StringDecoder),this.decoder=new A(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||r(32),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function m(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):C(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),C(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.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),m(this,e,t,!1,r)},v.prototype.unshift=function(e){return m(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return A||(A=r(28).StringDecoder),this._readableState.decoder=new A(e),this._readableState.encoding=e,this};function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(B,e):B(e))}function B(e){d("emit readable"),e.emit("readable"),Q(e)}function C(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(_,e,t))}function _(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function k(e){d("readable nexttick read 0"),e.read(0)}function S(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Q(e),t.flowing&&!t.reading&&e.read(0)}function Q(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){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.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}v.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):E(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(r,t))),null===(n=e>0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:v;function u(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function f(){d("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,Q(e))}}(r);e.on("drain",l);var h=!1;var A=!1;function p(t){d("ondata"),A=!1,!1!==e.write(t)||A||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!h&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,A=!0),r.pause())}function g(t){d("onerror",t),v(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),v()}function y(){d("onfinish"),e.removeListener("close",b),v()}function v(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",b),e.once("finish",y),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):i.nextTick(k,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(S,e,t))}(this,e)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=x}).call(this,r(9),r(6))},function(e,t,r){e.exports=r(19).EventEmitter},function(e,t,r){"use strict";var n=r(29);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(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||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";e.exports=a;var n=r(32),i=Object.create(r(22));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.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",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(3),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){var n=r(3),i=r(37),o=r(4).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,A=0|this._f,p=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((t=r[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[b-7]+d(r[b-15])+r[b-16];for(var y=0;y<64;++y){var v=g+h(c)+u(c,A,p)+a[y]+r[y]|0,m=l(n)+f(n,i,o)|0;g=p,p=A,A=c,c=s+v|0,s=o,o=i,i=n,n=v+m|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=A+this._f|0,this._g=p+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,r){var n=r(3),i=r(37),o=r(4).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function A(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,v=0|this._hh,m=0|this._al,w=0|this._bl,I=0|this._cl,E=0|this._dl,B=0|this._el,C=0|this._fl,_=0|this._gl,k=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var Q=t[S-30],x=t[S-30+1],R=d(Q,x),O=A(x,Q),D=p(Q=t[S-4],x=t[S-4+1]),j=g(x,Q),P=t[S-14],M=t[S-14+1],N=t[S-32],T=t[S-32+1],L=O+M|0,F=R+P+b(L,O)|0;F=(F=F+D+b(L=L+j|0,j)|0)+N+b(L=L+T|0,T)|0,t[S]=F,t[S+1]=L}for(var U=0;U<160;U+=2){F=t[U],L=t[U+1];var G=f(r,n,i),H=f(m,w,I),q=l(r,m),K=l(m,r),Y=h(s,B),J=h(B,s),z=a[U],W=a[U+1],V=u(s,c,y),Z=u(B,C,_),X=k+J|0,$=v+Y+b(X,k)|0;$=($=($=$+V+b(X=X+Z|0,Z)|0)+z+b(X=X+W|0,W)|0)+F+b(X=X+L|0,L)|0;var ee=K+H|0,te=q+G+b(ee,K)|0;v=y,k=_,y=c,_=C,c=s,C=B,s=o+$+b(B=E+X|0,E)|0,o=i,E=I,i=n,I=w,n=r,w=m,r=$+te+b(m=X+ee|0,X)|0}this._al=this._al+m|0,this._bl=this._bl+w|0,this._cl=this._cl+I|0,this._dl=this._dl+E|0,this._el=this._el+B|0,this._fl=this._fl+C|0,this._gl=this._gl+_|0,this._hl=this._hl+k|0,this._ah=this._ah+r+b(this._al,m)|0,this._bh=this._bh+n+b(this._bl,w)|0,this._ch=this._ch+i+b(this._cl,I)|0,this._dh=this._dh+o+b(this._dl,E)|0,this._eh=this._eh+s+b(this._el,B)|0,this._fh=this._fh+c+b(this._fl,C)|0,this._gh=this._gh+y+b(this._gl,_)|0,this._hh=this._hh+v+b(this._hl,k)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){"use strict";var n=r(3),i=r(315),o=r(30),a=r(4).Buffer,s=r(150),c=r(91),u=r(92),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<r&&(t=a.concat([t,f],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:u(e),this._hash.update(n)}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(s,t):new l(e,t)}},function(e,t,r){var n=r(86);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,r){t.pbkdf2=r(317),t.pbkdf2Sync=r(155)},function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t,r){var n;if(t.process&&t.process.browser)n="utf-8";else if(t.process&&t.process.version){n=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,r(9),r(6))},function(e,t,r){var n=r(150),i=r(91),o=r(92),a=r(4).Buffer,s=r(153),c=r(154),u=r(156),f=a.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length<c&&(t=a.concat([t,f],c));for(var u=a.allocUnsafe(c+l[e]),h=a.allocUnsafe(c+l[e]),d=0;d<c;d++)u[d]=54^t[d],h[d]=92^t[d];var A=a.allocUnsafe(c+r+4);u.copy(A,0,0,c),this.ipad1=A,this.ipad2=u,this.opad=h,this.alg=e,this.blocksize=c,this.hash=s,this.size=l[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){s(r,n);var o=new h(i=i||"sha1",e=u(e,c,"Password"),(t=u(t,c,"Salt")).length),f=a.allocUnsafe(n),d=a.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var A=0,p=l[i],g=Math.ceil(n/p),b=1;b<=g;b++){d.writeUInt32BE(b,t.length);for(var y=o.run(d,o.ipad1),v=y,m=1;m<r;m++){v=o.run(v,o.ipad2);for(var w=0;w<p;w++)y[w]^=v[w]}y.copy(f,A),A+=p}return f}},function(e,t,r){var n=r(4).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,c=0;c<s;c++)o<<=1,o|=e>>>n[c]&1;for(c=s;c<n.length;c++)a<<=1,a|=t>>>n[c]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(14),i=r(3),o=r(157),a=r(93);function s(){this.tmp=new Array(2),this.keys=null}function c(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,a),e.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=u[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},c.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,c=0;c<e.keys.length;c+=2){var u=e.keys[c],f=e.keys[c+1];o.expand(s,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(u,f),h=s;s=(a^o.permute(l))>>>0,a=h}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],f=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(u,f),h=a;a=(s^o.permute(l))>>>0,s=h}o.rip(a,s,n,i)}},function(e,t,r){var n=r(50),i=r(4).Buffer,o=r(160);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var c=a(e),u=o+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,r){var n=r(65),i=r(4).Buffer,o=r(30),a=r(3),s=r(330),c=r(50),u=r(160);function f(e,t,r,a){o.call(this);var c=i.alloc(4,0);this._cipher=new n.AES(t);var f=this._cipher.encryptBlock(c);this._ghash=new s(f),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var c=8*o,f=i.alloc(8);f.writeUIntBE(c,0,8),n.update(f),e._finID=n.state;var l=i.from(e._finID);return u(l),l}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f},function(e,t,r){var n=r(65),i=r(4).Buffer,o=r(30);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,r){var n=r(36);e.exports=y,y.simpleSieve=g,y.fermatTest=b;var i=r(2),o=new i(24),a=new(r(165)),s=new i(1),c=new i(2),u=new i(5),f=(new i(16),new i(8),new i(10)),l=new i(3),h=(new i(7),new i(11)),d=new i(4),A=(new i(12),null);function p(){if(null!==A)return A;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return A=e,e}function g(e){for(var t=p(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,A;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(f).cmp(l);)r.iadd(d)}else for(;r.mod(o).cmp(h);)r.iadd(d);if(g(A=r.shrn(1))&&g(r)&&b(A)&&b(r)&&a.test(A)&&a.test(r))return r}}},function(e,t,r){var n=r(2),i=r(51);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),f=s.toRed(o);t>0;t--){var l=this._randrange(new n(2),s);r&&r(l);var h=l.toRed(o).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(f)){for(var d=1;d<c;d++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(f))break}if(d===c)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),u=a.toRed(i);t>0;t--){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var h=f.toRed(i).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var d=1;d<s;d++){if(0===(h=h.redSqr()).cmp(o))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(u))break}if(d===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";(function(t,n){var i=r(29);e.exports=v;var o,a=r(339);v.ReadableState=y;r(19).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(167),u=r(96).Buffer,f=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(22));l.inherits=r(3);var h=r(340),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var A,p=r(341),g=r(168);l.inherits(v,c);var b=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(o=o||r(38));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(A||(A=r(28).StringDecoder),this.decoder=new A(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||r(38),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function m(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):C(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),C(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.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),m(this,e,t,!1,r)},v.prototype.unshift=function(e){return m(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return A||(A=r(28).StringDecoder),this._readableState.decoder=new A(e),this._readableState.encoding=e,this};function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(B,e):B(e))}function B(e){d("emit readable"),e.emit("readable"),Q(e)}function C(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(_,e,t))}function _(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function k(e){d("readable nexttick read 0"),e.read(0)}function S(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Q(e),t.flowing&&!t.reading&&e.read(0)}function Q(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){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.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}v.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):E(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(r,t))),null===(n=e>0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:v;function u(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function f(){d("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,Q(e))}}(r);e.on("drain",l);var h=!1;var A=!1;function p(t){d("ondata"),A=!1,!1!==e.write(t)||A||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!h&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,A=!0),r.pause())}function g(t){d("onerror",t),v(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),v()}function y(){d("onfinish"),e.removeListener("close",b),v()}function v(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",b),e.once("finish",y),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):i.nextTick(k,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(S,e,t))}(this,e)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=x}).call(this,r(9),r(6))},function(e,t,r){e.exports=r(19).EventEmitter},function(e,t,r){"use strict";var n=r(29);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(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||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";(function(t,n,i){var o=r(29);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;y.WritableState=b;var u=Object.create(r(22));u.inherits=r(3);var f={deprecate:r(90)},l=r(167),h=r(96).Buffer,d=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var A,p=r(168);function g(){}function b(e,t){s=s||r(38),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(B,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),B(e,t))}(e,r,n,t,i);else{var a=I(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?c(m,e,r,a,i):m(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||r(38),!(A.call(y,this)||this instanceof s))return new y(e);this._writableState=new b(e,this),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)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),B(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var r=I(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(y,l),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!A.call(this,e)||this===y&&(e&&e._writableState instanceof b)}})):A=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return c}(this,i,s,e,t,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(6),r(76).setImmediate,r(9))},function(e,t,r){"use strict";e.exports=a;var n=r(38),i=Object.create(r(22));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.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",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(3),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){"use strict";var n=t;n.version=r(345).version,n.utils=r(15),n.rand=r(51),n.curve=r(172),n.curves=r(99),n.ec=r(350),n.eddsa=r(353)},function(e,t,r){"use strict";var n=t;n.base=r(67),n.short=r(346),n.mont=r(347),n.edwards=r(348)},function(e,t,r){"use strict";var n=r(8),i=r(98),o=r(14);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(3),o=r(53).Reporter,a=r(5).Buffer;function s(e,t){o.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function c(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof c||(e=new c(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+n(e));this.value=e,this.length=e.length}}i(s,o),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=c,c.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(361)},function(e,t,r){var n=r(3),i=r(52),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function f(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=c,c.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(u,o.Node),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=f(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){var n=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError(r))return r;var n,i=l(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,c=i[0]%40;if(n=r?i:[s,c].concat(i.slice(1)),t){var u=t[n.join(" ")];void 0===u&&(u=t[n.join(".")]),void 0!==u&&(n=u)}return n},u.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),c=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){var n=r(3),i=r(5).Buffer,o=r(52),a=o.base,s=o.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function f(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o,a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(o=new i(2+c))[0]=a,o[1]=128|c;u=1+c;for(var f=n.length;f>0;u--,f>>=8)o[u]=255&f;return this._createEncoderBuffer([o,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,r){"use strict";var n=t;n.base=r(69),n.short=r(373),n.mont=r(374),n.edwards=r(375)},function(e,t,r){var n=r(49),i=r(4).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){var n=r(2),i=r(4).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){"use strict";(function(t,n){var i;e.exports=C,C.ReadableState=B;r(19).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=r(184),s=r(5).Buffer,c=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,f=r(389);u=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,d,A=r(390),p=r(185),g=r(186).getHighWaterMark,b=r(39).codes,y=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,m=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3)(C,a);var I=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function B(e,t,n){i=i||r(40),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",n),this.buffer=new A,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&&(l||(l=r(28).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function C(e){if(i=i||r(40),!(this instanceof C))return new C(e);var t=this instanceof i;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)),a.call(this)}function _(e,t,r,n,i){u("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,x(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)I(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?I(e,new w):k(e,a,t,!0);else if(a.ended)I(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):R(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,R(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(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&&Q(e)),R(e,t)}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),C.prototype.destroy=p.destroy,C.prototype._undestroy=p.undestroy,C.prototype._destroy=function(e,t){t(e)},C.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=s.from(e,t),t=""),r=!0),_(this,e,t,!1,r)},C.prototype.unshift=function(e){return _(this,e,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(e){l||(l=r(28).StringDecoder);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Q(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(x,e))}function x(e){var t=e._readableState;u("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,M(e)}function R(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){u("readable nexttick read 0"),e.read(0)}function P(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){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);var r}function T(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(L,t,e))}function L(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}C.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):Q(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},C.prototype._read=function(e){I(this,new m("_read()"))},C.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:g;function s(t,n){u("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),e.removeListener("close",A),e.removeListener("finish",p),e.removeListener("drain",f),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){u("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",f);var l=!1;function h(t){u("ondata");var n=e.write(t);u("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!l&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){u("onerror",t),g(),e.removeListener("error",d),0===o(e,"error")&&I(e,t)}function A(){e.removeListener("finish",p),g()}function p(){u("onfinish"),e.removeListener("close",A),g()}function g(){u("unpipe"),r.unpipe(e)}return r.on("data",h),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)}(e,"error",d),e.once("close",A),e.once("finish",p),e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e},C.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},C.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(j,this))),r},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(D,this),r},C.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(D,this),t},C.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(P,e,t))}(this,e)),e.paused=!1,this},C.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(392)),h(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),C._fromList=N,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(C.from=function(e,t){return void 0===d&&(d=r(393)),d(C,e,t)})}).call(this,r(9),r(6))},function(e,t,r){e.exports=r(19).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),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,r(6))},function(e,t,r){"use strict";var n=r(39).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=C,C.WritableState=B;var a={deprecate:r(90)},s=r(184),c=r(5).Buffer,u=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,l=r(185),h=r(186).getHighWaterMark,d=r(39).codes,A=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,m=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,I=l.errorOrDestroy;function E(){}function B(e,t,a){o=o||r(40),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(R,e,t),e._writableState.errorEmitted=!0,I(e,i)):(o(i),e._writableState.errorEmitted=!0,I(e,i),R(e,t))}(e,r,i,t,o);else{var a=Q(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),i?n.nextTick(k,e,r,a,o):k(e,r,a,o)}}(t,e)},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 i(this)}function C(e){var t=this instanceof(o=o||r(40));if(!t&&!f.call(C,this))return new C(e);this._writableState=new B(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)),s.call(this)}function _(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function k(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),R(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,_(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(_(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function Q(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&I(e,r),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var r=Q(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3)(C,s),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===C&&(e&&e._writableState instanceof B)}})):f=function(e){return e instanceof this},C.prototype.pipe=function(){I(this,new b)},C.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof u);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(e,t){var r=new m;I(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new A("chunk",["string","Buffer"],r)),!o||(I(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new p("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,R(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=l.destroy,C.prototype._undestroy=l.undestroy,C.prototype._destroy=function(e,t){t(e)}}).call(this,r(9),r(6))},function(e,t,r){"use strict";e.exports=f;var n=r(39).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(40);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);c.call(this,e),this._transformState={afterTransform:u.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 e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(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 a;return e.push(null)}r(3)(f,c),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.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))},f.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return H}));var n=r(2),i=r.n(n),o=r(8),a=r.n(o);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function c(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var u=f;function f(e,t){if(!e)throw new Error(t||"Assertion failed")}f.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var l=c((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),h=c((function(e,t){var r=t;r.assert=u,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c,r[0].push(a),s=0==(1&u)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=h.getNAF,A=h.getJSF,p=h.assert;function g(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var b=g;function y(e,t){this.curve=e,this.type=t,this.precomputed=null}g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){p(e.precomputed);var r=e._getDoubles(),n=d(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var c=o+r.step-1;c>=o;c--)a=(a<<1)+n[c];s.push(a)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),l=i;l>0;l--){for(o=0;o<s.length;o++)(a=s[o])===l?f=f.mixedAdd(r.points[o]):a===-l&&(f=f.mixedAdd(r.points[o].neg()));u=u.add(f)}return u.toP()},g.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=d(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var c=0;s>=0&&0===o[s];s--)c++;if(s>=0&&c++,a=a.dblp(c),s<0)break;var u=o[s];p(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},g.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,c=this._wnafT1,u=this._wnafT2,f=this._wnafT3,l=0;for(o=0;o<n;o++){var h=(s=t[o])._getNAFPoints(e);c[o]=h.wnd,u[o]=h.points}for(o=n-1;o>=1;o-=2){var p=o-1,g=o;if(1===c[p]&&1===c[g]){var b=[t[p],null,null,t[g]];0===t[p].y.cmp(t[g].y)?(b[1]=t[p].add(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg())):0===t[p].y.cmp(t[g].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].add(t[g].neg())):(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=A(r[p],r[g]);for(l=Math.max(v[0].length,l),f[p]=new Array(l),f[g]=new Array(l),a=0;a<l;a++){var m=0|v[0][a],w=0|v[1][a];f[p][a]=y[3*(m+1)+(w+1)],f[g][a]=0,u[p]=b}}else f[p]=d(r[p],c[p],this._bitLength),f[g]=d(r[g],c[g],this._bitLength),l=Math.max(f[p].length,l),l=Math.max(f[g].length,l)}var I=this.jpoint(null,null,null),E=this._wnafT4;for(o=l;o>=0;o--){for(var B=0;o>=0;){var C=!0;for(a=0;a<n;a++)E[a]=0|f[a][o],0!==E[a]&&(C=!1);if(!C)break;B++,o--}if(o>=0&&B++,I=I.dblp(B),o<0)break;for(a=0;a<n;a++){var _=E[a];0!==_&&(_>0?s=u[a][_-1>>1]:_<0&&(s=u[a][-_-1>>1].neg()),I="affine"===s.type?I.mixedAdd(s):I.add(s))}}for(o=0;o<n;o++)u[o]=null;return i?I:I.toP()},g.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},g.prototype.decodePoint=function(e,t){e=h.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?p(e[e.length-1]%2==0):7===e[0]&&p(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(e){return this.encode(e,!0)},y.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},y.prototype.encode=function(e,t){return h.encode(this._encode(t),e)},y.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},y.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},y.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var v=c((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),m=h.assert;function w(e){b.call(this,"short",e),this.a=new i.a(e.a,16).toRed(this.red),this.b=new i.a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}v(w,b);var I=w;function E(e,t,r,n){b.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(t,16),this.y=new i.a(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function B(e,t,r,n){b.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(t,16),this.y=new i.a(r,16),this.z=new i.a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i.a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i.a(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],m(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i.a(e.a,16),b:new i.a(e.b,16)}})):this._getEndoBasis(r)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.a.mont(e),r=new i.a(2).toRed(t).redInvm(),n=r.redNeg(),o=new i.a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),A=new i.a(1),p=new i.a(0),g=new i.a(0),b=new i.a(1),y=0;0!==h.cmpn(0);){var v=d.div(h);u=d.sub(v.mul(h)),f=g.sub(v.mul(A));var m=b.sub(v.mul(p));if(!n&&u.cmp(l)<0)t=c.neg(),r=A,n=u.neg(),o=f;else if(n&&2==++y)break;c=u,d=h,h=u,g=A,A=f,b=p,p=m}a=u.neg(),s=f;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},w.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return u},v(E,b.BasePoint),w.prototype.point=function(e,t,r){return new E(this,e,t,r)},w.prototype.pointFromJSON=function(e,t){return E.fromJSON(this,e,t)},E.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},E.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},E.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},E.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},E.prototype.isInfinity=function(){return this.inf},E.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},E.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},E.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},E.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},E.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},E.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},E.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(B,b.BasePoint),w.prototype.jpoint=function(e,t,r){return new B(this,e,t,r)},B.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},B.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},B.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),l=n.redMul(u),h=c.redSqr().redIAdd(f).redISub(l).redISub(l),d=c.redMul(l.redISub(h)).redISub(o.redMul(f)),A=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,A)},B.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=r.redMul(c),l=s.redSqr().redIAdd(u).redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul(u)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},B.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=u.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(c)),A=o.redMul(l),p=d.redSqr().redISub(A.redAdd(A)),g=A.redISub(p),b=d.redMul(g);b=b.redIAdd(b).redISub(h);var y=u.redMul(s);t+1<e&&(c=c.redMul(h)),o=p,s=y,u=b}return this.curve.jpoint(o,u.redMul(i),s)},B.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},B.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var A=f.redAdd(f).redIAdd(f),p=A.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=p.redISub(d).redISub(d),t=A.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},B.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var A=h.redIAdd(h),p=(A=A.redIAdd(A)).redAdd(A);e=d.redSqr().redISub(p),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(A.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},B.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),f=s.redSqr().redISub(u.redAdd(u)),l=u.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(l).redISub(h),A=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,A)},B.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),f=t.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,h,d)},B.prototype.mul=function(e,t){return e=new i.a(e,t),this.curve._wnafMul(this,e)},B.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},B.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},B.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},B.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var C=c((function(e,t){var r=t;r.base=b,r.short=I,r.mont=null,r.edwards=null})),_=c((function(e,t){var r,n=t,i=h.assert;function o(e){"short"===e.type?this.curve=new C.short(e):"edwards"===e.type?this.curve=new C.edwards(e):this.curve=new C.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function k(e){if(!(this instanceof k))return new k(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),n=l.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var S=k;k.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},k.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},k.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},k.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=l.toArray(e,t),r=l.toArray(r,n),u(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},k.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=l.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,l.encode(o,t)};var Q=h.assert;function x(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var R=x;x.fromPublic=function(e,t,r){return t instanceof x?t:new x(e,{pub:t,pubEnc:r})},x.fromPrivate=function(e,t,r){return t instanceof x?t:new x(e,{priv:t,privEnc:r})},x.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},x.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},x.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},x.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},x.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?Q(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Q(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},x.prototype.derive=function(e){return e.validate()||Q(e.validate(),"public point not validated"),e.mul(this.priv).getX()},x.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},x.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},x.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var O=h.assert;function D(e,t){if(e instanceof D)return e;this._importDER(e,t)||(O(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var j=D;function P(){this.place=0}function M(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function N(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function T(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}D.prototype._importDER=function(e,t){e=h.toArray(e,t);var r=new P;if(48!==e[r.place++])return!1;var n=M(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=M(e,r);if(!1===o)return!1;var a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var s=M(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var c=e.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new i.a(a),this.s=new i.a(c),this.recoveryParam=null,!0},D.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=N(t),r=N(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];T(n,t.length),(n=n.concat(t)).push(2),T(n,r.length);var i=n.concat(r),o=[48];return T(o,i.length),o=o.concat(i),h.encode(o,e)};var L=function(){throw new Error("unsupported")},F=h.assert;function U(e){if(!(this instanceof U))return new U(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(_,e),"Unknown curve "+e),e=_[e]),e instanceof _.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var G=U;U.prototype.keyPair=function(e){return new R(this,e)},U.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},U.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},U.prototype.genKeyPair=function(e){e||(e={});for(var t=new S({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(r));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},U.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},U.prototype.sign=function(e,t,r,n){"object"===s(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i.a(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new S({hash:this.hash,entropy:a,nonce:c,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new i.a(1)),l=0;;l++){var h=n.k?n.k(l):new i.a(u.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var d=this.g.mul(h);if(!d.isInfinity()){var A=d.getX(),p=A.umod(this.n);if(0!==p.cmpn(0)){var g=h.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(d.getY().isOdd()?1:0)|(0!==A.cmp(p)?2:0);return n.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new j({r:p,s:g,recoveryParam:b})}}}}}},U.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i.a(e,16)),r=this.keyFromPublic(r,n);var o=(t=new j(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},U.prototype.recoverPubKey=function(e,t,r,n){F((3&r)===r,"The recovery param is more than two bits"),t=new j(t,n);var o=this.n,a=new i.a(e),s=t.r,c=t.s,u=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var l=t.r.invm(o),h=o.sub(a).mul(l).umod(o),d=c.mul(l).umod(o);return this.g.mulAdd(h,s,d)},U.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new j(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var H=c((function(e,t){var r=t;r.version="6.5.4",r.utils=h,r.rand=function(){throw new Error("unsupported")},r.curve=C,r.curves=_,r.ec=G,r.eddsa=null})).ec}).call(this,r(9))},function(e,t,r){(function(e,n,i){var o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
50
|
+
/**
|
|
51
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
52
|
+
*
|
|
53
|
+
* @version 0.8.0
|
|
54
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
55
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
56
|
+
* @license MIT
|
|
57
|
+
*/!function(){"use strict";var s="input is invalid type",c="object"===("undefined"==typeof window?"undefined":a(window)),u=c?window:{};u.JS_SHA3_NO_WINDOW&&(c=!1);var f=!c&&"object"===("undefined"==typeof self?"undefined":a(self));!u.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?u=n:f&&(u=self);var l=!u.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(75),d=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,A="0123456789abcdef".split(""),p=[4,1024,262144,67108864],g=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],v=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var I=function(e,t,r){return function(n){return new N(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,i){return new N(e,t,i).update(n)[r]()}},B=function(e,t,r){return function(t,n,i,o){return Q["cshake"+e].update(t,n,i,o)[r]()}},C=function(e,t,r){return function(t,n,i,o){return Q["kmac"+e].update(t,n,i,o)[r]()}},_=function(e,t,r,n){for(var i=0;i<m.length;++i){var o=m[i];e[o]=t(r,n,o)}return e},k=function(e,t){var r=I(e,t,"hex");return r.create=function(){return new N(e,t,e)},r.update=function(e){return r.create().update(e)},_(r,I,e,t)},S=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:k},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:k},{name:"shake",padding:[31,7936,2031616,520093696],bits:v,createMethod:function(e,t){var r=E(e,t,"hex");return r.create=function(r){return new N(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},_(r,E,e,t)}},{name:"cshake",padding:p,bits:v,createMethod:function(e,t){var r=w[e],n=B(e,0,"hex");return n.create=function(n,i,o){return i||o?new N(e,t,n).bytepad([i,o],r):Q["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},_(n,B,e,t)}},{name:"kmac",padding:p,bits:v,createMethod:function(e,t){var r=w[e],n=C(e,0,"hex");return n.create=function(n,i,o){return new T(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},_(n,C,e,t)}}],Q={},x=[],R=0;R<S.length;++R)for(var O=S[R],D=O.bits,j=0;j<D.length;++j){var P=O.name+"_"+D[j];if(x.push(P),Q[P]=O.createMethod(D[j],O.padding),"sha3"!==O.name){var M=O.name+D[j];x.push(M),Q[M]=Q[P]}}function N(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function T(e,t,r){N.call(this,e,t,r)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=a(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}for(var n,i,o=this.blocks,c=this.byteCount,u=e.length,f=this.blockCount,l=0,h=this.s;l<u;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<f+1;++n)o[n]=0;if(t)for(n=this.start;l<u&&n<c;++l)o[n>>2]|=e[l]<<g[3&n++];else for(n=this.start;l<u&&n<c;++l)(i=e.charCodeAt(l))<128?o[n>>2]|=i<<g[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<g[3&n++],o[n>>2]|=(128|63&i)<<g[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<g[3&n++],o[n>>2]|=(128|i>>6&63)<<g[3&n++],o[n>>2]|=(128|63&i)<<g[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<g[3&n++],o[n>>2]|=(128|i>>12&63)<<g[3&n++],o[n>>2]|=(128|i>>6&63)<<g[3&n++],o[n>>2]|=(128|63&i)<<g[3&n++]);if(this.lastByteIndex=n,n>=c){for(this.start=n-c,this.block=o[f],n=0;n<f;++n)h[n]^=o[n];L(h),this.reset=!0}else this.start=n}return this},N.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},N.prototype.encodeString=function(e){var t,r=a(e);if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var c=e.charCodeAt(o);c<128?n+=1:c<2048?n+=2:c<55296||c>=57344?n+=3:(c=65536+((1023&c)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},N.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=A[e>>4&15]+A[15&e]+A[e>>12&15]+A[e>>8&15]+A[e>>20&15]+A[e>>16&15]+A[e>>28&15]+A[e>>24&15];a%t==0&&(L(r),o=0)}return i&&(e=r[o],s+=A[e>>4&15]+A[15&e],i>1&&(s+=A[e>>12&15]+A[e>>8&15]),i>2&&(s+=A[e>>20&15]+A[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)c[a]=r[o];a%t==0&&L(r)}return i&&(c[o]=r[o],e=e.slice(0,s)),e},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&L(n)}return o&&(e=s<<2,t=n[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},T.prototype=new N,T.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var L=function(e){var t,r,n,i,o,a,s,c,u,f,l,h,d,A,p,g,y,v,m,w,I,E,B,C,_,k,S,Q,x,R,O,D,j,P,M,N,T,L,F,U,G,H,q,K,Y,J,z,W,V,Z,X,$,ee,te,re,ne,ie,oe,ae,se,ce,ue,fe;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|u>>>31),r=o^(u<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(h<<1|d>>>31),r=u^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,A=e[0],p=e[1],J=e[11]<<4|e[10]>>>28,z=e[10]<<4|e[11]>>>28,Q=e[20]<<3|e[21]>>>29,x=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,P=e[2]<<1|e[3]>>>31,M=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,W=e[22]<<10|e[23]>>>22,V=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,N=e[14]<<6|e[15]>>>26,T=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,m=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,j=e[44]<<29|e[45]>>>3,C=e[6]<<28|e[7]>>>4,_=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,I=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,S=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,G=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,B=e[49]<<14|e[48]>>>18,e[0]=A^~g&v,e[1]=p^~y&m,e[10]=C^~k&Q,e[11]=_^~S&x,e[20]=P^~N&L,e[21]=M^~T&F,e[30]=K^~J&W,e[31]=Y^~z&V,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&w,e[3]=y^~m&I,e[12]=k^~Q&R,e[13]=S^~x&O,e[22]=N^~L&U,e[23]=T^~F&G,e[32]=J^~W&Z,e[33]=z^~V&X,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~w&E,e[5]=m^~I&B,e[14]=Q^~R&D,e[15]=x^~O&j,e[24]=L^~U&H,e[25]=F^~G&q,e[34]=W^~Z&$,e[35]=V^~X&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&fe,e[6]=w^~E&A,e[7]=I^~B&p,e[16]=R^~D&C,e[17]=O^~j&_,e[26]=U^~H&P,e[27]=G^~q&M,e[36]=Z^~$&K,e[37]=X^~ee&Y,e[46]=se^~ue&te,e[47]=ce^~fe&re,e[8]=E^~A&g,e[9]=B^~p&y,e[18]=D^~C&k,e[19]=j^~_&S,e[28]=H^~P&N,e[29]=q^~M&T,e[38]=$^~K&J,e[39]=ee^~Y&z,e[48]=ue^~te&ne,e[49]=fe^~re&ie,e[0]^=b[n],e[1]^=b[n+1]};if(l)i.exports=Q;else{for(R=0;R<x.length;++R)u[x[R]]=Q[x[R]];h&&(void 0===(o=function(){return Q}.call(t,r,t,i))||(i.exports=o))}}()}).call(this,r(6),r(9),r(20)(e))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="random/5.7.0"},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(17),i=r(41);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var c=function(){return e=function e(t,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var a=new n.a(t);this.wasm=t,this.utils=a,this.context=t._NewCryptoContext(null,0),this.scratchBuf=new i.a(t),this.sk=r,this.skBuf=a.arrayToBuf(r),this.symKey=o,this.symKeyBuf=a.arrayToBuf(o)},(t=[{key:"clearBuf",value:function(){this.scratchBuf.clear()}},{key:"free",value:function(){if(this.context){var e=this.wasm;e._FreeCryptoContext(this.context),this.scratchBuf.free(),e._free(this.skBuf.ptr),e._free(this.symKeyBuf.ptr),this.context=null,this.scratchBuf=null,this.sk=null,this.skBuf=null,this.symKey=null,this.symKeyBuf=null,this.utils=null,this.wasm=null}}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(17),i=r(41);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var c=function(){return e=function e(t,r,o,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var c=new n.a(t),u=n.a.randomBytes(t._EMS_SEED_SIZE_()),f=c.arrayToSmartBuf(u);this.wasm=t,this.utils=c,this.context=t._NewCryptoContext(f.ptr,f.len),this.iv=s,this.pk=r,this.pkBuf=c.arrayToBuf(r),this.scratchBuf=new i.a(t),this.sk=o,this.skBuf=c.arrayToBuf(o),this.symKey=a,this.symKeyBuf=c.arrayToBuf(a)},(t=[{key:"clearBuf",value:function(){this.scratchBuf.clear()}},{key:"free",value:function(){if(this.context){var e=this.wasm;e._FreeCryptoContext(this.context),e._free(this.pkBuf.ptr),this.scratchBuf.free(),e._free(this.symKeyBuf.ptr),this.context=null,this.iv=null,this.pk=null,this.pkBuf=null,this.scratchBuf=null,this.sk=null,this.skBuf=null,this.symKey=null,this.symKeyBuf=null,this.wasm=null,this.utils=null}}},{key:"generateNextBlockIV",value:function(){for(var e=n.a.randomBytes(this.iv.length),t=0;t<this.iv.length;t++)e[t]^=this.iv[t];return e}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=(i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r;o.ready=new Promise((function(r,n){e=r,t=n}));var a,s=Object.assign({},o),c=!0,u=!1,f="";function l(e){return o.locateFile?o.locateFile(e,f):f+e}(c||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),i&&(f=i),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(a=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var h,d,A=o.print||console.log.bind(console),p=o.printErr||console.error.bind(console);Object.assign(o,s),s=null,o.arguments&&o.arguments,o.thisProgram&&o.thisProgram,o.quit&&o.quit,o.wasmBinary&&(h=o.wasmBinary),o.noExitRuntime,"object"!=("undefined"==typeof WebAssembly?"undefined":n(WebAssembly))&&L("no native wasm support detected");var g,b,y,v,m,w,I,E=!1;function B(){var e=d.buffer;o.HEAP8=g=new Int8Array(e),o.HEAP16=y=new Int16Array(e),o.HEAPU8=b=new Uint8Array(e),o.HEAPU16=new Uint16Array(e),o.HEAP32=v=new Int32Array(e),o.HEAPU32=m=new Uint32Array(e),o.HEAPF32=w=new Float32Array(e),o.HEAPF64=I=new Float64Array(e)}var C=[],_=[],k=[];function S(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)R(o.preRun.shift());z(C)}function Q(){z(_)}function x(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)D(o.postRun.shift());z(k)}function R(e){C.unshift(e)}function O(e){_.unshift(e)}function D(e){k.unshift(e)}var j=0,P=null,M=null;function N(e){j++,o.monitorRunDependencies&&o.monitorRunDependencies(j)}function T(e){if(j--,o.monitorRunDependencies&&o.monitorRunDependencies(j),0==j&&(null!==P&&(clearInterval(P),P=null),M)){var t=M;M=null,t()}}function L(e){o.onAbort&&o.onAbort(e),p(e="Aborted("+e+")"),E=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw t(r),r}var F,U="data:application/octet-stream;base64,";function G(e){return e.startsWith(U)}function H(e){if(e==F&&h)return new Uint8Array(h);var t=de(e);if(t)return t;if(a)return a(e);throw"both async and sync fetching of the wasm failed"}function q(e){return Promise.resolve().then((function(){return H(e)}))}function K(e,t,r){return q(e).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(e){return e})).then(r,(function(e){p("failed to asynchronously prepare wasm: ".concat(e)),L(e)}))}function Y(e,t,r,n){return K(t,r,n)}function J(){var e={a:fe};function r(e,t){return le=e.exports,d=le.f,B(),O(le.g),T(),le}if(N(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){p("Module.instantiateWasm callback failed with error: ".concat(e)),t(e)}return Y(0,F,e,(function(e){r(e.instance)})).catch(t),{}}G(F="data:application/octet-stream;base64,AGFzbQEAAAABqAEWYAJ/fwBgAX8AYAN/f38AYAF/AX9gA39/fwF/YAABf2ACf38Bf2AEf39/fwF/YAV/f39/fwBgBH9/f38AYAV/f39/fwF/YAp/f39/f39/f39/AX9gBH9/fn8AYAl/f39/f39/f38Bf2AHf39/f39/fwF/YAABfGAFf35+fn4AYAAAYAN/fn8BfmAGf39/f39/AGAIf39/f39/f38Bf2AGf39/f39/AX8CHwUBYQFhAAoBYQFiAAMBYQFjAAcBYQFkAAMBYQFlAA8DhQKDAgECAQECAgICEAIAAgAAAQAEAAIAAgIAAAEABAABAAACAAAAAAECAAAAAgAAAgICAAEAAAABAgADAgABCAABAwAAAQACAQMCAwMAAQAAAQEBAgABBgIDBgwCAAABAAADAAADAgECAQgDAwYGAAADAQEBDAACAQgCAQEAAAACAAAAAgkDAAEAAAQAAQgAAgICAAICAAEBAgEGAAABEQEBAQIDAgAAAAEAAgMAAAQCCQEAAgkCCQIBBgYCAwoDBAgAAAsFBQAFDQsLAAADAQACAAABAgIBAQABAQADBAABBAIGAwAAAQISBAMKBgcHBAcBDg0TBQUFBQUFBQUHFA4VAwMGAwMEBQFwAQQEBQcBAYACgIACBggBfwFBoL4ECwfPASoBZgIAAWcAoAEBaADJAQFpAP0BAWoA/gEBawD3AQFsAMYBAW0A/AEBbgD7AQFvAPoBAXAAxwEBcQDHAQFyAMYBAXMA+QEBdAD4AQF1AMkBAXYAQgF3AEwBeAD/AQF5AIcCAXoAhgIBQQCFAgFCAIQCAUMAgwIBRACCAgFFAIECAUYAgAIBRwDMAQFIAMsBAUkA9gEBSgD1AQFLAMUBAUwA9AEBTQDzAQFOAPIBAU8A8QEBUADvAQFRAPABAVIA7gEBUwDBAQFUAO0BAVUBAAkMAQBBAQsD7AHrAeoBCqjHA4MCSwIBfgJ/A0AgACACQQN0aiIDIAMpAwAgAXwiAUL//////////wODNwMAIAFCOochASACQQFqIgJBBkcNAAsgACAAKQMwIAF8NwMwC04BAX8jAEFAaiIDJAAgACABIAIQlQEgACACKAI4IAEoAjhqIgE2AjggAUGBgIAQTgRAIANBwC4QDyAAIAMQJyAAQQE2AjgLIANBQGskAAtLAgF+An8DQCAAIAJBA3RqIgMgAykDACABfCIBQv//////////AIM3AwAgAUI4hyEBIAJBAWoiAkEERw0ACyAAIAApAyAgAXw3AyALDQAgABAFIABBQGsQBQtyAQN/IwBBMGsiAyQAA0AgACAEQQN0IgVqIAIgBWopAwAgASAFaikDAHw3AwAgBEEBaiIEQQVHDQALIAAgAigCKCABKAIoaiIBNgIoIAFBgYCACE4EQCADQZApEBQgACADEC0gAEEBNgIoCyADQTBqJAALaAEBfyMAQbABayIDJAAgAjQCOCABNAI4fkKBgIAQWQRAIANBwC4QDyABIAMQJyABQQE2AjgLIAMgASACEF0gA0HwAGoiAUHALhAPIAAgAUG4LykDACADEFwgAEECNgI4IANBsAFqJAALHgAgACABIAIQDiAAQYABaiABQYABaiACQYABahAOC2kBAX8jAEGAAWsiAyQAIAI0AiggATQCKH5CgYCACFkEQCADQZApEBQgASADEC0gAUEBNgIoCyADIAEgAhDpASADQdAAaiIBQZApEBQgACABQegpKQMAIAMQdiAAQQI2AiggA0GAAWokAAt1AQF+IAAgASAEfiACIAN+fCADQiCIIgIgAUIgiCIEfnwgA0L/////D4MiAyABQv////8PgyIBfiIFQiCIIAMgBH58IgNCIIh8IAEgAn4gA0L/////D4N8IgFCIIh8NwMIIAAgBUL/////D4MgAUIghoQ3AwALGwAgACABIAIQBiAAQUBrIAFBQGsgAkFAaxAGCwsAIAAgAUEHELkBC80CAQZ/IwBB8AVrIgMkACADQcAuEA8gA0HAAWpBAEE4EBUhBUEHIQQDQCAFIARBA3QiBmogAyAGakE4aykDADcDACAEQQFqIgRBDkcNAAsgAUFAayEEAkAgAigCeCACKAI4aqwgASgCeCIFIAEoAjgiBmqsfkKBgIAQUw0AIAZBAk4EfyABEB0gASgCeAUgBQtBAkgNACAEEB0LIANBgAVqIgcgASACEF0gA0GQBGoiCCAEIAJBQGsiBhBdIANBgAFqIgUgASAEEJUBIAUQBSADQUBrIgEgAiAGEJUBIAEQBSADQaADaiICIAUgARBdIANBsAJqIgEgByAIENYBIAggA0HAAWogCBDXASAHIAcgCBDWASACIAIgARDXASAHENsBIAAgBxCQASAAQQM2AjggAhDbASAAQUBrIAIQkAEgAEECNgJ4IANB8AVqJAALTAECfyMAQfABayICJAAgAkGALxAPIAJBQGsiAyABIAIQXSACQbABaiIBQcAuEA8gACABQbgvKQMAIAMQXCAAQQI2AjggAkHwAWokAAscACAAIAFHBEAgACABEBsgAEFAayABQUBrEBsLCw4AIAAQCCAAQYABahAICwsAIAAgAUEFELkBCykBAX8gAgRAIAAhAwNAIAMgAToAACADQQFqIQMgAkEBayICDQALCyAACwsAIAAgAUEwELcBCyIBAX8jAEFAaiIDJAAgAyACECYgACABIAMQBiADQUBrJAAL1AECA38BfiMAQUBqIgMkAANAIAEgAkEDdGoiBCAEKQMAIAV8IgVC//////////8DgzcDACAFQjqHIQUgAkEBaiICQQZHDQALIAEgASkDMCAFfDcDMCADIAFBOBAfIQNBLyECA0AgACACIgFqIAMpAwAiBTwAAEEAIQIDQCADIAJBA3RqIAVCCIcgAyACQQFqIgJBA3RqKQMAIgVCMoZCgICAgICAgP4Dg4Q3AwAgAkEGRw0ACyADIAMpAzBCCIc3AzAgAUEBayECIAENAAsgA0FAayQACyIBAX8jAEEwayIDJAAgAyACEFEgACABIAMQCSADQTBqJAALngEBBn8jAEGABGsiAyQAIANBgANqIgYgASACEBAgA0GAAmoiBSABQYABaiIHIAJBgAFqIggQECADQYABaiIEIAggAhAOIAMgByABEA4gAxAIIAQQCCADIAMgBBAQIAQgBhArIAMgAyAEEA4gAxAIIAQgBRArIABBgAFqIgEgAyAEEA4gBRApIAAgBSAGEA4gABAIIAEQCCADQYAEaiQACxIAIAAgARAPIAAgASgCODYCOAs9AQF/IwBBsAFrIgIkACACENkBIAIgARDaASACQfAAaiIBQcAuEA8gACABQbgvKQMAIAIQXCACQbABaiQACygBAX8jAEFAaiIBJAAgAUHALhAPIAAgARAnIABBATYCOCABQUBrJAALtgIBCX8jAEGADGsiAiQAIAJBgApqIgogACABEBogAkGABmoiBSAAQYACaiIGIAFBgAJqIgcQGiACQYACaiIDIAAgBhALIAIgASAHEAsgAxATIAIQEyACQYAIaiIJIAMgAhAaIAMgBiAAQYAEaiIIEAsgAiAHIAFBgARqIgcQCyADEBMgAhATIAJBgARqIgQgAyACEBogAyAKED4gAiAFED4gCSAJIAMQCyAGIAkgAhALIAQgBCACEAsgBSAFIAMQCyADIAAgCBALIAIgASAHEAsgAxATIAIQEyADIAIgAxAaIAUgBSADEAsgAyAIIAcQGiACIAMQPiAIIAUgAhALIAQgBCACEAsgAxAhIAYgBiADEAsgBBATIAQQISAAIAogBBALIAAQEyAGEBMgCBATIAJBgAxqJAALMwEBfyACBEAgACEDA0AgAyABLQAAOgAAIANBAWohAyABQQFqIQEgAkEBayICDQALCyAACykAIAAgARBHIAAgABCDASAAQYACaiIBIAEQggEgAEGABGoiACAAEIMBC2gBBX8jAEHAAmsiASQAIAEgAEGAAWoiAxASIAFBgAFqIgIgARASIAFBgAJqIgQgAhAbIAIgAUHAAWoiBRAmIAUgBBAbIAEgASACEA4gAyAAEBIgACABEBIgABAIIAMQCCABQcACaiQAC7ALAgd+CX8jAEGwAWsiCyQAIAE0AjgiAiACfkKBgIAQWgRAIAtBwC4QDyABIAsQJyABQQE2AjgLIwBB0AFrIgkkACAJQcABaiABKQMAIgIgAkI/hyIDIAIgAxANIAsgCSkDwAEiAkL//////////wODNwMAIAkpA8gBIgNCBoYgAkI6iIQhBSADQjqIIQZBASEMQQEhDQNAIAlBsAFqIAEpAwAiAiACQj+HIAEgDUEDdCIOaikDACICIAJCP4cQDUECIAwgDEECTRshDyAJKQO4ASEDIAkpA7ABIQJBASEKIA1BA08EQANAIAlBoAFqIAEgCkEDdGopAwAiBCAEQj+HIAEgDSAKa0EDdGopAwAiBCAEQj+HEA0gCSkDoAEiBCACfCICIARUrSAJKQOoASADfHwhAyAKQQFqIgogD0cNAAsLIA1BAWoiEEEBdiERIAsgDmogAkIBhiIEIAV8IgVC//////////8DgzcDACAJQZABaiABKQMAIgcgB0I/hyABIBBBA3QiDmopAwAiByAHQj+HEA0gBCAFVq0gA0IBhiACQj+IhCAGfHwiBEI6hyEHIAkpA5gBIQNBASEKIAkpA5ABIQIgDUECTwRAA0AgCUGAAWogASAKQQN0aikDACIGIAZCP4cgASAQIAprQQN0aikDACIGIAZCP4cQ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IAJBA3QiA2oiBiAGIAMgBGogCEIAUxspAwA3AwAgAkEBaiICQQdHDQALIAVBAUohByAFQQFrIQUgBw0ACwsgBEFAayQACwsAIAAgAUEvELcBC0wBA38jAEHAAWsiASQAIAEgABASIAFBgAFqIgMgABAbIAAgAEFAayICECYgAiADEBsgACABIAAQBiACIAFBQGsgAhAGIAFBwAFqJAALNQEBfyMAQYABayIDJAAgAyACECsgACABIAMQBiAAQUBrIAFBQGsgA0FAaxAGIANBgAFqJAALRwEDfyMAQYABayICJAAgAkFAayIDIAEgAUFAayIEEAYgAyADECYgAiADIAQQBiAAQUBrIAMgARAGIAAgAhAbIAJBgAFqJAALgQkCB34KfyMAQYABayIKJAAgATQCKCICIAJ+QoGAgAhaBEAgCkGQKRAUIAEgChAtIAFBATYCKAsjAEHAAWsiCSQAIAlBsAFqIAEpAwAiAiACQj+HIgQgAiAEEA0gCiAJKQOwASICQv//////////AIM3AwAgCSkDuAEiBEIIhiACQjiIhCEFIARCOIghBEEBIQ5BASENA0AgCUGgAWogASkDACICIAJCP4cgASANQQN0IhBqIgspAwAiAiACQj+HEA0gCSkDqAEhAyAJKQOgASECIAwEQCAJQZABaiABKQMIIgYgBkI/hyALQQhrKQMAIgYgBkI/hxANIAkpA5ABIgYgAnwiAiAGVK0gCSkDmAEgA3x8IQMLIA1BAWoiD0EBdiERIAogEGogAkIBhiIGIAV8IgVC//////////8AgzcDACAJQYABaiABKQMAIgcgB0I/hyABIA9BA3RqKQMAIgcgB0I/hxANIAUgBlStIANCAYYgAkI/iIQgBHx8IgZCOIchByAJKQOIASEEIAkpA4ABIQIgDARAIAlB8ABqIAEpAwgiAyADQj+HIAspAwAiAyADQj+HEA0gCSkDcCIDIAJ8IgIgA1StIAkpA3ggBHx8IQQLQQMhDSAJQeAAaiABIBFBA3RqKQMAIgMgA0I/hyIIIAMgCBANIAogD0EDdGogAkIBhiIIIAZCCIYgBUI4iIR8IgUgCSkDYHwiA0L//////////wCDNwMAIAMgBVStIAkpA2ggBSAIVK0gBEIBhiACQj+IhCAHfHx8fCICQjiHIQQgAkIIhiADQjiIhCEFQQEhDCAOIRJBACEOIBINAAsgCUHQAGogASkDECICIAJCP4cgASkDGCICIAJCP4cQDSAJQUBrIAEpAwgiAiACQj+HIAEpAyAiAiACQj+HEA0gCiAJKQNQIgYgCSkDQHwiAkIBhiIHIAV8IgVC//////////8AgzcDKCAJQSBqIAEpAxAiAyADQj+HIAEpAyAiAyADQj+HEA0gCUEwaiABKQMYIgMgA0I/hyIIIAMgCBANIAogCSkDICIDQgGGIgggBSAHVK0gAiAGVK0gCSkDWCAJKQNIfHxCAYYgAkI/iIQgBHx8IgZCCIYgBUI4iIR8IgIgCSkDMHwiBEL//////////wCDNwMwIAlBEGogASkDGCIFIAVCP4cgASkDICIFIAVCP4cQDSAKIAkpAxAiBUIBhiIHIAIgBFatIAkpAzggAiAIVK0gCSkDKEIBhiADQj+IhCAGQjiHfHx8fCIDQgiGIARCOIiEfCICQv//////////AIM3AzggCSABKQMgIgQgBEI/hyIGIAQgBhANIAogCSkDACIEIAIgB1StIAkpAxhCAYYgBUI/iIQgA0I4h3x8IgVCCIYgAkI4iIR8IgJC//////////8AgzcDQCAKIAIgBFStIAkpAwggBUI4h3x8QgiGIAJCOIiENwNIIAlBwAFqJAAgCkHQAGoiAUGQKRAUIAAgAUHoKSkDACAKEHYgAEECNgIoIApBgAFqJAAL/wMCBn8CfiMAQTBrIgQkAANAIAAgAkEDdGoiAyADKQMAIAh8IghC//////////8AgzcDACAIQjiHIQggAkEBaiICQQRHDQALIAAgACkDICAIfDcDIEEEIQMCQAJAA0AgACADIgJBA3QiA2opAwAiCCABIANqKQMAIglRBEAgAkEBayEDIAINAQwCCwsgCCAJVw0BCwNAIAFBARB3IAVBAWohBUEEIQMDQCAAIAMiAkEDdCIDaikDACIIIAEgA2opAwAiCVEEQCACQQFrIQMgAg0BDAILCyAIIAlVDQALA0AgASkDACEIQQAhAgNAIAEgAkEDdGogCEIBhyABIAJBAWoiAkEDdGopAwAiCEI3hkKAgICAgICAwACDhDcDACACQQRHDQALIAEgASkDIEIBhzcDIEEAIQJBACEDA0AgBCADQQN0IgZqIAAgBmopAwAgASAGaikDAH03AwAgA0EBaiIDQQVHDQALQgAhCANAIAQgAkEDdGoiAyADKQMAIAh8IghC//////////8AgzcDACAIQjiHIQggAkEBaiICQQRHDQALIAQgBCkDICAIfCIINwMgQQAhAgNAIAAgAkEDdCIDaiIGIAYgAyAEaiAIQgBTGykDADcDACACQQFqIgJBBUcNAAsgBUEBSiEHIAVBAWshBSAHDQALCyAEQTBqJAALLQAgACABIAIQhQEgAEGAAWogAUGAAWogAhCFASAAQYACaiABQYACaiACEIUBCx4AIAAgAUcEQCAAIAEQEiAAQYABaiABQYABahASCwtjAQR/IwBBwAFrIgIkACACQYABaiIDIAEgAUFAayIEEAYgAiAEECYgAkFAayIFIAEgARAGIAUQBSAAQUBrIAUgBBAKIAAgASACEAYgAxAFIAAQBSAAIAMgABAKIAJBwAFqJAALKAAgACABIAIQWSAAQUBrIAFBQGsgAhBZIABBgAFqIAFBgAFqIAIQWQuDAQEDfyMAQYABayIEJAACQCACIAJBH3UiA3MgA2siAyABKAI4bEGAgIAQTARAIAAgASADEJMBIAAgASgCOCADbDYCOAwBCyAEQUBrIgUQ3AEgBSADEF4gBRAFIAQgBRARIAAgASAEEAoLIAJBAEgEQCAAIAAQJiAAEAULIARBgAFqJAALKwAgACABIAIQmgEgAEEwaiABQTBqIAIQmgEgAEHgAGogAUHgAGogAhCaAQuUAQEEfyMAQYADayIDJAAgAyABIAFBgAFqIgQQECADQYABaiICIAQQEiADQYACaiIFIAEgBBAOIAIQKSACIAEgAhAOIAUQCCACEAggACAFIAIQECACIAMQEiACECkgAiACIAMQDiACEAggAiACECsgACAAIAIQDiAAQYABaiIBIAMgAxAOIAAQCCABEAggA0GAA2okAAsOACAAED8gAEGAAWoQPwsgAQF/IwBBQGoiAiQAIAIgARAPIAAgAhARIAJBQGskAAskACAAIAEQEiAAQYABaiABQYABahASIABBgAJqIAFBgAJqEBILWwEDfyMAQYACayICJAAgAkGAAWoiAyABEDAgAiADIAEQECAAIAIQgAEgAEGAAmoiBCACEIABIABBgARqIgAgAhCAASAEIAQgARBnIAAgACADEGcgAkGAAmokAAsOACAAENwBIABBATYCOAv8AQIFfwR+IwBB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a0EDdCIMaikDACACIAhBA3QiDWopAwB9IgUgBUI/hyABIA1qKQMAIAEgDGopAwB9IgUgBUI/hxANIAkpAwAiBSADfCIDIAVUrSAJKQMIIAR8fCEEIAhBAWsiCCAKSw0ACwsgACALQQN0aiADQv//////////A4M3AwAgBEIGhiADQjqIhCEDIARCOochBCALQQFqIgtBDUcNAAsgACADNwNoIAlBoAFqJAALWQIBfgJ/A0AgACADQQN0aiIEIAQpAwAgAnwiAkL//////////wODNwMAIAJCOochAiADQQFqIgNBBkcNAAsgACAAKQMwIAJ8NwMwIAAgACkDACABrHw3AwALZAEDfkE6IAFrrSEEIAGtIQJBACEBIAApAwAhAwNAIAAgAUEDdGogAyAChyAAIAFBAWoiAUEDdGopAwAiAyAEhkL//////////wODhDcDACABQQZHDQALIAAgACkDMCAChzcDMAv9BQEIfyMAQYADayIDJAACQEHAJygCAEUEQCADQdACaiICIABBMGoiBxAsIANBoAJqIgYgByAAQeAAaiIBEAwgA0HwAWoiBCABECwgASACIAIQCSABEAcgASABIAEQCSABIAEgARAJIAEQByAEIARBxCcoAgBBA2wQOiADQZABaiIIIAQgARAMIANB4ABqIgUgAiAEEAkgBRAHIAEgASAGEAwgBiAEIAQQCSAEIAQgBhAJIAIgAiAEEBkgAhAHIAUgBSACEAwgBSAFIAgQCSAGIAAgBxAMIAIQByAAIAIgBhAMIAAgACAAEAkgABAHIAcgBRBEDAELQcQnKAIAIgRFBEAgAxCbAQsgA0HQAmogABAsIANBoAJqIABBMGoiBRAsIANB8AFqIgIgAEHgAGoiBxAsIANBwAFqIgEgACAFEAwgASABIAEQCSABEAcgA0EwaiIBIAcgABAMIAEgASABEAkgARAHAkAgBEUEQCADQeAAaiACIAMQDAwBCyADQeAAaiADQfABaiAEEDoLIANB4ABqIgEgASADQTBqIgYQGSADQZABaiICIAEgARAJIAIQByABIAEgAhAJIAIgA0GgAmoiCCABEBkgAhAHIAEgASAIEAkgARAHIAEgASACEAwgAiACIANBwAFqIgIQDCACIANB8AFqIgEgARAJIAEgASACEAkCQCAERQRAIAYgBiADEAwMAQsgA0EwaiIBIAEgBBA6CyADQTBqIgIgAiADQfABaiIGEBkgAiACIANB0AJqIgEQGSACEAcgA0HAAWoiBCACIAIQCSACIAIgBBAJIAIQByAEIAEgARAJIAEgASAEEAkgASABIAYQGSABEAcgASABIAIQDCADQeAAaiIEIAQgARAJIAEgBSAHEAwgASABIAEQCSABEAcgAiACIAEQDCAAIANBkAFqIAIQGSABIAEgARAJIAEQByADQaACaiICIAIgAhAJIAIQByAHIAEgAhAMIAAQByAFIAQQRCAFEAcLIAcQByADQYADaiQACzYBAX8gAEEAQSgQFSEAA0AgAEEIEHcgACAAKQMAIAEgAmoxAAB8NwMAIAJBAWoiAkEgRw0ACwvUAQIDfwF+IwBBMGsiAyQAA0AgASACQQN0aiIEIAQpAwAgBXwiBUL//////////wCDNwMAIAVCOIchBSACQQFqIgJBBEcNAAsgASABKQMgIAV8NwMgIAMgAUEoEB8hA0EfIQIDQCAAIAIiAWogAykDACIFPAAAQQAhAgNAIAMgAkEDdGogBUIIhyADIAJBAWoiAkEDdGopAwAiBUIwhkKAgICAgIDA/wCDhDcDACACQQRHDQALIAMgAykDIEIIhzcDICABQQFrIQIgAQ0ACyADQTBqJAALnwECAn8DfgNAIAAgAUEDdGoiAiACKQMAIAN8IgNC//////////8AgzcDACADQjiHIQMgAUEBaiIBQQRHDQALIAAgACkDICADfDcDIEEEIQICQANAIAAgAiIBQQN0aikDACIDQgBSDQEgAUEBayECIAENAAtBAA8LIAFBOGwhAQNAIAFBAWohASADQgF8IQUgA0ICfyEDIAVCAlYNAAsgAQuiBQEJfyMAQfAfayIEJAAgABBKIABBgAJqEEpxRQRAIAAQfSAEQfAbaiICIAAQNyACEEYgBEHwA2ogABA3QQEhAgNAIARB8ANqIAJBgANsaiIDIANBgANrEDcgAyAEQfAbaiIDEGUgAkEBaiICQQhHDQALIARB8B5qIgIgARAPIAIQPCEFIAJBARBeIAIQBSACEDwhBiAEQbAfaiIBIAIQDyABQQEQXiABEAUgAiABIAUQlgEgAyAAIAYQLiAEQfAAaiADEDcgAhBDIgFBA2pBBG0iAkEBaiEFIAFBekgiBkUEQEEAIQEgAkEAIAJBAEob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DykDACICIAR8IgQgAlStIA8pAwggBXx8IQUgEkEBayISIBBLDQALCyARQQN0IABqQShrIARC//////////8AgzcDACAFQjiHIAMgEUEBaiIQQQN0aikDACICQj+HfCACIAVCCIYgBEI4iIQiAnwiBCACVK18IQUgCCARQQR0IA9qIhFB0ABqKQMIfSAGIBEpA1AiAlStfSEIIAYgAn0hBiAQIhFBCUcNAAsgACAEQv//////////AIM3AyAgD0HgAWokAAuMAQIDfgN/IAAgACkDICABrSIChiAAKQMYIgNBOCABa60iBIeENwMgQQMhAQNAIAAgAUEDdGogAyAChkL//////////wCDIAAgAUEBayIFQQN0aikDACIDIASHhDcDACABQQFLIQcgBSEBIAcNAAsgACAAKQMAIAKGQv//////////AIM3AwAgACgCJBoLVQECfwJAIAJBAEwNACAAKAIAIQMDQCADIAAoAgRODQEgACgCCCADaiABIARqLQAAOgAAIAAgACgCAEEBajYCACADQQFqIQMgBEEBaiIEIAJHDQALCwv5AgEGfyMAQcAgayIDJAAgA0GAH2oiBUGALBAPIANBwB5qIgFBwC8QNiADQYAeaiICQYAwEDYgA0HAH2oiBCABEBsgBEFAayACEBsgA0GAGGoiASAAEH4gACAAECAgACABEB4gASAAEEcgACAEEDggACAEEDggACABEB4gA0GAEmoiBiAAEKkBIANBgAxqIgEgBiAFED0gASABECAgBUEBEF8gA0GABmoiAiABIAUQPSACIAIQICAFQQEQcSADIAAQICABIAMQHiABIAEQICABIAIQHiACIAEgBRA9IAIgAhAgIAMgAiAFED0gAyADECAgASABECAgAyABEB4gASABECAgASAEEDggASAEEDggASAEEDggAiAEEDggAiAEEDggASACEB4gAiADIAUQPSACIAIQICACIAYQHiACIAAQHiABIAIQHiACIAMQRyACIAQQOCABIAIQHiAAIAEQRyAAEDUgAEGAAmoQNSAAQYAEahA1IANBwCBqJAAL7gMBBn8jAEGACmsiBiQAIAFBgAJqIQogAUGAAWohCQJAIAEgAkYEQCAGQYAJaiIHIAEQEiAGQYAIaiIIIAkQEiAGQYAHaiICIAoQEiAGQYAGaiIFIAgQEiAFIAUgAhAQIAcgBxAwIAggCBAwIAIgAhAwIAUgBUEEEEggBSAFECsgBRAIIAcgB0EGEEggByAHIAMQaSACIAJB9CkoAgBBA2wQSCAFIAUgBBBpIAIQKSACIAIgAhAOIAUQKSAFEAggAhAIIAggCCAIEA4gAiACIAgQKiACEAggBkGABGogBSACEKwBIAZBgAJqEGggBiAHEKsBIAEQRgwBCyAGQYAJaiIIIAEQEiAGQYAIaiIFIAkQEiAGQYAHaiIJIAoQEiAGQYAGaiIHIAkQEiAJIAkgAkGAAWoiChAQIAcgByACEBAgCCAIIAcQKiAIEAggBSAFIAkQKiAFEAggCSAIEBIgCCAIIAQQaSAIECkgCBAIIAkgCSAKEBAgByAFEBIgByAHIAIQECAHIAcgCRAqIAcQCCAFIAUgAxBpIAUgBRArIAUQCCAGQYAEaiAIIAcQrAEgBkGAAmoQaCAGIAUQqwEgASACEGULIAAgBkGABGoQLyAAQYACaiAGQYACahAvIABBgARqIAYQLyAGQYAKaiQAC5AEAQh/IwBBwAtrIgMkACADQYALaiIFQYAsEA8gA0HACmoiBCAFEA8gBBAFIANBgApqIgUgBEEDEJMBIAUQBSADQcAJaiACEBsgA0GACWogAkFAaxAbIANBgAZqIAEQNyAAEGogAEGAAWoQSSAAQYACahBoIABBgARqEGggBRBDIgJBA04EQCACQQJrIQIDQCMAQYAIayIGJAAgBkGABmoiBCAAEDQgBkGABGoiByAAQYACaiIIIABBgARqIgUQGiAHIAcgBxALIAcQEyAGQYACaiIJIAUQNCAGIAAgCBAaIAYgBiAGEAsgBSAAIAUQCyAFIAggBRALIAUQEyAFIAUQNCAAIAQQLyAEIAQgBxALIAQQEyAEIAQgCRALIAQgBCAGEAsgBBATIAQgBBA+IAcQISAJECEgACAAIAcQCyAIIAkgBhALIAUgBSAEEAsgABATIAgQEyAFEBMgBkGACGokACADIANBgAZqIgQgBCADQcAJaiADQYAJahB6IAAgAxB/AkACQAJAIANBgApqIAIQbyADQcAKaiACEG9rQQFqDgMBAgACCyADIANBgAZqIAEgA0HACWogA0GACWoQeiAAIAMQfwwBCyABEFIgAyADQYAGaiABIANBwAlqIANBgAlqEHogACADEH8gARBSCyACQQFKIQogAkEBayECIAoNAAsLIAAgABAgIANBwAtqJAALSAECfyMAQYACayIBJAAgAUGAAWoiAkHALBA2IAFBwAFqQYAtEDYgAUHALRA2IAFBQGtBgC4QNiAAIAIgARCmASABQYACaiQAC64BAQV/IwBBgAJrIgEkAAJAIAAQSiAAQYACaiIDEEpxDQAgAUGAAWoQaiMAQUBqIgIkACACEE8gAxAdIANBQGsiBBAdAn8gAyACEFgEQEEBIAQQWg0BGgtBAAshBSACQUBrJAAgBQRAIAAQPyAAQYABahA/DAELIAEgAxCuASAAIAAgARAQIABBgAFqIgIgAiABEBAgABA/IAIQPyADIAFBgAFqEBILIAFBgAJqJAALvgIBB38jAEGACGsiAiQAIAJBgAZqIgcgARA0IAJBgARqIgQgAUGAAmoiAyABQYAEaiIGEBogBBAhIAcgByAEEIEBIAcQEyAEIAYQNCAEECEgAkGAAmoiBSABIAMQGiAEIAQgBRCBASAEEBMgBSADEDQgAiABIAYQGiAFIAUgAhCBASAFEBMgAiADIAUQGiACECEgACAHIAEQGiACIAAgAhALIABBgARqIgggBCAGEBogCBAhIAIgCCACEAsgAhATIwBBgAJrIgMkACADQYABaiIBIAIQMCADIAJBgAFqIgYQMCADECkgAxAIIAEgASADECogASABEK4BIAIgASACEBAgASABECsgARAIIAYgASAGEBAgA0GAAmokACAAIAcgAhAaIABBgAJqIAQgAhAaIAggBSACEBogAkGACGokAAuMAgEIfyMAQYAMayIDJAAgA0GACmoiCCAAIAEQGiADQYACaiICIAAgAEGAAmoiBRALIAIQEyADQYAIaiIEIAIgARAaIAIgBSAAQYAEaiIHEAsgAhATIANBgARqIgYgAiABQYAFaiIJEGcgBhAhIAIgCBA+IAQgBCACEAsgBSAEEC8gA0GABmoiBCACEC8gAiAAIAcQCyADIAEgAUGABGoQCyACEBMgAxATIAIgAyACEBogBCAEIAIQCyACIAcgCRBnIAIQISADIAIQPiACECEgByAEIAMQCyAGIAYgAxALIAUgBSACEAsgBhATIAYiARAhIAAgCCABEAsgABATIAUQEyAHEBMgA0GADGokAAseACAAIAAQrwEgAEGAAWoiACAAEK8BIAAgASAAEBAL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ApwBIANBAWoiAyAHRw0ACwsLKQEBfyMAQUBqIgIkACACQcAuEA8gACACQbgvKQMAIAEQXCACQUBrJAAL5A8CBn8CfiMAQYADayIDJAAgASACECcgA0HAAmogAUE4EB8aIANBgAJqIAJBOBAfGiADQgE3AwAgA0EIckEAQTAQFRogA0HAAWogA0E4EB8aIANBgAFqQQBBOBAVGiADQbABaiEHIANB8AFqIQhBBiEBA0BBBiEEAkACQCABIgVBA3QiASADQcACamopAwAgASADaikDAFEEQCAFQQFrIQEgBUUNAQwDCwNAIAQiAUEDdCIEIANBgAJqaikDACADIARqKQMAUg0CIAFBAWshBCABDQALC0EGIQQgAAJ/A0AgA0GAAWogBCIBQQN0IgIgA0HAAmpqKQMAIAIgA2opAwBSDQEaIAFBAWshBCABDQALIANBwAFqC0E4EB8aIANBgANqJAAPCyADKQPAAiIJQgKBp0UEQEEAIQEDQCADQcACaiIEIAFBA3RqIAlCAYcgAUEBaiIBQQN0IARqKQMAIglCOYZCgICAgICAgIACg4Q3AwAgAUEGRw0AIAMgAykD8AJCAYc3A/ACQQAhAUEAIQQgAykDwAEiCUICgacEQANAIARBA3QiBSADQcABamoiBiAGKQMAIAIgBWopAwB8NwMAIARBAWoiBEEHRw0AC0IAIQkDQCADQcABaiABQQN0aiIEIAQpAwAgCXwiCUL//////////wODNwMAIAlCOochCSABQQFqIgFBBkcNAAsgAyADKQPwASAJfDcD8AEgAykDwAEhCQtBACEBA0AgA0HAAWoiBCABQQN0aiAJQgGHIAFBAWoiAUEDdCAEaikDACIJQjmGQoCAgICAgICAAoOENwMAIAFBBkcNAAsgAyADKQPwAUIBhzcD8AFBACEBIAMpA8ACIglCAoGnRQ0ACwsgAykDgAIiCUICgadFBEBBACEBA0AgA0GAAmoiBCABQQN0aiAJQgGHIAFBAWoiAUEDdCAEaikDACIJQjmGQoCAgICAgICAAoOENwMAIAFBBkcNACADIAMpA7ACQgGHNwOwAkEAIQFBACEEIAMpA4ABIglCAoGnBEADQCAEQQN0IgUgA0GAAWpqIgYgBikDACACIAVqKQMAfDcDACAEQQFqIgRBB0cNAAtCACEJA0AgA0GAAWogAUEDdGoiBCAEKQMAIAl8IglC//////////8DgzcDACAJQjqHIQkgAUEBaiIBQQZHDQALIAMgAykDsAEgCXw3A7ABIAMpA4ABIQkLQQAhAQNAIANBgAFqIgQgAUEDdGogCUIBhyABQQFqIgFBA3QgBGopAwAiCUI5hkKAgICAgICAgAKDhDcDACABQQZHDQALIAMgAykDsAFCAYc3A7ABQQAhASADKQOAAiIJQgKBp0UNAAsLQQYhBAJ/AkACQANAIAQiAUEDdCIEIANBwAJqaikDACIJIANBgAJqIARqKQMAIgpRBEAgAUEBayEEIAENAQwCCwtBACEBQQAhBCAJIApXDQELQQAhAUEAIQQDQCAEQQN0IgUgA0HAAmpqIgYgBikDACADQYACaiAFaikDAH03AwAgBEEBaiIEQQdHDQALQgAhCQNAIANBwAJqIAFBA3RqIgQgBCkDACAJfCIJQv//////////A4M3AwAgCUI6hyEJIAFBAWoiAUEGRw0ACyADIAMpA/ACIAl8NwPwAkEGIQQCQAJAAkADQCAEIgFBA3QiBCADQcABamopAwAiCSADQYABaiAEaikDACIKUQRAIAFBAWshBCABDQEMAgsLQQAhAUEAIQQgCSAKVw0BC0EAIQEDQCABQQN0IgQgA0HAAWpqIgUgBSkDACADQYABaiAEaikDAH03AwAgAUEBaiIBQQdHDQALDAELA0AgBEEDdCIFIANBQGtqIAIgBWopAwAgA0GAAWogBWopAwB9NwMAIARBAWoiBEEHRw0ACwNAIAFBA3QiBCADQcABamoiBSADQUBrIARqKQMAIAUpAwB8NwMAIAFBAWoiAUEHRw0ACwtBACEBQgAhCQNAIANBwAFqIAFBA3RqIgQgBCkDACAJfCIJQv//////////A4M3AwAgCUI6hyEJIAFBAWoiAUEGRw0ACyAIDAELA0AgBEEDdCIFIANBgAJqaiIGIAYpAwAgA0HAAmogBWopAwB9NwMAIARBAWoiBEEHRw0AC0IAIQkDQCADQYACaiABQQN0aiIEIAQpAwAgCXwiCUL//////////wODNwMAIAlCOochCSABQQFqIgFBBkcNAAsgAyADKQOwAiAJfDcDsAJBBiEEAkACQAJAA0AgBCIBQQN0IgQgA0GAAWpqKQMAIgkgA0HAAWogBGopAwAiClEEQCABQQFrIQQgAQ0BDAILC0EAIQFBACEEIAkgClcNAQtBACEBA0AgAUEDdCIEIANBgAFqaiIFIAUpAwAgA0HAAWogBGopAwB9NwMAIAFBAWoiAUEHRw0ACwwBCwNAIARBA3QiBSADQUBraiACIAVqKQMAIANBwAFqIAVqKQMAfTcDACAEQQFqIgRBB0cNAAsDQCABQQN0IgQgA0GAAWpqIgUgA0FAayAEaikDACAFKQMAfDcDACABQQFqIgFBB0cNAAsLQQAhAUIAIQkDQCADQYABaiABQQN0aiIEIAQpAwAgCXwiCUL//////////wODNwMAIAlCOochCSABQQFqIgFBBkcNAAsgBwsiASABKQMAIAl8NwMAQQYhAQwACwAL/AUCBX8CfiMAQfAAayIFJAAgBUEAQfAAEBUhBSABEENBAEoEQANAAn8gA0UEQCACEGYMAQsgBEEBdQshBCAFENUBIAUgBSkDACAEQQFxrXw3AwAgA0EBakEHcSEDIAZBAWoiBiABEENBAXRIDQALCyAAIQJBACEDIwBB4AFrIgQkAANAIAUgA0EDdGoiACAAKQMAIAh8IghC//////////8DgzcDACAIQjqHIQggA0EBaiIDQQ1HDQALIAUgBSkDaCAIfDcDaCAEQfAAaiABQTAQHxogBCABKQMwIghCOoc3A6gBIAQgCEL//////////wODNwOgASAEQbABakEAQTAQFRpBDSEAAkACQANAIAUgACIBQQN0IgBqKQMAIgkgBEHwAGogAGopAwAiCFEEQCABQQFrIQAgAQ0BDAILCyAIIAlTDQAMAQtBACEGA0AgBEHwAGoQ1QEgBkEBaiEGQQ0hAANAIAUgACIBQQN0IgBqKQMAIgkgBEHwAGogAGopAwAiCFEEQCABQQFrIQAgAQ0BDAILCyAIIAlTDQALA0BBACEDIAQpA3AhCANAIARB8ABqIgAgA0EDdGogCEIBhyADQQFqIgNBA3QgAGopAwAiCEI5hkKAgICAgICAgAKDhDcDACADQQ1HDQALIAQgBCkD2AFCAYc3A9gBQQAhA0EAIQADQCAEIABBA3QiAWogASAFaikDACAEQfAAaiABaikDAH03AwAgAEEBaiIAQQ5HDQALQgAhCANAIAQgA0EDdGoiACAAKQMAIAh8IghC//////////8DgzcDACAIQjqHIQggA0EBaiID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KCAIQQBKBEADQCABIAEQLCABIAEQLCABIAEQLCABIAEQLCABIAEgAkEwaiAEQQFrIgMgAkGwBmpqLAAAQTBsahAMIARBAUohDCADIQQgDA0ACwsgAkGAB2oiBEGQKRAUIAEgBBAtIAFBATYCKCACQbAHaiQAIAVBMGokACAAIAAgARAMIABBMGoiBCAEIAEQDCAEEHQgABB0IAYgChBECyABQeAAaiQACwkAIABBADYCAAsmACAAIAEgAhCkASAAQQAgAmsgACgCKCIAIAEoAihzcSAAczYCKAshAQF/IwBBMGsiASQAIAFB0CcQFCAAIAEQOyABQTBqJAALWQIBfgJ/A0AgACADQQN0aiIEIAQpAwAgAnwiAkL//////////wCDNwMAIAJCOIchAiADQQFqIgNBBEcNAAsgACAAKQMgIAJ8NwMgIAAoAgBBfyABdEF/c3ELWQIBfgJ/A0AgACADQQN0aiIEIAQpAwAgAnwiAkL//////////wCDNwMAIAJCOIchAiADQQFqIgNBBEcNAAsgACAAKQMgIAJ8NwMgIAAgACkDACABrH03AwALWQIBfgJ/A0AgACADQQN0aiIEIAQpAwAgAnwiAkL//////////wCDNwMAIAJCOIchAiADQQFqIgNBBEcNAAsgACAAKQMgIAJ8NwMgIAAgACkDACABrHw3AwALXgAgAEEoakEAQYACEBUaIABBIDYC6AIgAEKrs4/8kaOz8NsANwIgIABC/6S5iMWR2oKbfzcCGCAAQvLmu+Ojp/2npX83AhAgAELnzKfQ1tDrs7t/NwIIIABCADcCAAsCAAslACAAQgE3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgCwsAIABBAEEoEBUaC1UCAX8BfiAAKQMAIQIDQCAAIAFBA3RqIAJCBIcgACABQQFqIgFBA3RqKQMAIgJCNIZC//////////8Ag4Q3AwAgAUEERw0ACyAAIAApAyBCBIc3AyALDQAgACABIAJBBRC4AQsJACAAQQUQuwEL2wEBBn8jAEGAAmsiBSQAIAUgAhAwIwBBwAFrIgQkACAEQUBrIgMgARAwIAVBgAFqIgYgAyABEBAgBEGAKhAPIAMgBBARIANBQGsQOSADEAggAxApIAMQCCAGIAMgBhAOIAYQPyAEQcABaiQAIABBgAJqIQMgAEGAAWohBCAFEB0gBUFAayIHEB0gBhAdIAZBQGsiCBAdAkACfyAFIAYQWARAQQEgByAIEFgNARoLQQALRQRAIAAQSSAEEGogAxBJDAELIAAgARASIAQgAhASIAMQagsgBUGAAmokAAueAgEBfyMAQUBqIgIkACACIAEoAggQFiAAIAIQESACIAEoAghBMGoQFiAAQUBrIAIQESACIAEoAghB4ABqEBYgAEGAAWogAhARIAIgASgCCEGQAWoQFiAAQcABaiACEBEgAiABKAIIQcABahAWIABBgAJqIAIQESACIAEoAghB8AFqEBYgAEHAAmogAhARIAIgASgCCEGgAmoQFiAAQYADaiACEBEgAiABKAIIQdACahAWIABBwANqIAIQESACIAEoAghBgANqEBYgAEGABGogAhARIAIgASgCCEGwA2oQFiAAQcAEaiACEBEgAiABKAIIQeADahAWIABBgAVqIAIQESACIAEoAghBkARqEBYgAEHABWogAhARIAJBQGskAAumAgEBfyMAQUBqIgIkACAAQcAENgIAIAIgARAcIAAoAgggAhAYIAIgAUFAaxAcIAAoAghBMGogAhAYIAIgAUGAAWoQHCAAKAIIQeAAaiACEBggAiABQcABahAcIAAoAghBkAFqIAIQGCACIAFBgAJqEBwgACgCCEHAAWogAhAYIAIgAUHAAmoQHCAAKAIIQfABaiACEBggAiABQYADahAcIAAoAghBoAJqIAIQGCACIAFBwANqEBwgACgCCEHQAmogAhAYIAIgAUGABGoQHCAAKAIIQYADaiACEBggAiABQcAEahAcIAAoAghBsANqIAIQGCACIAFBgAVqEBwgACgCCEHgA2ogAhAYIAIgAUHABWoQHCAAKAIIQZAEaiACEBggAkFAayQAC+kBAQV/IwBBgAhrIgMkACADQYAGaiICIAEQLyAAIAEQNCADIAAgABALIAAgAyAAEAsgABATIAIgAhCCASACIAIgAhALIAAgACACEAsgA0GABGoiBCABQYAEaiIGEDQgBBAhIAMgBCAEEAsgBCAEIAMQCyAEEBMgA0GAAmoiBSABQYACaiICEDQgAyAFIAUQCyAFIAUgAxALIAUQEyAAQYACaiIBIAIQgwEgASABIAEQCyAAQYAEaiICIAYQggEgAiACIAIQCyABIAQgARALIAIgBSACEAsg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AgAgBUEfdCEFIAJBAWoiAkEERw0ACyAFBEAgASABKAIAQYCAgIh+czYCAAsgB0EBaiIHQYABRw0ACyAAQgA3AqAQIABBqBBqQgA3AgACQCADQQxGBEBBACECA0AgACACakGgFGogAiAEai0AADoAACACQQFqIgJBDEcNAAsgAEGsFGpBgICACDYAACAAQZAQaiAAQaAUaikAADcAACAAQZgQaiAAQagUaikAADcAAAwBCyAAQQE2ArAQIANBAEoEQEEAIQJBACEFA0AgACAFakGAEGoiASABLQAAIAIgBGotAABzOgAAIAAgACgCrBBBAWoiATYCrBAgAUUEQCAAIAAoAqgQQQFqNgKoEAsgAkEBaiECIAVBDk0EQCAFQQFqIQUgAiADSA0BCyAAEFRBACEFIAIgA0gNAAsLIANBD3EEQCAAQQI2ArAQCyAAQaAQaiEBIAAQugFBACECA0AgACACaiIDQaAUaiADQYAQaiIELQAAIgU6AAAgA0GQEGogBToAACAEQQA6AAAgAkEBaiICQRBHDQALIAFCADcCACABQgA3AggLIABBADYCsBAgBkEQaiQAC6oBAQN/IwBBEGsiAiQAIAAtAABBBEYEQCACQsCBgICAGDcCBCACIABBAWo2AgwjAEHAAmsiACQAIABBgAJqIgMgAigCDBAWIABBgAFqIgQgAxARIAMgAigCDEEwahAWIABBwAFqIAMQESADIAIoAgxB4ABqEBYgACADEBEgAyACKAIMQZABahAWIABBQGsgAxARIAEgBCAAEKYBIABBwAJqJAALIAJBEGokAAtXAQJ/IwBBgAFrIgIkACACQUBrIQMgARBtRQRAIAEQjgEgAiABQUBrEBwgAhA8GiADIAEQHAsgAEEEOgAAIABBAWogAxAYIABBMWogAhAYIAJBgAFqJAALuwoBDn8jAEGgE2siCiQAAn8gByAFQbQEbSILQQAgBWsgC0HMe2xHaiINQcAEbCILRwRAIAogBzYCBCAKIAs2AgBB8TAgChCIAUF/DAELAkAgACgCrBAiCwRAIAAoArAQIAVODQELIAsQQiAFEEwhCyAAIAU2ArAQIAAgCzYCrBALIAogAjYC6AogCkKQgICAgAI3AuAKIAogAzYC6AQgCkKMgICAwAE3AuAEQQAhByAKQeQzKAIANgIoIApB3DMpAgA3AyAgCiAENgLoECAKIAU2AuQQIAogBTYC4BAgCiALNgLoEiAKIAU2AuQSIAogBTYC4BIgCiAINgKoEiAKQpCAgICAAjcCoBIgCkGgEmohDkEAIQMjAEGwFGsiAiQAIAIgCkHgCmoiBCgCACAEKAIIIAooAuAEIAooAugEEMIBIAIgCigCKCAKKAIgELUBIApB4BJqIhEoAgghEiAKQeAQaiIMKAIIIRMgDCgCACEEIwBBEGsiCCQAAkACQAJAIAIoArAQDgIAAQILIAJBATYCsBALIARBAEoEQCACQaAUaiEQIAJBtBBqIRQDQCACIAIoAKwUIgtBGHQgC0GA/gNxQQh0ciALQQh2QYD+A3EgC0EYdnJyQQFqIgtBGHQgC0GA/gNxQQh0ciALQQh2QYD+A3EgC0EYdnJyNgCsFCAIIBApAAg3AwggCCAQKQAANwMAIBQgCBAlQQAhCwJAIAMgBE4NAANAIAMgEmogCCALai0AACADIBNqLQAAcyIPOgAAIAIgC2pBgBBqIhUgFS0AACAPczoAACACIAIoAqwQQQFqIg82AqwQIA9FBEAgAiACKAKoEEEBajYCqBALIANBAWohAyALQQ5LDQEgC0EBaiELIAMgBEgNAAsLIAIQVCADIARIDQALCyAEQQ9xRQ0AIAJBAjYCsBALIAhBEGokACARIAwoAgA2AgAgAiAOKAIIELQBIA5BEDYCACACQbAUaiQAIA4gAEGAAWogABCSASABIAwQiwEgDBBtBEBBrDNBLhBWQX8MAQsgCkHgEGogCkGgEmoiARDRASAKQeAKaiAAQfgFaiABED0gDUEAIA1BAEobIQMgAEH4C2ohBCANQQFrIQggCkGgCmohDSAKQeAJaiEOIApBoAlqIQwgCkHgCGohECAKQaAIaiERIApB4AdqIRIgCkGgB2ohEyAKQeAGaiEUIApBoAZqIQ8gCkHgBWohFSAKQaAFaiEWA0AgAyAHRwRAIAdBtARsIgEgACgCrBBqIQsCQCAHIAhHDQAgBSABayICQbMESg0AIApBIGoiASAEQbQEEB8aIAEgCyACEB8aIAEhCwsgCiALNgIcIApCtISAgMDGADcCFCAKQeASaiIBIAsQKCAKQeAEaiICIAEQESABIAooAhxBL2oQKCAWIAEQESABIAooAhxB3gBqECggFSABEBEgASAKKAIcQY0BahAoIA8gARARIAEgCigCHEG8AWoQKCAUIAEQESABIAooAhxB6wFqECggEyABEBEgASAKKAIcQZoCahAoIBIgARARIAEgCigCHEHJAmoQKCARIAEQESABIAooAhxB+AJqECggECABEBEgASAKKAIcQacDahAoIAwgARARIAEgCigCHEHWA2oQKCAOIAEQESABIAooAhxBhQRqECggDSABEBEgAiAKQeAKahAeIAogBiAHQcAEbGo2AhwgCkLAhICAgMgANwIUIAdBAWohByAKQRRqIAIQqAEMAQsLIAkgCkHgEGoQxAFBAAshFyAKQaATaiQAIBcLBQBBwQELBQBB4QAL3AQBCX8jAEEQayIFJAACQAJAAkACQAJAAkACQAJAIAAoAggiBg4WAgMEBAcEBwcHBwcHBwcBAQcBBwcHAQALIAZBHWsiA0EQSw0GQQEgA3RBloIEcQ0EIAMNBgsgACAAQewDahAlIAZBDmshBANAIAEgAmoiAyADLQAAIAAgAmotAOwDczoAACACIARGIQggAkEBaiECIAhFDQALDAULIAAgARDOAQwECwNAIAQgBWogACAEaiIDLQDsAzoAACADIAEgBGotAAA6AOwDIARBAWoiBEEQRw0ACyAAIAEQzgEDQCABIAJqIgAgAC0AACACIAVqIgAtAABzOgAAIABBADoAACACQQFqIgJBEEcNAAsMAwsgBkEBayEDA0AgACACaiwA7AMgBEEIdHIhBCACQQFqIgIgA0cNAAsMAQsgBSAAKQD0AzcDCCAFIABB7ANqIgcpAAA3AwAgACAFECUgBkEeayEEQQAhAANAIAEgAmoiAyADLQAAIAIgBWotAABzOgAAIAIgBEchCSACQQFqIQIgCQ0ACwNAIAAgB2oiASABLQAAQQFqIgE6AAAgAUH/AXENAiAAQQFqIgBBEEcNAAsMAQsgBSAAKQD0AzcDCCAFIABB7ANqIgcpAAA3AwAgBkERSARAIAMhAgNAIAcgAiADa2ogAiAHai0AADoAACACQQ9IIQogAkEBaiECIAoNAAsLIAAgBRAlQQAhAgNAIAIgBmsgAGogASACaiIELQAAOgD9AyAEIAQtAAAgAiAFai0AAHM6AAAgAkEBaiICIANHDQALCyAFQRBqJAALBABBEAuECgEPfyMAQcAHayIJJABBfyADQcAEbSIKQbQEbEEAIANrIApB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AUEBayIEIAJBwAhqaiwAAEEGdGoQCiABQQFKIQogBCEBIAoNAAsLIAJBsAlqIgFBwC4QDyAAIAEQJyAAQQE2AjggAkHwCWokACAFQUBrJAALNgECfyAAKAIAQQBKBEADQCAAKAIIIAJqIgMgAy0AACABczoAACACQQFqIgIgACgCAEgNAAsLC3UBAn9BDCEBIAAgACkDaEIBhiAAQeAAaikDAEI5h4Q3A2gDQCAAIAFBA3RqIgIgAikDAEIBhkL//////////wODIAJBCGspAwBCOYeENwMAIAFBAWsiAUEASg0ACyAAIAApAwBCAYZC//////////8DgzcDAAsNACAAIAEgAkEOELYBCzEBAn8DQCAAIANBA3QiBGogASAEaikDACACIARqKQMAfTcDACADQQFqIgNBDkcNAAsLFQAgAEIBNwMAIABBCGpBAEEwEBUaCwwAIABBAEHwABAVGgtWAQJ/A0AgACACQQN0IgNqIAEgA2opAwA3AwAgAkEBaiICQQZHDQALIAAgASkDMEL//////////wODNwMwIAAgASkDMEI6hzcDOCAAQUBrQQBBMBAVGgtLAgF+An8DQCAAIAJBA3RqIgMgAykDACABfCIBQv//////////A4M3AwAgAUI6hyEBIAJBAWoiAkENRw0ACyAAIAApA2ggAXw3A2gLCwAgAEEAQTgQFRoLfgEEfwJAIAAoAgAiA0EIaiICIAAoAgRKDQADQCAAKAIIIANqQQA6AAAgA0EBaiIDIAJIDQALIAAgAjYCACACQQBMIAFBAExyDQADQCACQQFrIgMgACgCCGogAToAACACQQJJDQEgAUH/AUshBSABQQh2IQEgAyECIAUNAAsLCwkAIABBBxC7AQuaAQEEfyMAQdACayIDJAAgA0HwAWoiBSAAKAIIEGEgA0HAAWoiACABKAIIQQFqEGEgAyABKAIIQSFqEGFBfSEBAkAgA0EwaiIEIAAgAxDiAUUNACADQaACaiIGQYAoEBQgBSAGEC0gBCAFEOABIAQQcg0AIAAgACAEEOMBIAJBIDYCACACKAIIIAAQYkEAIQELIANB0AJqJAAgAQvcBQEJfyMAQdAMayIEJAACQCAAEHINACABEKUBBEAgABB1IABBMGoQcyAAQeAAahB1DAELIAAQmAEgBEHgCmoiAiAAEFAgAhBgIARB4AFq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QYEBaiAAEB8aQQAhBQsgBQupAQEDfyMAQRBrIgMkAEG4EBBMIgIgACABEFUgAkG4AWoiABDQASACQfgCaiIBEHwgAkH4BWoiBCABIAAQeyAEEHkgAkGAAWpBwCoQDyADIAJB+AtqNgIMIANCtISAgMDGADcCBEEAIQAgAygCBEEASgRAA0AgAhBmIQEgAygCDCAAaiABOgAAIABBAWoiACADKAIESA0ACwsgAkIANwKsECADQRBqJAAgAgtrAQJ/IwBBgAVrIgQkACAEQYAEaiIFIAAgARBVIAQQfCAEQcADaiIBQcAqEA8gBEGAA2oiACABIAUQkgEgBCAAEGQgAgRAIAIgABAYCyADBEAgAyAEEIoBCyAEQYAEahBTIARBgAVqJABBAAulAgIGfwF+IwBBwAFrIgQkACAEQUBrIgkgACABEFVBACEBIARBAEE4EBUhAANAAn8gAUUEQCAJEGYMAQsgBUEBdQshBSAAIAApAzBCAYYiCjcDMEEFIQYgACAKIAApAyhCOYeENwMwA0AgACAGQQN0aiIIIAgpAwBCAYZC//////////8DgyAIQQhrKQMAQjmHhDcDACAGQQFrIgZBAEoNAAsgACAAKQMAQgGGQv//////////A4M3AwAgACAAKQMAIAVBAXGtfDcDACABQQFqQQdxIQEgB0EBaiIHQYADRw0ACyACBEAgAiAEKQMANwAAIAIgBCkDCDcACAsgAwRAIAMgBCkDEDcAACADIAQoAhg2AAgLIARBQGsQUyAEQcABaiQAQQALUwECfyMAQcAEayIDJAAgA0GABGoiBCAAEBYgASADQYABaiIAEMMBIANBQGsiAUHAKhAPIAMgBCABEJEBIAAgAxBkIAIgABCKASADQcAEaiQAQQALbQECfyMAQcADayIEJAAgBEHAAmoiBSAAIAEQVSAEENABIARBgAJqIgFBwCoQDyAEQcABaiIAIAEgBRCSASAEIAAQ0QEgAgRAIAIgABAYCyADBEAgAyAEEMQBCyAEQcACahBTIARBwANqJABBAAsSACAAEFMgACgCrBAQQiAAEEILWAAgBiADKQAANwAAIAYgAygACDYACCAGIAUQhwE2ABwgACABIAIgBiAEIAUgBkGBAWogBUG0BG0iAEEAIAVrIABBzHtsR2pBwARsIAZBDGogBkEgahDFAQuDDgIIfwJ+IwBBgAJrIgkkAAJAIAItAABBBEcEQEEBIQtByTBBJxBWDAELAkAgBEUEQCAGRQ0BIAkgBjYCBCAJQQA2AgBBkDEgCRCIAUEBIQsMAgsgBEEQbUEEdEEQaiIKIAZGDQAgCSAGNgIUIAkgCjYCEEGQMSAJQRBqEIgBQQEhCwwBCyAJQQA2AvgBIAlCADcD8AEgCUEANgLoASAJQgA3A+ABIAlB4ABqIgogACABEFUgCSACNgJcIAlCwYCAgJAINwJUIAkgAzYCUCAJIAQ2AkwgCSAENgJIIAkgBzYCRCAJQoCAgIDAADcCPCAJIAg2AjggCUKAgICAgAI3AjAgCSAGQQhqIgAQTCIONgIsIAkgADYCKCAJQQA2AiQjAEHgAmsiAyQAIANCgICAgIAENwJUIAMgA0HAAmo2AlwgA0KAgICAkAw3AkggAyADQdABajYCUCADQoCAgICABDcCPCADIANBsAFqNgJEIANBEDYCNCADIANBoAFqNgI4IANBEDYCKCADIANBkAFqNgIsIANCgICAgIABNwIYIAMgA0GIAWo2AiAgA0KAgICAgAQ3AgwgAyADQeAAajYCFCADQQxqIQ0gCUE8aiEMQQAhAkEAIQFBACEIIwBB0AJrIgckACMAQeAAayIAJAAgAEEwaiIEQbAoEBQgAEHgKBAUIAdBMGogBCAAEOIBGiAAQeAAaiQAIAdBoAJqIgBBgCgQFAJAIAoEQCMAQdAAayIEJAAgBEEAQdAAEBUhBCAAEGNBAEoEQANAAn8gAUUEQCAKEGYMAQsgAkEBdQshAiAEEOgBIAQgBCkDACACQQFxrXw3AwAgAUEBakEHcSEBIAhBAWoiCCAAEGNBAXRIDQALCyAHQcABaiEPQQAhASMAQaABayICJAADQCAEIAFBA3RqIgggCCkDACARfCIRQv//////////AIM3AwAgEUI4hyERIAFBAWoiAUEJRw0ACyAEIAQpA0ggEXw3A0ggAiAAKQMYNwNoIAIgACkDEDcDYCACIAApAwg3A1ggAiAAKQMANwNQIAApAyAhESACQgA3A5gBIAJCADcDkAEgAkIANwOIASACQgA3A4ABIAIgEUI4hzcDeCACIBFC//////////8AgzcDcEEJIQACQAJAA0AgBCAAIgFBA3QiAGopAwAiESACQdAAaiAAaikDACISUQRAIAFBAWshACABDQEMAgsLIBEgElUNAAwBC0EAIQgDQCACQdAAahDoASAIQQFqIQhBCSEAA0AgBCAAIgFBA3QiAGopAwAiESACQdAAaiAAaikDACISUQRAIAFBAWshACABDQEMAgsLIBEgElUNAAsDQEEAIQEgAikDUCERA0AgAkHQAGoiACABQQN0aiARQgGHIAFBAWoiAUEDdCAAaikDACIRQjeGQoCAgICAgIDAAIOENwMAIAFBCUcNAAsgAiACKQOYAUIBhzcDmAFBACEBQQAhAANAIAIgAEEDdCIKaiAEIApqKQMAIAJB0ABqIApqKQMAfTcDACAAQQFqIgBBCkcNAAtCACERA0AgAiABQQN0aiIAIAApAwAgEXwiEUL//////////wCDNwMAIBFCOIchESABQQFqIgFBCUcNAAsgAiACKQNIIBF8IhE3A0hBACEBA0AgBCABQQN0IgBqIgogCiAAIAJqIBFCAFMbKQMANwMAIAFBAWoiAUEKRw0ACyAIQQFKIRAgCEEBayEIIBANAAsLQQAhAQNAIA8gAUEDdCIAaiAAIARqKQMANwMAIAFBAWoiAUEFRw0ACyACQaABaiQAIARB0ABqJAAMAQsgB0HAAWoiACANKAIIEGEgACAHQaACahAtCyAHQTBqIgAgB0HAAWoiARDgASAHQfABaiICIAcgABDjASANQSA2AgAgDSgCCCABEGIgDEHBADYCACAMKAIIQQQ6AAAgDCgCCEEBaiACEGIgDCgCCEEhaiAHEGIgB0HQAmokACANIAlB1ABqIANB1ABqIgQQ3wFFBEAgCUHgAWohASAJQcgAaiEHIAlBJGohACAJQTBqIQggA0HIAGoiAiAMEJQBIAIgBBBFIAIgCUHwAWpBICADQTxqEIYBIANBEDYCMCADQRA2AiRBACECA0AgAygCOCACaiADKAJEIAJqLQAAOgAAIAMoAiwgAmogAiADKAJEai0AEDoAACACQQFqIgJBEEcNAAsgA0EwaiAHIAAQsQEgA0EYaiICIAEoAgAQ3QEgACgCACEEIAAgARBFIAAgAhBFIAAgA0EkakEQIAgQsgEgACAENgIACyADQeACaiQAIAYgCSgCJEYEQCAFIA4gBhAfGgsgDhBCIAlB4ABqEFMgCSgCJCAGRg0AQQEhC0HDMkEpEFYLIAlBgAJqJAAgCwthACMAQTBrIgAkACAAIAE2AiwgAEKQgICAgAI3AiQgACACNgIgIAAgAzYCHCAAIAM2AhggACAENgIUIAAgBTYCECAAIAU2AgwgAEEkaiAAQRhqIABBDGoQsQEgAEEwaiQACwUAQcAECwUAQeAACwQAQTALBABBDAsEAEEgCwUAQcEACwQAQQALBABBAQueAQECfyMAQdAEayIEJAAgBEHQA2oiBUHAKhAPIAQgADYCzAMgBCABNgLIAyAEIAE2AsQDIARCgICAgIAGNwKEAyAEIARBkANqIgE2AowDIARBxANqQQBBMCAEQYQDahCGASAEQZAEaiIAIAEQFiAAIAUQJyAEEHwgBCAAEGQgAgRAIAIgABAYCyADBEAgAyAEEIoBCyAEQdAEaiQAQQALnAEBAn9BfiEJAkBBgQFB4AQgABsiCCAFSg0AIAcgBCgAHBCHASIHNgIAIAUgCCAHQbQEbSIIQQAgB2sgCEHMe2xHakHABGwiCGpIDQAgBEEgaiEFIARBDGohCSAARQRAIAEgAiAFIAMgBCAJIARB4ARqIAggBiAHEMwBDwsgASACIAUgAyAEIAkgBEGBAWogCCAGIAcQywEhCQsgCQvbBQEFfyMAQeAAayIHJAACfyACIAZKBEBB+DFBygAQVkF/DAELIAdBADYCWCAHQgA3A1AgB0EANgJIIAdCADcDQCAHIAA2AjwgB0LBgICAkAg3AjQgByADNgIwIAdCkICAgIACNwIoIAcgBDYCJCAHQqCAgICABDcCHCAHIAU2AhggByAGNgIUIAdBADYCECAHIAJBCGoiABBMIAEgAhAfIgQ2AgwgByAANgIIIAcgAjYCBCAHQdAAaiEFIAdBQGshAyAHQQRqIQEgB0EQaiEGIwBB4AJrIgAkACAAQoCAgICABDcCVCAAIABBwAJqNgJcIABCgICAgJAMNwJIIAAgAEHQAWo2AlAgAEKAgICAgAQ3AjwgACAAQbABajYCRCAAQRA2AjQgACAAQaABajYCOCAAQRA2AiggACAAQZABajYCLCAAQoCAgICAATcCGCAAIABBiAFqNgIgIABCgICAgIAENwIMIAAgAEHgAGo2AhQCf0EAIAdBHGogB0E0aiIIIABB1ABqIgkQ3wENABogAEHIAGoiAiAIEJQBIAIgCRBFIAIgBUEgIABBPGoQhgEgAEEQNgIwIABBEDYCJEEAIQIDQCAAKAI4IAJqIAAoAkQgAmotAAA6AAAgACgCLCACaiACIAAoAkRqLQAQOgAAIAJBAWoiAkEQRw0AC0EAIABBMGogASAGELABRQ0AGiAAQRhqIgIgAygCABDdASABKAIAIQUgASADEEUgASACEEUgASAAQSRqIAcoAiggAEEMahCyASABIAU2AgBBACECAkAgBygCKCIDIAAoAgxHDQBBASECIANBAEwNACAAKAIUIQUgBygCMCEGQQAhAQNAIAEgBmotAAAgASAFai0AAEYEQCADIAFBAWoiAUcNAQwCCwtBACECCyACCyEKIABB4AJqJAAgBBBCIApFBEBB7TJBPhBWQX8MAQsgBygCEAshCyAHQeAAaiQAIAsLdAAjAEEwayIAJAAgACABNgIsIABCkICAgIACNwIkIAAgAjYCICAAIAM2AhwgACADNgIYIAAgBDYCFCAAIAM2AhAgACADNgIMIABBJGogAEEYaiAAQQxqELABIQEgBSAAKAIMNgIAIABBMGokAEEAQX8gARsLCAAgAEHfA2oLFgAgAEUEQEEADwsgAEEQbUEEdEEQagsnAQF/IAFBtARtIgJBACABayACQcx7bEdqQcAEbEGBAUHgBCAAG2oLCAAgAEHfA2sLHQEBfyAAQbQEbSIBQQAgAGsgAUHMe2xHakHABGwLC+wsKgBBgAgLxR+YL4pCkUQ3cc/7wLWl27XpW8JWOfER8Vmkgj+S1V4cq5iqB9gBW4MSvoUxJMN9DFV0Xb5y/rHegKcG3Jt08ZvBwWmb5IZHvu/GncEPzKEMJG8s6S2qhHRK3KmwXNqI+XZSUT6YbcYxqMgnA7DHf1m/8wvgxkeRp9VRY8oGZykpFIUKtyc4IRsu/G0sTRMNOFNUcwpluwpqdi7JwoGFLHKSoei/oktmGqhwi0vCo1FsxxnoktEkBpnWhTUO9HCgahAWwaQZCGw3Hkx3SCe1vLA0swwcOUqq2E5Pypxb828uaO6Cj3RvY6V4FHjIhAgCx4z6/76Q62xQpPej+b7yeHHGIq4o15gvikLNZe8jkUQ3cS87TezP+8C1vNuJgaXbtek4tUjzW8JWORnQBbbxEfFZm08Zr6SCP5IYgW3a1V4cq0ICA6OYqgfYvm9wRQFbgxKMsuROvoUxJOK0/9XDfQxVb4l78nRdvnKxlhY7/rHegDUSxyWnBtyblCZpz3Txm8HSSvGewWmb5OMlTziGR77vtdWMi8adwQ9lnKx3zKEMJHUCK1lvLOktg+SmbqqEdErU+0G93KmwXLVTEYPaiPl2q99m7lJRPpgQMrQtbcYxqD8h+5jIJwOw5A7vvsd/Wb/Cj6g98wvgxiWnCpNHkafVb4ID4FFjygZwbg4KZykpFPwv0kaFCrcnJskmXDghGy7tKsRa/G0sTd+zlZ0TDThT3mOvi1RzCmWosnc8uwpqduau7UcuycKBOzWCFIUscpJkA/FMoei/ogEwQrxLZhqokZf40HCLS8IwvlQGo1FsxxhS79YZ6JLREKllVSQGmdYqIHFXhTUO9LjRuzJwoGoQyNDSuBbBpBlTq0FRCGw3Hpnrjt9Md0gnqEib4bW8sDRjWsnFswwcOcuKQeNKqthOc+Njd0/KnFujuLLW828uaPyy713ugo90YC8XQ29jpXhyq/ChFHjIhOw5ZBoIAseMKB5jI/r/vpDpvYLe62xQpBV5xrL3o/m+K1Ny4/J4ccacYSbqzj4nygfCwCHHuIbRHuvgzdZ92up40W7uf0999bpvF3KqZ/AGppjIosV9YwquDfm+BJg/ERtHHBM1C3EbhH0EI/V32yiTJMdAe6vKMry+yRUKvp48TA0QnMRnHUO2Qj7LvtTFTCp+ZfycKX9Z7PrWOqtvy18XWEdKjBlEbAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAEAAAACAAAAAGwAAADYAAABsAAAA2AAAAKsAAABNAAAAmgAAAC8AAADGY2Ol+Hx8hO53d5n2e3uN//LyDdZra73eb2+xkcXFVGAwMFACAQEDzmdnqVYrK33n/v4ZtdfXYk2rq+bsdnaaj8rKRR+Cgp2JyclA+n19h+/6+hWyWVnrjkdHyfvw8AtBra3ss9TUZ1+iov1Fr6/qI5ycv1OkpPfkcnKWm8DAW3W3t8Lh/f0cPZOTrkwmJmpsNjZafj8/QfX39wKDzMxPaDQ0XFGlpfTR5eU0+fHxCOJxcZOr2NhzYjExUyoVFT8IBAQMlcfHUkYjI2Wdw8NeMBgYKDeWlqEKBQUPL5qatQ4HBwkkEhI2G4CAm9/i4j3N6+smTicnaX+yss3qdXWfEgkJGx2Dg55YLCx0NBoaLjYbGy3cbm6ytFpa7lugoPukUlL2djs7TbfW1mF9s7POUikpe93j4z5eLy9xE4SEl6ZTU/W50dFoAAAAAMHt7SxAICBg4/z8H3mxsci2W1vt1Gpqvo3Ly0Znvr7Zcjk5S5RKSt6YTEzUsFhY6IXPz0q70NBrxe/vKk+qquXt+/sWhkNDxZpNTddmMzNVEYWFlIpFRc/p+fkQBAICBv5/f4GgUFDweDw8RCWfn7pLqKjjolFR812jo/6AQEDABY+Pij+Skq0hnZ28cDg4SPH19QRjvLzfd7a2wa/a2nVCISFjIBAQMOX//xr98/MOv9LSbYHNzUwYDAwUJhMTNcPs7C++X1/hNZeXoohERMwuFxc5k8TEV1Wnp/L8fn6Cej09R8hkZKy6XV3nMhkZK+Zzc5XAYGCgGYGBmJ5PT9Gj3Nx/RCIiZlQqKn47kJCrC4iIg4xGRsrH7u4pa7i40ygUFDyn3t55vF5e4hYLCx2t29t22+DgO2QyMlZ0OjpOFAoKHpJJSdsMBgYKSCQkbLhcXOSfwsJdvdPTbkOsrO/EYmKmOZGRqDGVlaTT5OQ38nl5i9Xn5zKLyMhDbjc3WdptbbcBjY2MsdXVZJxOTtJJqang2GxstKxWVvrz9PQHz+rqJcplZa/0enqOR66u6RAICBhvurrV8Hh4iEolJW9cLi5yOBwcJFempvFztLTHl8bGUcvo6COh3d186HR0nD4fHyGWS0vdYb293A2Li4YPioqF4HBwkHw+PkJxtbXEzGZmqpBISNgGAwMF9/b2ARwODhLCYWGjajU1X65XV/lpubnQF4aGkZnBwVg6HR0nJ56eudnh4Tjr+PgTK5iYsyIRETPSaWm7qdnZcAeOjokzlJSnLZubtjweHiIVh4eSyenpIIfOzkmqVVX/UCgoeKXf33oDjIyPWaGh+AmJiYAaDQ0XZb+/2tfm5jGEQkLG0GhouIJBQcMpmZmwWi0tdx4PDxF7sLDLqFRU/G27u9YsFhY6Y3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlH0p1B+QWVTGhekwzonXpY7q2vLH51F8az6WKtL4wOTIDD6Va12bfaIzHaR9QJMJU/l1/zFKsvXJjVEgLVio4/esVpJJbobZ0XqDphd/sDhwy91AoFM8BKNRpeja9P5xgOPX+cVkpyVv21665VSWdrUvoMtWHQh00ngaSmOychEdcKJavSOeXiZWD5rJ7lx3b7hT7bwiK0XySCsZn3OOrRj30oY5RoxgpdRM2BiU39FsWR34LtrroT+gaAc+QgrlHBIaFiPRf0ZlN5sh1J7+Lerc9MjcksC4uMfj1dmVasqsusoBy+1wgOGxXua0zcIpTAoh/Ijv6WyAgNquu0WglyKzxwrp3m0kvMH8vBOaeKhZdr0zQYFvtXRNGIfxKb+ijQuU52i81WgBYrhMqT263ULg+w5QGDvql5xnwa9bhBRPiGK+ZbdBj3dPgWuTea9RpFUjbVxxF0FBAbUb2BQFf8ZmPsk1r3pl4lAQ8xn2Z53sOhCvQeJi4jnGVs4ecju26F8Ckd8Qg/p+IQeyQAAAAAJgIaDMivtSB4RcKxsWnJO/Q7/+w+FOFY9rtUeNi05JwoP2WRoXKYhm1tU0SQ2LjoMCmexk1fnD7TultIbm5GegMDFT2HcIKJad0tpHBIaFuKTugrAoCrlPCLgQxIbFx0OCQ0L8ovHrS22qLkUHqnIV/EZha91B0zumd27o39g/fcBJp9ccvW8RGY7xVv7fjSLQyl2yyPG3Lbt/Gi45PFj1zHcykJjhRATlyJAhMYRIIVKJH3Suz34rvkyEccpoW0dni9L3LIw8w2GUux3wePQK7MWbKlwuZkRlEj6R+lkIqj8jMSg8D8aVn0s2CIzkO+HSU7H2TjRwYzKov6Y1As2pvWBz6V63ijat44mP62/pCw6neRQeJINal/Mm1R+RmL2jRPCkNi46C45916Cw6/1n12AvmnQk3xv1S2pzyUSs8ismTsQGH2n6Jxjbts7u3vNJngJblkY9OyatwGDT5qo5pVuZar/5n4hvM8I7xXo5rrnm9lKbzbO6p8J1CmwfNYxpLKvKj8jMcallDA1ombAdE68N/yCyqbgkNCwM6fYFfEEmEpB7Nr3f81QDheR9i92TdaNQ++wTcyqTVTklgTfntG140xqiBvBLB+4RmVRf51e6gQBjDVd+od0c/sLQS6zZx1aktvSUukQVjNt1kcTmtdhjDehDHpZ+BSO6xM8ic6pJ+63Yck14Rzl7XpHsTyc0t9ZVfJzPxgUznlzxze/U/fN6l/9qlvfPW8UeETbhsqv84G5aMQ+OCQ0LMKjQF8WHcNyvOIlDCg8SYv/DZVBOagBcQgMs97YtOScZFbBkHvLhGHVMrZwSGxcdNC4V0JSCWrVMDalOL9Ao56B89f7fOM5gpsv/4c0jkNExN7py1R7lDKmwiM97kyVC0L6w04ILqFmKNkksnZboklti9Elcvj2ZIZomBbUpFzMXWW2kmxwSFD97bnaXhVGV6eNnYSQ2KsAjLzTCvfkWAW4s0UG0Cwej8o/DwLBr70DAROKazqREUFPZ9zql/LPzvC05nOWrHQi5601heL5N+gcdd9uR/EacR0pxYlvt2IOqhi+G/xWPkvG0nkgmtvA/njNWvQf3agziAfHMbESEFkngOxfYFF/qRm1Sg0t5Xqfk8mc76DgO02uKvWwyOu7PINTmWEXKwR+unfWJuFpFGNVIQx9AQMFDxEzVf8aLnKWofgTNV/hOEjYc5Wk9wIGCh4iZqrlNFzkN1nrJmq+2XCQq+YxU/UEDBQ8RMxP0Wi4026yzUzUZ6ngO03XYqbxCBgoeIiDnrnQa73cf4GYs85J23aatcRX+RAwUPALHSdpu9Zho/4ZK32Hkq3sL3GTrukgYKD7FjpO0m23wl3nMlb6FT9Bw17iPUfJQMBb7Sx0nL/adZ+61WSs7yp+gp2833qOiYCbtsFY6CNlr+olb7HIQ8VU/B8hY6X0BwkbLXeZsMtGykXPSt55i4aRqOM+QsZR8w4SNlruKXuNjI+KhZSn8g0XOUvdfISXov0cJGy0x1L2AQD/GQEyAhrGS8cbaDPu3wNkBOAONI2B70xxCMj4aRzBfcIdtfm5J2pN5KZymskJeGUvigUhD+EkEvCCRTWT2o6Wj9u9NtDOlBNc0vFARoM4Zt39ML8Gi2KzJeKYIoiREH5uSMOjth5COmsoVPqFPboreQoVm59eyk7UrOXzc6dXr1ioUPTq1nRPrunV5+at6CzXdXrrFgv1WctfsJypUaB/DPZvF8RJ7NhDHy2kdnu3zLs+WvtgsYY7UqFsqlUpnZeyh5Bhvtz8vJXPzTc/W9FTOYQ8QaJtRxQqnl1W8tOrRBGS2SMgLom0fLgmd5njpWdK7d7FMf4YDWOMgMD3cAcAAAAABwBB0CcLAQcAQYAoCyRBQTbQjF7SAL87oEiv5twArrr+/////wD/////////AP////8AQbAoCySYF/gWW4HyAFnZKM4t2/wAmwIHC4fOlQBioFWsu9z5AH5mvnkAQeAoCyS41BD7j9BHAJwZVIWmSLQAF/2oCBEO/AD7pF1lxKMmAHfaOkgAQZApCyQv/P///v//AP////////8A/////////wD/////////AP////8AQcYpCwuhAJAOAKIHAAAAAQBB6CkLDTE1JdIdCTgAAAAAAAQAQYAqCwEEAEHAKgsjAQAAAP///wO//5b/vwBpAztVgB2agIAB58wg9XWmTAGn7XMAQYArCzW7xiLbCvA6A/67hl7+D3oBxYbFunHxowM4hRbk0l0+AYxoww+sqU8A41ilCeX1ZQBzOh1/AQBBwCsLNOHnxUYpI6oAA7kioijRMQMD3T5LwLKMAWwD2CtAV1cC4PX85IoddAE7jCdoPKjqAB5IP4sAQYIsCwcBAAAAAQI0AEHALAs0uL0hwchWgAD1+24BqskAA7pwFz2uR7YARNEK7ADpUwN65MZREMUtA0kBgkmkwiMALyuqJABBgC0LNX4rBF0FfawB+VUX5YREPAM0kwT1x70bAmnXatiCZEID0GtZZU8niADoNGsf2GecAAW2Aj4BAEHALQs0ASi4CIZUkwF4oijrDnOyAiPJEg0WlaYBCrWdTvcyqgKb/a0aNS7aAnFzMmOEW58Ad1JdzgBBgC4LNL55X/BfB6kCamgHO9dJwwHzs5rpcrUqAdKZvI6dFvoBKD7LmYvCKwCsNKsMM82pAwJKbGAAQcAuCzWrqv/////+Ae7//1Ss//8C6kFiD2sPKgHDnP1KFM4TAkt3ZNesS0MC7enGkqb5XwKjHhGgAQBBgC8Lda73vtWhOQYC6JPdYmRMJAHSLG5OtQktAtvlcDG2xBEBmWM2++htigO8nB/tzxZPACtqpp4BAAAA/f/8//z/8wG4XyOS7XUHAWNP4PlYT6kDZ0+cq0t4PQCR7D199fL0AwPWDx8NLCAArW+M8JnBrgDwO02QAQBBgDAL2gPzStxtEor3AIuwH1tTsFYDgvLFYx+X7AAysL/NHtseAkehVLifHyMCQHo6ogw4sQGz4sMPAAAAAC0rICAgMFgweAAobnVsbCkAaW52YWxpZCBmb3JtYXQgZm9yIHByb3ZpZGVkIHB1YmxpYyBrZXkKACV1IGJ5dGVzIG91dCByZXF1aXJlZCwgbm90ICV1CgBpbnZhbGlkIGVuY3J5cHRlZCBvdXRwdXQgYnVmZmVyIHNpemUgLSBwbGVhc2UgY2FsbCBDYWxjRW5jRUNJRVNCeXRlQ291bnQgZm9yIHNpemUuIGV4cGVjdGVkICV1LCBnb3QgJXUKAGlucHV0IGNsZWFyIGJ5dGUgYnVmZmVyIG11c3QgYmUgYXQgbGVhc3QgdGhlIHNhbWUgc2l6ZSBhcyBlbmNyeXB0ZWQgYnl0ZXMKAGVuY3J5cHRpb24gZmFpbGVkIHdpdGggdW5zcGVjaWZpZWQgZXJyb3IKAGRlY3J5cHRpb24gZmFpbGVkIHdpdGggdW5zcGVjaWZpZWQgZXJyb3IgLSBsaWtlbHkgdGFnIGZhaWx1cmUKAHByb3ZpZGVkIHByaW1hcnkgcHVibGljIGtleSBieXRlcyBhcmUgaW52YWxpZAoAQeQzCwLaGQBB8DMLQRkACgAZGRkAAAAABQAAAAAAAAkAAAAACwAAAAAAAAAAGQARChkZGQMKBwABAAkLGAAACQYLAAALAAYZAAAAGRkZAEHBNAshDgAAAAAAAAAAGQAKDRkZGQANAAACAAkOAAAACQAOAAAOAEH7NAsBDABBhzULFRMAAAAAEwAAAAAJDAAAAAAADAAADABBtTULARAAQcE1CxUPAAAABA8AAAAACRAAAAAAABAAABAAQe81CwESAEH7NQseEQAAAAARAAAAAAkSAAAAAAASAAASAAAaAAAAGhoaAEGyNgsOGgAAABoaGgAAAAAAAAkAQeM2CwEUAEHvNgsVFwAAAAAXAAAAAAkUAAAAAAAUAAAUAEGdNwsBFgBBqTcLJxUAAAAAFQAAAAAJFgAAAAAAFgAAFgAAMDEyMzQ1Njc4OUFCQ0RFRgBB0DcLAyAfAQBB7DcLASoAQbQ4CwL8HgBB2DgLAQUAQeQ4CwEBAEH8OAsKAgAAAAMAAAAcHwBBlDkLAQIAQaQ5Cwj//////////w==")||(F=l(F));var z=function(e){for(;e.length>0;)e.shift()(o)};function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return g[e>>0];case"i16":return y[e>>1];case"i32":return v[e>>2];case"i64":L("to do getValue(i64) use WASM_BIGINT");case"float":return w[e>>2];case"double":return I[e>>3];case"*":return m[e>>2];default:L("invalid type for getValue: ".concat(t))}}var V=function(){return Date.now()},Z=function(){return 2147483648},X=function(e){var t=(e-d.buffer.byteLength+65535)/65536;try{return d.grow(t),B(),1}catch(e){}},$=function(e){var t=b.length;e>>>=0;var r=Z();if(e>r)return!1;for(var n,i,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var s=Math.min(r,(n=Math.max(e,a))+((i=65536)-n%i)%i);if(X(s))return!0}return!1},ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,te=function(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&ee)return ee.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|c:(7&a)<<18|s<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var u=a-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},re=function(e){return 52},ne=function(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN};function ie(e,t,r,n,i){return ne(t,r),70}var oe,ae=[null,[],[]],se=function(e,t){var r=ae[e];0===t||10===t?((1===e?A:p)(te(r,0)),r.length=0):r.push(t)},ce=function(e,t,r,n){for(var i=0,o=0;o<r;o++){var a=m[t>>2],s=m[t+4>>2];t+=8;for(var c=0;c<s;c++)se(e,b[a+c]);i+=s}return m[n>>2]=i,0},ue=function(e,t){g.set(e,t)},fe={e:V,b:$,d:re,a:ie,c:ce},le=J();function he(e){try{for(var t=atob(e),r=new Uint8Array(t.length),n=0;n<t.length;++n)r[n]=t.charCodeAt(n);return r}catch(e){throw new Error("Converting base64 string to bytes failed.")}}function de(e){if(G(e))return he(e.slice(U.length))}function Ae(){function t(){oe||(oe=!0,o.calledRun=!0,E||(Q(),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),x()))}j>0||(S(),j>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t()))}if(o._EMS_AES_KEY_SIZE_=function(){return(o._EMS_AES_KEY_SIZE_=le.h)()},o._EMS_CRYPTO_TYPE_TARGET_=function(){return(o._EMS_CRYPTO_TYPE_TARGET_=le.i)()},o._EMS_CRYPTO_TYPE_PRIMARY_=function(){return(o._EMS_CRYPTO_TYPE_PRIMARY_=le.j)()},o._EMS_TARGET_BLOCK_KEY_SIZE_=function(){return(o._EMS_TARGET_BLOCK_KEY_SIZE_=le.k)()},o._EMS_TARGET_PK_KEY_SIZE_=function(){return(o._EMS_TARGET_PK_KEY_SIZE_=le.l)()},o._EMS_ECIES_PK_KEY_SIZE_=function(){return(o._EMS_ECIES_PK_KEY_SIZE_=le.m)()},o._EMS_ECIES_SK_KEY_SIZE_=function(){return(o._EMS_ECIES_SK_KEY_SIZE_=le.n)()},o._EMS_IV_SIZE_=function(){return(o._EMS_IV_SIZE_=le.o)()},o._EMS_PRIMARY_BLOCK_KEY_SIZE_=function(){return(o._EMS_PRIMARY_BLOCK_KEY_SIZE_=le.p)()},o._EMS_PRIMARY_PK_KEY_SIZE_=function(){return(o._EMS_PRIMARY_PK_KEY_SIZE_=le.q)()},o._EMS_RE_ENCRYPTION_KEY_SIZE_=function(){return(o._EMS_RE_ENCRYPTION_KEY_SIZE_=le.r)()},o._EMS_SECRET_KEY_SIZE_=function(){return(o._EMS_SECRET_KEY_SIZE_=le.s)()},o._EMS_SEED_SIZE_=function(){return(o._EMS_SEED_SIZE_=le.t)()},o._EMS_TAG_SIZE_=function(){return(o._EMS_TAG_SIZE_=le.u)()},o._free=function(e){return(o._free=le.v)(e)},o._malloc=function(e){return(o._malloc=le.w)(e)},o._DeriveTargetKeys=function(e,t,r,n){return(o._DeriveTargetKeys=le.x)(e,t,r,n)},o._CalcEncByteCount=function(e){return(o._CalcEncByteCount=le.y)(e)},o._CalcEncByteCountFromTargetH=function(e){return(o._CalcEncByteCountFromTargetH=le.z)(e)},o._CalcEncByteCountH=function(e,t){return(o._CalcEncByteCountH=le.A)(e,t)},o._CalcEncECIESByteCount=function(e){return(o._CalcEncECIESByteCount=le.B)(e)},o._CalcTargetByteCountH=function(e){return(o._CalcTargetByteCountH=le.C)(e)},o._DecryptAES=function(e,t,r,n,i,a){return(o._DecryptAES=le.D)(e,t,r,n,i,a)},o._DecryptECIES=function(e,t,r,n,i,a,s){return(o._DecryptECIES=le.E)(e,t,r,n,i,a,s)},o._DecryptH=function(e,t,r,n,i,a,s,c){return(o._DecryptH=le.F)(e,t,r,n,i,a,s,c)},o._DecryptTarget=function(e,t,r,n,i,a,s,c,u,f){return(o._DecryptTarget=le.G)(e,t,r,n,i,a,s,c,u,f)},o._DecryptPrimary=function(e,t,r,n,i,a,s,c,u,f){return(o._DecryptPrimary=le.H)(e,t,r,n,i,a,s,c,u,f)},o._EncryptAES=function(e,t,r,n,i,a){return(o._EncryptAES=le.I)(e,t,r,n,i,a)},o._EncryptECIES=function(e,t,r,n,i,a,s,c,u){return(o._EncryptECIES=le.J)(e,t,r,n,i,a,s,c,u)},o._EncryptPrimary=function(e,t,r,n,i,a,s,c,u,f){return(o._EncryptPrimary=le.K)(e,t,r,n,i,a,s,c,u,f)},o._EncryptPrimaryH=function(e,t,r,n,i,a,s){return(o._EncryptPrimaryH=le.L)(e,t,r,n,i,a,s)},o._FreeCryptoContext=function(e){return(o._FreeCryptoContext=le.M)(e)},o._GeneratePrimaryKeys=function(e,t,r,n){return(o._GeneratePrimaryKeys=le.N)(e,t,r,n)},o._GenerateReEncryptionKey=function(e,t,r){return(o._GenerateReEncryptionKey=le.O)(e,t,r)},o._GenerateTargetKeys=function(e,t,r,n){return(o._GenerateTargetKeys=le.P)(e,t,r,n)},o._GenerateSymmetricKeys=function(e,t,r,n){return(o._GenerateSymmetricKeys=le.Q)(e,t,r,n)},o._NewCryptoContext=function(e,t){return(o._NewCryptoContext=le.R)(e,t)},o._ReEncryptBlockKey=function(e,t,r){return(o._ReEncryptBlockKey=le.S)(e,t,r)},o._ReEncryptH=function(e,t,r,n,i){return(o._ReEncryptH=le.T)(e,t,r,n,i)},o.getValue=W,o.writeArrayToMemory=ue,M=function e(){oe||Ae(),oe||(M=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ae(),r.ready});t.a=o},function(e,t,r){var n=r(54),i=r(25),o=r(26),a=r(73),s=r(74);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var h=r(200),d=r(44),A=r(226).permissionLevels,p=r(118).LogMessage,g=r(296),b=function(){"use strict";function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.target,s=r.timeout,c=void 0===s?30:s;a(this,e),this.permissionLevels=A,!n&&"undefined"!=typeof window&&window.parent&&(n=window.parent),this.target=n,this.timeout=c,this.utils=d,this.Crypto=g,this.Crypto.ElvCrypto();var u,l=f(this.AllowedMethods());try{var h=function(){var e=u.value;t[e]=function(){var r=o(i.mark((function r(n){var o;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o=n&&n.callback)&&delete n.callback,r.next=4,t.SendMessage({options:{calledMethod:e,args:t.utils.MakeClonable(n)},callback:o});case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()};for(l.s();!(u=l.n()).done;)h()}catch(e){l.e(e)}finally{l.f()}this.userProfileClient={};var p,b=f(this.AllowedUserProfileMethods());try{var y=function(){var r=p.value;t.userProfileClient[r]=function(){var n=o(i.mark((function n(o){var a;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(a=o&&o.callback)&&delete o.callback,n.next=4,t.SendMessage({options:{module:"userProfileClient",calledMethod:r,args:t.utils.MakeClonable(o),prompted:e.PromptedMethods().includes(r)},callback:a});case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()};for(b.s();!(p=b.n()).done;)y()}catch(e){b.e(e)}finally{b.f()}this.walletClient={};var v,m=f(this.AllowedWalletClientMethods());try{var w=function(){var e=v.value;t.walletClient[e]=function(){var r=o(i.mark((function r(n){var o;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o=n&&n.callback)&&delete n.callback,r.next=4,t.SendMessage({options:{module:"walletClient",calledMethod:e,args:t.utils.MakeClonable(n)},callback:o});case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()};for(m.s();!(v=m.n()).done;)w()}catch(e){m.e(e)}finally{m.f()}}return s(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this,e,t)}},{key:"PassRequest",value:(n=o(i.mark((function e(t){var r,n,o,a,s;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.request,n=t.Respond,e.prev=1,r.callbackId&&(s=function(e){return n({type:"ElvFrameResponse",requestId:r.callbackId,response:e})}),e.next=5,this.SendMessage({options:r,callback:s});case 5:o=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),a=e.t0;case 11:return e.abrupt("return",{type:"ElvFrameResponse",requestId:r.requestId,response:o,error:a});case 12:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return n.apply(this,arguments)})},{key:"SendMessage",value:(r=o(i.mark((function t(r){var n,o,a,s,c,f,l,d,A,p;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.options,o=void 0===n?{}:n,a=r.callback,s=r.noResponse,c=void 0!==s&&s,f=h.next(),a&&(l=h.next()),this.target.postMessage(u(u({},o),{},{type:"ElvFrameRequest",requestId:f,callbackId:l}),"*"),!c){t.next=6;break}return t.abrupt("return");case 6:return d=o.calledMethod||o.operation,A=e.FileMethods().includes(o.calledMethod),p=this.timeout,o.prompted||A?p=0:o.args&&o.args.fcTimeout&&(p=o.args.fcTimeout),t.next=12,this.AwaitMessage(f,p,a,l,d);case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t,this)}))),function(e){return r.apply(this,arguments)})},{key:"AwaitMessage",value:(t=o(i.mark((function e(t,r,n,a,s){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,c){var u,f,l,h=function(){f&&clearTimeout(f),r>0&&(f=setTimeout((function(){"undefined"!=typeof window&&(window.removeEventListener("message",u),l&&window.removeEventListener("message",l)),c("Request ".concat(t," timed out (").concat(s,")"))}),1e3*r))};a&&(l=function(e){try{h();var t=e.data;if("ElvFrameResponse"!==t.type||t.requestId!==a)return;n(t.response)}catch(e){console.error(e)}},window.addEventListener("message",l)),u=function(){var r=o(i.mark((function r(n){var o;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"ElvFrameResponse"===(o=n.data).type&&o.requestId===t){r.next=4;break}return r.abrupt("return");case 4:clearTimeout(f),window.removeEventListener("message",u),l&&window.removeEventListener("message",l),o.error?c(o.error):e(o.response),r.next=16;break;case 10:r.prev=10,r.t0=r.catch(0),clearTimeout(f),window.removeEventListener("message",u),l&&window.removeEventListener("message",l),c(r.t0);case 16:case"end":return r.stop()}}),r,null,[[0,10]])})));return function(e){return r.apply(this,arguments)}}(),h(),window.addEventListener("message",u)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,r,n,i,o){return t.apply(this,arguments)})},{key:"OverriddenMethods",value:function(){return["UploadFiles"]}},{key:"AllowedMethods",value:function(){return["AccessGroupManagers","AccessGroupMembers","AccessGroupOwner","AccessInfo","AccessRequest","AccessType","AddAccessGroupManager","AddAccessGroupMember","AddContentLibraryGroup","AddContentObjectGroupPermission","AddLibraryContentType","AssetMetadata","AuditContentObject","AuditStream","AvailableDRMs","AvailableOfferings","AwaitPending","BitmovinPlayoutOptions","BlockNumber","CallBitcodeMethod","CallContractMethod","CallContractMethodAndWait","ClearCache","ClearStaticToken","Collection","CollectionTransactions","ConfigUrl","ContentLibraries","ContentLibrary","ContentLibraryGroupPermissions","ContentLibraryOwner","ContentObject","ContentObjectAccessComplete","ContentObjectGraph","ContentObjectGroupPermissions","ContentObjectImageUrl","ContentObjectLibraryId","ContentObjectMetadata","ContentObjectOwner","ContentObjectTenantId","ContentObjectVersions","ContentObjects","ContentPart","ContentParts","ContentSpaceId","ContentType","ContentTypeOwner","ContentTypes","ContractAbi","ContractEvents","ContractInfo","ContractMetadata","ContractName","CopyContentObject","CreateABRMezzanine","CreateAccessGroup","CreateAndFinalizeContentObject","CreateContentLibrary","CreateContentObject","CreateContentType","CreateEncryptionConk","CreateFabricToken","CreateFileDirectories","CreateFileUploadJob","CreateLinks","CreateNTPInstance","CreateNonOwnerCap","CreatePart","CreateProductionMaster","CreateSignedToken","CreateStaticToken","CurrentAccountAddress","CustomContractAddress","Decrypt","DecryptECIES","DefaultKMSAddress","DeleteAccessGroup","DeleteContentLibrary","DeleteContentObject","DeleteContentVersion","DeleteFiles","DeleteMetadata","DeleteNTPInstance","DeletePart","DeleteWriteToken","DeployContract","Download","DownloadEncrypted","DownloadFile","DownloadPart","EditAndFinalizeContentObject","EditContentObject","EmbedUrl","Encrypt","EncryptECIES","EncryptionConk","Events","ExtractEventFromLogs","ExtractValueFromEvent","FabricUrl","FileUrl","FinalizeABRMezzanine","FinalizeContentObject","FinalizePart","FinalizeStateChannelAccess","FinalizeUploadJob","FormatContractArguments","GenerateStateChannelToken","GenerateSignedLinkToken","GetBalance","GlobalUrl","InitializeAuthPolicy","IssueNTPCode","IssueSignedNTPCode","LatestVersionHash","LibraryContentTypes","LinkAccessGroupToOauth","LinkData","LinkTarget","LinkUrl","ListAccessGroups","ListFiles","ListNTPInstances","LRODraftInfo","LROStatus","MakeAuthServiceRequest","MakeFileServiceRequest","MergeContractMetadata","MergeMetadata","MetadataAuth","MintNFT","MoveFiles","NetworkInfo","NodeId","Nodes","NTPInstance","Permission","PlayoutOptions","PlayoutPathResolution","ProduceMetadataLinks","Proofs","PublicRep","PublishContentVersion","QParts","RecordWriteToken","RedeemCode","RemoveAccessGroupManager","RemoveAccessGroupMember","RemoveContentObjectGroupPermission","RemoveContentLibraryGroup","RemoveLibraryContentType","Rep","ReplaceContractMetadata","ReplaceMetadata","Request","ResetRegion","SendFunds","SetAccessCharge","SetAuth","SetAuthContext","SetAuthPolicy","SetContentLibraryImage","SetContentObjectImage","SetCustomContentContract","SetGroupPermission","SetNodes","SetOauthToken","SetPolicyAuthorization","SetSignerFromOauthToken","SetStaticToken","SetVisibility","SetPermission","SpaceNodes","StartABRMezzanineJobs","StreamAddWatermark","StreamConfig","StreamCopyToVod","StreamCreate","StreamInitialize","StreamInsertion","StreamListUrls","StreamRemoveWatermark","StreamStatus","StreamStartOrStopOrReset","StreamStopSession","SuspendNTPInstance","UnlinkAccessGroupFromOauth","UpdateContentObjectGraph","UpdateNTPInstance","UploadFileData","UploadFilesFromS3","UploadJobStatus","UploadPart","UploadPartChunk","UploadStatus","UseRegion","Visibility","WriteTokenNodeUrl"]}},{key:"AllowedUserProfileMethods",value:function(){return["AccessLevel","CollectedTags","CreateWallet","DeleteUserMetadata","MergeUserMetadata","PublicUserMetadata","ReplaceUserMetadata","TenantContractId","TenantId","UserMetadata","UserProfileImage","UserWalletAddress","UserWalletObjectInfo","WalletAddress"]}},{key:"AllowedWalletClientMethods",value:function(){return["AcceptMarketplaceOffer","AddNotificationListener","AvailableMarketplaces","CanSign","CastVote","ClaimItem","ClaimStatus","CollectionRedemptionStatus","CreateListing","CreateMarketplaceOffer","DeployTenant","DropStatus","ExchangeRate","FilteredQuery","LatestMarketplaceHash","Leaderboard","Listing","ListingAttributes","ListingEditionNames","ListingNames","ListingPurchaseStatus","ListingStats","ListingStatus","Listings","LoadAvailableMarketplaces","LoadDrop","LoadMarketplace","Marketplace","MarketplaceCSS","MarketplaceInfo","MarketplaceOffers","MarketplaceStock","MintingStatus","NFT","NFTContractStats","Notifications","PackOpenStatus","Profile","ProfileMetadata","PurchaseStatus","PushNotification","RejectMarketplaceOffer","RemoveListing","RemoveMarketplaceOffer","RemoveProfileMetadata","RevokeVote","Sales","SalesNames","SalesStats","SetProfileMetadata","SubmitDropVote","TenantConfiguration","TransferNFT","Transfers","UserAddress","UserInfo","UserItemAttributes","UserItemEditionNames","UserItemNames","UserItems","UserListings","UserNameToAddress","UserSales","UserTransfers","UserWalletBalance","VoteStatus"]}}],[{key:"PromptedMethods",value:function(){return["CollectedTags","DeleteUserMetadata","MergeUserMetadata","ReplaceUserMetadata","UserMetadata"]}},{key:"MetadataMethods",value:function(){return["DeleteUserMetadata","MergeUserMetadata","ReplaceUserMetadata","UserMetadata"]}},{key:"FileMethods",value:function(){return["CreateFileUploadJob","DownloadEncrypted","DownloadFile","DownloadPart","FinalizeUploadJob","UpdateContentObjectGraph","UploadFileData","UploadFiles","UploadFilesFromS3","UploadJobStatus","UploadPart","UploadPartChunk","UploadStatus"]}}]);var t,r,n}(),y=r(396).UploadFiles;b.prototype.UploadFiles=y,t.FrameClient=b},,,function(e,t,r){var n=r(33).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(33).default;function i(){"use strict";
|
|
58
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new O(n||[]);return s(o,"_invoke",{value:S(e,r,a)}),o}function A(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var p="suspendedStart",g="executing",b="completed",y={};function v(){}function m(){}function w(){}var I={};h(I,u,(function(){return this}));var E=Object.getPrototypeOf,B=E&&E(E(D([])));B&&B!==o&&a.call(B,u)&&(I=B);var C=w.prototype=v.prototype=Object.create(I);function _(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(i,o,s,c){var u=A(e[i],e,o);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var i=p;return function(o,a){if(i===g)throw Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=Q(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=A(e,r,n);if("normal"===u.type){if(i=n.done?b:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=b,n.method="throw",n.arg=u.arg)}}}function Q(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Q(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=A(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+" is not iterable")}return m.prototype=w,s(C,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:m,configurable:!0}),m.displayName=h(w,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},r.awrap=function(e){return{__await:e}},_(k.prototype),h(k.prototype,f,(function(){return this})),r.AsyncIterator=k,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var a=new k(d(e,t,n,i),o);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),h(C,l,"Generator"),h(C,u,(function(){return this})),h(C,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=D,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(73),i=r(74),o=0,a=function(){"use strict";return i((function e(){n(this,e)}),null,[{key:"next",value:function(){return++o}}])}();e.exports=a},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[f++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(f(e,a,a+16383>s?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function f(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
59
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
60
|
+
t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,A=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=A,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+d]=255&a,d+=A,a/=256,u-=8);e[r+d-A]|=128*p}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){var n=r(106);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(208),i=r(209),o=r(107),a=r(210);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(4).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,c=e.charAt(0),u=Math.log(s)/Math.log(256),f=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===c;)i++,r++;for(var a=(e.length-r)*u+1>>>0,f=new Uint8Array(a);e[r];){var l=t[e.charCodeAt(r)];if(255===l)return;for(var h=0,d=a-1;(0!==l||h<o)&&-1!==d;d--,h++)l+=s*f[d]>>>0,f[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=h,r++}for(var A=a-o;A!==a&&0===f[A];)A++;var p=n.allocUnsafe(i+(a-A));p.fill(0,0,i);for(var g=i;A!==a;)p[g++]=f[A++];return p}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var u=(a-o)*f+1>>>0,l=new Uint8Array(u);o!==a;){for(var h=t[o],d=0,A=u-1;(0!==h||d<i)&&-1!==A;A--,d++)h+=256*l[A]>>>0,l[A]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=d,o++}for(var p=u-i;p!==u&&0===l[p];)p++;for(var g=c.repeat(r);p<u;++p)g+=e.charAt(l[p]);return g},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t,r){var n;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(o){"use strict";var a,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,c="function"==typeof Symbol&&"symbol"==i(Symbol.iterator),u=Math.ceil,f=Math.floor,l="[BigNumber Error] ",h=l+"Number primitive has more than 15 significant digits: ",d=1e14,A=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e9;function g(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function y(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(s=(c=i.length)<(u=o.length)?c:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function v(e,t,r,n){if(e<t||e>r||e!==f(e))throw Error(l+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function m(e){var t=e.c.length-1;return g(e.e/14)==t&&e.c[t]%2!=0}function w(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function I(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(a=function e(t){var r,n,o,a,E,B,C,_,k,S=U.prototype={constructor:U,toString:null,valueOf:null},Q=new U(1),x=20,R=4,O=-7,D=21,j=-1e7,P=1e7,M=!1,N=1,T=0,L={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz";function U(e,t){var r,i,a,c,u,l,d,A,p=this;if(!(p instanceof U))return new U(e,t);if(null==t){if(e&&!0===e._isBigNumber)return p.s=e.s,void(!e.c||e.e>P?p.c=p.e=null:e.e<j?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice()));if((l="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,u=e;u>=10;u/=10,c++);return void(c>P?p.c=p.e=null:(p.e=c,p.c=[e]))}A=String(e)}else{if(!s.test(A=String(e)))return o(p,A,l);p.s=45==A.charCodeAt(0)?(A=A.slice(1),-1):1}(c=A.indexOf("."))>-1&&(A=A.replace(".","")),(u=A.search(/e/i))>0?(c<0&&(c=u),c+=+A.slice(u+1),A=A.substring(0,u)):c<0&&(c=A.length)}else{if(v(t,2,F.length,"Base"),10==t)return K(p=new U(e),x+p.e+1,R);if(A=String(e),l="number"==typeof e){if(0*e!=0)return o(p,A,l,t);if(p.s=1/e<0?(A=A.slice(1),-1):1,U.DEBUG&&A.replace(/^0\.0*|\./,"").length>15)throw Error(h+e)}else p.s=45===A.charCodeAt(0)?(A=A.slice(1),-1):1;for(r=F.slice(0,t),c=u=0,d=A.length;u<d;u++)if(r.indexOf(i=A.charAt(u))<0){if("."==i){if(u>c){c=d;continue}}else if(!a&&(A==A.toUpperCase()&&(A=A.toLowerCase())||A==A.toLowerCase()&&(A=A.toUpperCase()))){a=!0,u=-1,c=0;continue}return o(p,String(e),l,t)}l=!1,(c=(A=n(A,t,10,p.s)).indexOf("."))>-1?A=A.replace(".",""):c=A.length}for(u=0;48===A.charCodeAt(u);u++);for(d=A.length;48===A.charCodeAt(--d););if(A=A.slice(u,++d)){if(d-=u,l&&U.DEBUG&&d>15&&(e>9007199254740991||e!==f(e)))throw Error(h+p.s*e);if((c=c-u-1)>P)p.c=p.e=null;else if(c<j)p.c=[p.e=0];else{if(p.e=c,p.c=[],u=(c+1)%14,c<0&&(u+=14),u<d){for(u&&p.c.push(+A.slice(0,u)),d-=14;u<d;)p.c.push(+A.slice(u,u+=14));u=14-(A=A.slice(u)).length}else u-=d;for(;u--;A+="0");p.c.push(+A)}}else p.c=[p.e=0]}function G(e,t,r,n){var i,o,a,s,c;if(null==r?r=R:v(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=b(e.c),c=1==n||2==n&&(a<=O||a>=D)?w(c,a):I(c,a,"0");else if(o=(e=K(new U(e),t,r)).e,s=(c=b(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;s<t;c+="0",s++);c=w(c,o)}else if(t-=a,c=I(c,o,"0"),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function H(e,t){for(var r,n=1,i=new U(e[0]);n<e.length;n++){if(!(r=new U(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>P?e.c=e.e=null:r<j?e.c=[e.e=0]:(e.e=r,e.c=t),e}function K(e,t,r,n){var i,o,a,s,c,l,h,p=e.c,g=A;if(p){e:{for(i=1,s=p[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[l=0])/g[i-a-1]%10|0;else if((l=u((o+1)/14))>=p.length){if(!n)break e;for(;p.length<=l;p.push(0));c=h=0,i=1,a=(o%=14)-14+1}else{for(c=s=p[l],i=1;s>=10;s/=10,i++);h=(a=(o%=14)-14+i)<0?0:c/g[i-a-1]%10|0}if(n=n||t<0||null!=p[l+1]||(a<0?c:c%g[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/g[i-a]:0:p[l-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=g[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=l,s=1,l--):(p.length=l+1,s=g[14-o],p[l]=a>0?f(c/g[i-a]%g[a])*s:0),n)for(;;){if(0==l){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,p[0]==d&&(p[0]=1));break}if(p[l]+=s,p[l]!=d)break;p[l--]=0,s=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e<j&&(e.c=[e.e=0])}return e}function Y(e){var t,r=e.e;return null===r?e.toString():(t=b(e.c),t=r<=O||r>=D?w(t,r):I(t,r,"0"),e.s<0?"-"+t:t)}return U.clone=e,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(e){var t,r;if(null!=e){if("object"!=i(e))throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(r=e[t],0,p,t),x=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(r=e[t],0,8,t),R=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(v(r[0],-p,0,t),v(r[1],0,p,t),O=r[0],D=r[1]):(v(r,-p,p,t),O=-(D=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)v(r[0],-p,-1,t),v(r[1],1,p,t),j=r[0],P=r[1];else{if(v(r,-p,p,t),!r)throw Error(l+t+" cannot be zero: "+r);j=-(P=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(l+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(l+"crypto unavailable");M=r}else M=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(v(r=e[t],0,p,t),T=r),e.hasOwnProperty(t="FORMAT")){if("object"!=i(r=e[t]))throw Error(l+t+" not an object: "+r);L=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(l+t+" invalid: "+r);F=r}}return{DECIMAL_PLACES:x,ROUNDING_MODE:R,EXPONENTIAL_AT:[O,D],RANGE:[j,P],CRYPTO:M,MODULO_MODE:N,POW_PRECISION:T,FORMAT:L,ALPHABET:F}},U.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!U.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-p&&i<=p&&i===f(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=d||r!==f(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(l+"Invalid BigNumber: "+e)},U.maximum=U.max=function(){return H(arguments,S.lt)},U.minimum=U.min=function(){return H(arguments,S.gt)},U.random=(a=9007199254740992*Math.random()&2097151?function(){return f(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,o,s=0,c=[],h=new U(Q);if(null==e?e=x:v(e,0,p),i=u(e/14),M)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*t[s]+(t[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[s]=r[0],t[s+1]=r[1]):(c.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw M=!1,Error(l+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(o%1e14),s+=7);s=i/7}if(!M)for(;s<i;)(o=a())<9e15&&(c[s++]=o%1e14);for(e%=14,(i=c[--s])&&e&&(o=A[14-e],c[s]=f(i/o)*o);0===c[s];c.pop(),s--);if(s<0)c=[n=0];else{for(n=-1;0===c[0];c.splice(0,1),n-=14);for(s=1,o=c[0];o>=10;o/=10,s++);s<14&&(n-=14-s)}return h.e=n,h.c=c,h}),U.sum=function(){for(var e=1,t=arguments,r=new U(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){function e(e,t,r,n){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(t,n,i,o,a){var s,c,u,f,l,h,d,A,p=t.indexOf("."),g=x,y=R;for(p>=0&&(f=T,T=0,t=t.replace(".",""),h=(A=new U(n)).pow(t.length-p),T=f,A.c=e(I(b(h.c),h.e,"0"),10,i,"0123456789"),A.e=A.c.length),u=f=(d=e(t,n,i,a?(s=F,"0123456789"):(s="0123456789",F))).length;0==d[--f];d.pop());if(!d[0])return s.charAt(0);if(p<0?--u:(h.c=d,h.e=u,h.s=o,d=(h=r(h,A,g,y,i)).c,l=h.r,u=h.e),p=d[c=u+g+1],f=i/2,l=l||c<0||null!=d[c+1],l=y<4?(null!=p||l)&&(0==y||y==(h.s<0?3:2)):p>f||p==f&&(4==y||l||6==y&&1&d[c-1]||y==(h.s<0?8:7)),c<1||!d[0])t=l?I(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(d.length=c,l)for(--i;++d[--c]>i;)d[c]=0,c||(++u,d=[1].concat(d));for(f=d.length;!d[--f];);for(p=0,t="";p<=f;t+=s.charAt(d[p++]));t=I(t,u,s.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%1e7,f=t/1e7|0;for(e=e.slice();c--;)s=((i=u*(o=e[c]%1e7)+(n=f*o+(a=e[c]/1e7|0)*u)%1e7*1e7+s)/r|0)+(n/1e7|0)+f*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var c,u,l,h,A,p,b,y,v,m,w,I,E,B,C,_,k,S=n.s==i.s?1:-1,Q=n.c,x=i.c;if(!(Q&&Q[0]&&x&&x[0]))return new U(n.s&&i.s&&(Q?!x||Q[0]!=x[0]:x)?Q&&0==Q[0]||!x?0*S:S/0:NaN);for(v=(y=new U(S)).c=[],S=o+(u=n.e-i.e)+1,s||(s=d,u=g(n.e/14)-g(i.e/14),S=S/14|0),l=0;x[l]==(Q[l]||0);l++);if(x[l]>(Q[l]||0)&&u--,S<0)v.push(1),h=!0;else{for(B=Q.length,_=x.length,l=0,S+=2,(A=f(s/(x[0]+1)))>1&&(x=e(x,A,s),Q=e(Q,A,s),_=x.length,B=Q.length),E=_,w=(m=Q.slice(0,_)).length;w<_;m[w++]=0);k=x.slice(),k=[0].concat(k),C=x[0],x[1]>=s/2&&C++;do{if(A=0,(c=t(x,m,_,w))<0){if(I=m[0],_!=w&&(I=I*s+(m[1]||0)),(A=f(I/C))>1)for(A>=s&&(A=s-1),b=(p=e(x,A,s)).length,w=m.length;1==t(p,m,b,w);)A--,r(p,_<b?k:x,b,s),b=p.length,c=1;else 0==A&&(c=A=1),b=(p=x.slice()).length;if(b<w&&(p=[0].concat(p)),r(m,p,w,s),w=m.length,-1==c)for(;t(x,m,_,w)<1;)A++,r(m,_<w?k:x,w,s),w=m.length}else 0===c&&(A++,m=[0]);v[l++]=A,m[0]?m[w++]=Q[E]||0:(m=[Q[E]],w=1)}while((E++<B||null!=m[0])&&S--);h=null!=m[0],v[0]||v.splice(0,1)}if(s==d){for(l=1,S=v[0];S>=10;S/=10,l++);K(y,o+(y.e=l+14*u-1)+1,a,h)}else y.e=u,y.r=+h;return y}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,C=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,k=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,r,n){var i,o=r?t:t.replace(k,"");if(_.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(E,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(B,"$1").replace(C,"0.$1")),t!=o))return new U(o,i);if(U.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new U(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return y(this,new U(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i,o=this;if(null!=e)return v(e,0,p),null==t?t=R:v(t,0,8),K(new U(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=14*((i=r.length-1)-g(this.e/14)),i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return r(this,new U(e,t),x,R)},S.dividedToIntegerBy=S.idiv=function(e,t){return r(this,new U(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,n,i,o,a,s,c,h,d=this;if((e=new U(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new U(t)),a=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return h=new U(Math.pow(+Y(d),a?2-m(e):+Y(e))),t?h.mod(t):h;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new U(NaN);(n=!s&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||a&&d.c[1]>=24e7:d.c[0]<8e13||a&&d.c[0]<=9999975e7)))return o=d.s<0&&m(e)?-0:0,d.e>-1&&(o=1/o),new U(s?1/o:o);T&&(o=u(T/14+2))}for(a?(r=new U(.5),s&&(e.s=1),c=m(e)):c=(i=Math.abs(+Y(e)))%2,h=new U(Q);;){if(c){if(!(h=h.times(d)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=f(i/2)))break;c=i%2}else if(K(e=e.times(r),e.e+1,1),e.e>14)c=m(e);else{if(0===(i=+Y(e)))break;c=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}return n?h:(s&&(h=Q.div(h)),t?h.mod(t):o?K(h,T,R,void 0):h)},S.integerValue=function(e){var t=new U(this);return null==e?e=R:v(e,0,8),K(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===y(this,new U(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return y(this,new U(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=y(this,new U(e,t)))||0===t},S.isInteger=function(){return!!this.c&&g(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return y(this,new U(e,t))<0},S.isLessThanOrEqualTo=S.lte=function(e,t){return-1===(t=y(this,new U(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new U(e,t)).s,!s||!t)return new U(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/14,u=e.e/14,f=a.c,l=e.c;if(!c||!u){if(!f||!l)return f?(e.s=-t,e):new U(l?a:NaN);if(!f[0]||!l[0])return l[0]?(e.s=-t,e):new U(f[0]?a:3==R?-0:0)}if(c=g(c),u=g(u),f=f.slice(),s=c-u){for((o=s<0)?(s=-s,i=f):(u=c,i=l),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=f.length)<(t=l.length))?s:t,s=t=0;t<n;t++)if(f[t]!=l[t]){o=f[t]<l[t];break}if(o&&(i=f,f=l,l=i,e.s=-e.s),(t=(n=l.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=d-1;n>s;){if(f[--n]<l[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=d}f[n]-=l[n]}for(;0==f[0];f.splice(0,1),--u);return f[0]?q(e,f,u):(e.s=3==R?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,t){var n,i,o=this;return e=new U(e,t),!o.c||!e.s||e.c&&!e.c[0]?new U(NaN):!e.c||o.c&&!o.c[0]?new U(o):(9==N?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,N),(e=o.minus(n.times(e))).c[0]||1!=N||(e.s=o.s),e)},S.multipliedBy=S.times=function(e,t){var r,n,i,o,a,s,c,u,f,l,h,A,p,b,y=this,v=y.c,m=(e=new U(e,t)).c;if(!(v&&m&&v[0]&&m[0]))return!y.s||!e.s||v&&!v[0]&&!m||m&&!m[0]&&!v?e.c=e.e=e.s=null:(e.s*=y.s,v&&m?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=g(y.e/14)+g(e.e/14),e.s*=y.s,(c=v.length)<(l=m.length)&&(p=v,v=m,m=p,i=c,c=l,l=i),i=c+l,p=[];i--;p.push(0));for(b=d,1e7,i=l;--i>=0;){for(r=0,h=m[i]%1e7,A=m[i]/1e7|0,o=i+(a=c);o>i;)r=((u=h*(u=v[--a]%1e7)+(s=A*u+(f=v[a]/1e7|0)*h)%1e7*1e7+p[o]+r)/b|0)+(s/1e7|0)+A*f,p[o--]=u%b;p[o]=r}return r?++n:p.splice(0,1),q(e,p,n)},S.negated=function(){var e=new U(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new U(e,t)).s,!i||!t)return new U(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/14,a=e.e/14,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new U(i/0);if(!s[0]||!c[0])return c[0]?e:new U(s[0]?n:0*i)}if(o=g(o),a=g(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/d|0,s[t]=d===s[t]?0:s[t]%d;return i&&(s=[i].concat(s),++a),q(e,s,a)},S.precision=S.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return v(e,1,p),null==t?t=R:v(t,0,8),K(new U(o),e,t);if(!(r=o.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},S.shiftedBy=function(e){return v(e,-9007199254740991,9007199254740991),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,u=a.e,f=x+4,l=new U("0.5");if(1!==c||!s||!s[0])return new U(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+Y(a)))||c==1/0?(((t=b(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=g((u+1)/2)-(u<0||u%2),n=new U(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new U(c+""),n.c[0])for((c=(u=n.e)+f)<3&&(c=0);;)if(o=n,n=l.times(o.plus(r(a,o,f,1))),b(o.c).slice(0,c)===(t=b(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(n,n.e+x+2,1),e=!n.times(n).eq(a));break}if(!i&&(K(o,o.e+x+2,0),o.times(o).eq(a))){n=o;break}f+=4,c+=4,i=1}return K(n,n.e+x+1,R,e)},S.toExponential=function(e,t){return null!=e&&(v(e,0,p),e++),G(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(v(e,0,p),e=e+this.e+1),G(this,e,t)},S.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==i(t)?(r=t,t=null):e&&"object"==i(e)?(r=e,e=t=null):r=L;else if("object"!=i(r))throw Error(l+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var a,s=n.split("."),c=+r.groupSize,u=+r.secondaryGroupSize,f=r.groupSeparator||"",h=s[0],d=s[1],A=o.s<0,p=A?h.slice(1):h,g=p.length;if(u&&(a=c,c=u,u=a,g-=a),c>0&&g>0){for(a=g%c||c,h=p.substr(0,a);a<g;a+=c)h+=f+p.substr(a,c);u>0&&(h+=f+p.slice(a)),A&&(h="-"+h)}n=d?h+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):h}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,n,i,o,a,s,c,u,f,h,d,p,g=this,y=g.c;if(null!=e&&(!(c=new U(e)).isInteger()&&(c.c||1!==c.s)||c.lt(Q)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Y(c));if(!y)return new U(g);for(t=new U(Q),f=n=new U(Q),i=u=new U(Q),p=b(y),a=t.e=p.length-g.e-1,t.c[0]=A[(s=a%14)<0?14+s:s],e=!e||c.comparedTo(t)>0?a>0?t:f:c,s=P,P=1/0,c=new U(p),u.c[0]=0;h=r(c,t,0,1),1!=(o=n.plus(h.times(i))).comparedTo(e);)n=i,i=o,f=u.plus(h.times(o=f)),u=o,t=c.minus(h.times(o=t)),c=o;return o=r(e.minus(n),i,0,1),u=u.plus(o.times(f)),n=n.plus(o.times(i)),u.s=f.s=g.s,d=r(f,i,a*=2,R).minus(g).abs().comparedTo(r(u,n,a,R).minus(g).abs())<1?[f,i]:[u,n],P=s,d},S.toNumber=function(){return+Y(this)},S.toPrecision=function(e,t){return null!=e&&v(e,1,p),G(this,e,t,2)},S.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=O||o>=D?w(b(r.c),o):I(b(r.c),o,"0"):10===e?t=I(b((r=K(new U(r),x+o+1,R)).c),r.e,"0"):(v(e,2,F.length,"Base"),t=n(I(b(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return Y(this)},S._isBigNumber=!0,c&&(S[Symbol.toStringTag]="BigNumber",S[Symbol.for("nodejs.util.inspect.custom")]=S.valueOf),null!=t&&U.set(t),U}()).default=a.BigNumber=a,void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){e.exports={encode:r(214),decode:r(215),encodingLength:r(216)}},function(e,t){e.exports=function e(t,n,i){n=n||[];var o=i=i||0;for(;t>=r;)n[i++]=255&t|128,t/=128;for(;-128&t;)n[i++]=255&t|128,t>>>=7;return n[i]=0|t,e.bytes=i-o+1,n};var r=Math.pow(2,31)},function(e,t){e.exports=function e(t,r){var n,i=0,o=0,a=r=r||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(127&n)<<o:(127&n)*Math.pow(2,o),o+=7}while(n>=128);return e.bytes=a-r,i}},function(e,t){var r=Math.pow(2,7),n=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),c=Math.pow(2,49),u=Math.pow(2,56),f=Math.pow(2,63);e.exports=function(e){return e<r?1:e<n?2:e<i?3:e<o?4:e<a?5:e<s?6:e<c?7:e<u?8:e<f?9:10}},function(e,t,r){"use strict";r.r(t),r.d(t,"Deflate",(function(){return $t})),r.d(t,"Inflate",(function(){return nr})),r.d(t,"constants",(function(){return sr})),r.d(t,"default",(function(){return cr})),r.d(t,"deflate",(function(){return er})),r.d(t,"deflateRaw",(function(){return tr})),r.d(t,"gzip",(function(){return rr})),r.d(t,"inflate",(function(){return ir})),r.d(t,"inflateRaw",(function(){return or})),r.d(t,"ungzip",(function(){return ar}));function n(e){let t=e.length;for(;--t>=0;)e[t]=0}const i=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),o=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),a=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=new Array(576);n(c);const u=new Array(60);n(u);const f=new Array(512);n(f);const l=new Array(256);n(l);const h=new Array(29);n(h);const d=new Array(30);function A(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let p,g,b;function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(d);const v=e=>e<256?f[e]:f[256+(e>>>7)],m=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},w=(e,t,r)=>{e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,m(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},I=(e,t,r)=>{w(e,r[2*t],r[2*t+1])},E=(e,t)=>{let r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},B=(e,t,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=15;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=E(n[t]++,t))}},C=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_=e=>{e.bi_valid>8?m(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},k=(e,t,r,n)=>{const i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},S=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&k(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!k(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},Q=(e,t,r)=>{let n,a,s,c,u=0;if(0!==e.sym_next)do{n=255&e.pending_buf[e.sym_buf+u++],n+=(255&e.pending_buf[e.sym_buf+u++])<<8,a=e.pending_buf[e.sym_buf+u++],0===n?I(e,a,t):(s=l[a],I(e,s+256+1,t),c=i[s],0!==c&&(a-=h[s],w(e,a,c)),n--,s=v(n),I(e,s,r),c=o[s],0!==c&&(n-=d[s],w(e,n,c)))}while(u<e.sym_next);I(e,256,t)},x=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,c,u=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<o;a++)0!==r[2*a]?(e.heap[++e.heap_len]=u=a,e.depth[a]=0):r[2*a+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=u<2?++u:0,r[2*c]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=n[2*c+1]);for(t.max_code=u,a=e.heap_len>>1;a>=1;a--)S(e,r,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],S(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[2*c]=r[2*a]+r[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[2*a+1]=r[2*s+1]=c,e.heap[1]=c++,S(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,f,l,h,d,A,p=0;for(h=0;h<=15;h++)e.bl_count[h]=0;for(r[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)f=e.heap[u],h=r[2*r[2*f+1]+1]+1,h>c&&(h=c,p++),r[2*f+1]=h,f>n||(e.bl_count[h]++,d=0,f>=s&&(d=a[f-s]),A=r[2*f],e.opt_len+=A*(h+d),o&&(e.static_len+=A*(i[2*f+1]+d)));if(0!==p){do{for(h=c-1;0===e.bl_count[h];)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,p-=2}while(p>0);for(h=c;0!==h;h--)for(f=e.bl_count[h];0!==f;)l=e.heap[--u],l>n||(r[2*l+1]!==h&&(e.opt_len+=(h-r[2*l+1])*r[2*l],r[2*l+1]=h),f--)}})(e,t),B(r,u,e.bl_count)},R=(e,t,r)=>{let n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))},O=(e,t,r)=>{let n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{I(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(I(e,i,e.bl_tree),s--),I(e,16,e.bl_tree),w(e,s-3,2)):s<=10?(I(e,17,e.bl_tree),w(e,s-3,3)):(I(e,18,e.bl_tree),w(e,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}};let D=!1;const j=(e,t,r,n)=>{w(e,0+(n?1:0),3),_(e),m(e,r),m(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r};var P={_tr_init:e=>{D||((()=>{let e,t,r,n,s;const y=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,e=0;e<1<<i[n];e++)l[r++]=n;for(l[r-1]=n,s=0,n=0;n<16;n++)for(d[n]=s,e=0;e<1<<o[n];e++)f[s++]=n;for(s>>=7;n<30;n++)for(d[n]=s<<7,e=0;e<1<<o[n]-7;e++)f[256+s++]=n;for(t=0;t<=15;t++)y[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,y[8]++;for(;e<=255;)c[2*e+1]=9,e++,y[9]++;for(;e<=279;)c[2*e+1]=7,e++,y[7]++;for(;e<=287;)c[2*e+1]=8,e++,y[8]++;for(B(c,287,y),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=E(e,5);p=new A(c,i,257,286,15),g=new A(u,o,0,30,15),b=new A(new Array(0),a,0,19,7)})(),D=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,g),e.bl_desc=new y(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,C(e)},_tr_stored_block:j,_tr_flush_block:(e,t,r,n)=>{let i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),x(e,e.l_desc),x(e,e.d_desc),a=(e=>{let t;for(R(e,e.dyn_ltree,e.l_desc.max_code),R(e,e.dyn_dtree,e.d_desc.max_code),x(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*s[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?j(e,t,r,n):4===e.strategy||o===i?(w(e,2+(n?1:0),3),Q(e,c,u)):(w(e,4+(n?1:0),3),((e,t,r,n)=>{let i;for(w(e,t-257,5),w(e,r-1,5),w(e,n-4,4),i=0;i<n;i++)w(e,e.bl_tree[2*s[i]+1],3);O(e,e.dyn_ltree,t-1),O(e,e.dyn_dtree,r-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Q(e,e.dyn_ltree,e.dyn_dtree)),C(e),n&&_(e)},_tr_tally:(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(l[r]+256+1)]++,e.dyn_dtree[2*v(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{w(e,2,3),I(e,256,c),(e=>{16===e.bi_valid?(m(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var M=(e,t,r,n)=>{let i=65535&e|0,o=e>>>16&65535|0,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+t[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};const N=new Uint32Array((()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t})());var T=(e,t,r,n)=>{const i=N,o=n+r;e^=-1;for(let r=n;r<o;r++)e=e>>>8^i[255&(e^t[r])];return-1^e},L={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:U,_tr_stored_block:G,_tr_flush_block:H,_tr_tally:q,_tr_align:K}=P,{Z_NO_FLUSH:Y,Z_PARTIAL_FLUSH:J,Z_FULL_FLUSH:z,Z_FINISH:W,Z_BLOCK:V,Z_OK:Z,Z_STREAM_END:X,Z_STREAM_ERROR:$,Z_DATA_ERROR:ee,Z_BUF_ERROR:te,Z_DEFAULT_COMPRESSION:re,Z_FILTERED:ne,Z_HUFFMAN_ONLY:ie,Z_RLE:oe,Z_FIXED:ae,Z_DEFAULT_STRATEGY:se,Z_UNKNOWN:ce,Z_DEFLATED:ue}=F,fe=(e,t)=>(e.msg=L[t],t),le=e=>2*e-(e>4?9:0),he=e=>{let t=e.length;for(;--t>=0;)e[t]=0},de=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do{r=e.head[--n],e.head[n]=r>=i?r-i:0}while(--t);t=i,n=t;do{r=e.prev[--n],e.prev[n]=r>=i?r-i:0}while(--t)};let Ae=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const pe=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},ge=(e,t)=>{H(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,pe(e.strm)},be=(e,t)=>{e.pending_buf[e.pending++]=t},ye=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},ve=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),1===e.state.wrap?e.adler=M(e.adler,t,i,r):2===e.state.wrap&&(e.adler=T(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},me=(e,t)=>{let r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,f=e.w_mask,l=e.prev,h=e.strstart+258;let d=u[o+a-1],A=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+a]===A&&u[r+a-1]===d&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<h);if(n=258-(h-o),o=h-258,n>a){if(e.match_start=t,a=n,n>=s)break;d=u[o+a-1],A=u[o+a]}}}while((t=l[t&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead},we=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),de(e),n+=t),0===e.strm.avail_in)break;if(r=ve(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ae(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ae(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},Ie=(e,t)=>{let r,n,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;do{if(r=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,n=e.strstart-e.block_start,r>n+e.strm.avail_in&&(r=n+e.strm.avail_in),r>i&&(r=i),r<o&&(0===r&&t!==W||t===Y||r!==n+e.strm.avail_in))break;a=t===W&&r===n+e.strm.avail_in?1:0,G(e,0,0,a),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,pe(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(ve(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(0===a);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==Y&&t!==W&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(ve(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,n=e.strstart-e.block_start,(n>=o||(n||t===W)&&t!==Y&&0===e.strm.avail_in&&n<=i)&&(r=n>i?i:n,a=t===W&&0===e.strm.avail_in&&r===n?1:0,G(e,e.block_start,r,a),e.block_start+=r,pe(e.strm)),a?3:1)},Ee=(e,t)=>{let r,n;for(;;){if(e.lookahead<262){if(we(e),e.lookahead<262&&t===Y)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=Ae(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=me(e,r)),e.match_length>=3)if(n=q(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Ae(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ae(e,e.ins_h,e.window[e.strstart+1]);else n=q(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ge(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===W?(ge(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(ge(e,!1),0===e.strm.avail_out)?1:2},Be=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<262){if(we(e),e.lookahead<262&&t===Y)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=Ae(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=me(e,r),e.match_length<=5&&(e.strategy===ne||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=q(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=Ae(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(ge(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(n=q(e,0,e.window[e.strstart-1]),n&&ge(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=q(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===W?(ge(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(ge(e,!1),0===e.strm.avail_out)?1:2};function Ce(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const _e=[new Ce(0,0,0,0,Ie),new Ce(4,4,8,4,Ee),new Ce(4,5,16,8,Ee),new Ce(4,6,32,32,Ee),new Ce(4,4,16,16,Be),new Ce(8,16,32,32,Be),new Ce(8,16,128,128,Be),new Ce(8,32,128,256,Be),new Ce(32,128,258,1024,Be),new Ce(32,258,258,4096,Be)];function ke(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ue,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),he(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Se=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},Qe=e=>{if(Se(e))return fe(e,$);e.total_in=e.total_out=0,e.data_type=ce;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,U(t),Z},xe=e=>{const t=Qe(e);var r;return t===Z&&((r=e.state).window_size=2*r.w_size,he(r.head),r.max_lazy_match=_e[r.level].max_lazy,r.good_match=_e[r.level].good_length,r.nice_match=_e[r.level].nice_length,r.max_chain_length=_e[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),t},Re=(e,t,r,n,i,o)=>{if(!e)return $;let a=1;if(t===re&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==ue||n<8||n>15||t<0||t>9||o<0||o>ae||8===n&&1!==a)return fe(e,$);8===n&&(n=9);const s=new ke;return e.state=s,s.strm=e,s.status=42,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=o,s.method=r,xe(e)};var Oe={deflateInit:(e,t)=>Re(e,t,ue,15,8,se),deflateInit2:Re,deflateReset:xe,deflateResetKeep:Qe,deflateSetHeader:(e,t)=>Se(e)||2!==e.state.wrap?$:(e.state.gzhead=t,Z),deflate:(e,t)=>{if(Se(e)||t>V||t<0)return e?fe(e,$):$;const r=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===r.status&&t!==W)return fe(e,0===e.avail_out?te:$);const n=r.last_flush;if(r.last_flush=t,0!==r.pending){if(pe(e),0===e.avail_out)return r.last_flush=-1,Z}else if(0===e.avail_in&&le(t)<=le(n)&&t!==W)return fe(e,te);if(666===r.status&&0!==e.avail_in)return fe(e,te);if(42===r.status&&0===r.wrap&&(r.status=113),42===r.status){let t=ue+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=ie||r.level<2?0:r.level<6?1:6===r.level?2:3,t|=n<<6,0!==r.strstart&&(t|=32),t+=31-t%31,ye(r,t),0!==r.strstart&&(ye(r,e.adler>>>16),ye(r,65535&e.adler)),e.adler=1,r.status=113,pe(e),0!==r.pending)return r.last_flush=-1,Z}if(57===r.status)if(e.adler=0,be(r,31),be(r,139),be(r,8),r.gzhead)be(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),be(r,255&r.gzhead.time),be(r,r.gzhead.time>>8&255),be(r,r.gzhead.time>>16&255),be(r,r.gzhead.time>>24&255),be(r,9===r.level?2:r.strategy>=ie||r.level<2?4:0),be(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(be(r,255&r.gzhead.extra.length),be(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=T(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(be(r,0),be(r,0),be(r,0),be(r,0),be(r,0),be(r,9===r.level?2:r.strategy>=ie||r.level<2?4:0),be(r,3),r.status=113,pe(e),0!==r.pending)return r.last_flush=-1,Z;if(69===r.status){if(r.gzhead.extra){let t=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let i=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>t&&(e.adler=T(e.adler,r.pending_buf,r.pending-t,t)),r.gzindex+=i,pe(e),0!==r.pending)return r.last_flush=-1,Z;t=0,n-=i}let i=new Uint8Array(r.gzhead.extra);r.pending_buf.set(i.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>t&&(e.adler=T(e.adler,r.pending_buf,r.pending-t,t)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let t,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=T(e.adler,r.pending_buf,r.pending-n,n)),pe(e),0!==r.pending)return r.last_flush=-1,Z;n=0}t=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,be(r,t)}while(0!==t);r.gzhead.hcrc&&r.pending>n&&(e.adler=T(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let t,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=T(e.adler,r.pending_buf,r.pending-n,n)),pe(e),0!==r.pending)return r.last_flush=-1,Z;n=0}t=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,be(r,t)}while(0!==t);r.gzhead.hcrc&&r.pending>n&&(e.adler=T(e.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(pe(e),0!==r.pending))return r.last_flush=-1,Z;be(r,255&e.adler),be(r,e.adler>>8&255),e.adler=0}if(r.status=113,pe(e),0!==r.pending)return r.last_flush=-1,Z}if(0!==e.avail_in||0!==r.lookahead||t!==Y&&666!==r.status){let n=0===r.level?Ie(r,t):r.strategy===ie?((e,t)=>{let r;for(;;){if(0===e.lookahead&&(we(e),0===e.lookahead)){if(t===Y)return 1;break}if(e.match_length=0,r=q(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ge(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===W?(ge(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(ge(e,!1),0===e.strm.avail_out)?1:2})(r,t):r.strategy===oe?((e,t)=>{let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=258){if(we(e),e.lookahead<=258&&t===Y)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=258-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=q(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=q(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ge(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===W?(ge(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(ge(e,!1),0===e.strm.avail_out)?1:2})(r,t):_e[r.level].func(r,t);if(3!==n&&4!==n||(r.status=666),1===n||3===n)return 0===e.avail_out&&(r.last_flush=-1),Z;if(2===n&&(t===J?K(r):t!==V&&(G(r,0,0,!1),t===z&&(he(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),pe(e),0===e.avail_out))return r.last_flush=-1,Z}return t!==W?Z:r.wrap<=0?X:(2===r.wrap?(be(r,255&e.adler),be(r,e.adler>>8&255),be(r,e.adler>>16&255),be(r,e.adler>>24&255),be(r,255&e.total_in),be(r,e.total_in>>8&255),be(r,e.total_in>>16&255),be(r,e.total_in>>24&255)):(ye(r,e.adler>>>16),ye(r,65535&e.adler)),pe(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?Z:X)},deflateEnd:e=>{if(Se(e))return $;const t=e.state.status;return e.state=null,113===t?fe(e,ee):Z},deflateSetDictionary:(e,t)=>{let r=t.length;if(Se(e))return $;const n=e.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return $;if(1===i&&(e.adler=M(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){0===i&&(he(n.head),n.strstart=0,n.block_start=0,n.insert=0);let e=new Uint8Array(n.w_size);e.set(t.subarray(r-n.w_size,r),0),t=e,r=n.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,we(n);n.lookahead>=3;){let e=n.strstart,t=n.lookahead-2;do{n.ins_h=Ae(n,n.ins_h,n.window[e+3-1]),n.prev[e&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=e,e++}while(--t);n.strstart=e,n.lookahead=2,we(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,n.wrap=i,Z},deflateInfo:"pako deflate (from Nodeca project)"};const De=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var je=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const t in r)De(r,t)&&(e[t]=r[t])}}return e},Pe=e=>{let t=0;for(let r=0,n=e.length;r<n;r++)t+=e[r].length;const r=new Uint8Array(t);for(let t=0,n=0,i=e.length;t<i;t++){let i=e[t];r.set(i,n),n+=i.length}return r};let Me=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Me=!1}const Ne=new Uint8Array(256);for(let e=0;e<256;e++)Ne[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ne[254]=Ne[254]=1;var Te=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=e.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=e.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},Le=(e,t)=>{const r=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let t=e[n++];if(t<128){o[i++]=t;continue}let a=Ne[t];if(a>4)o[i++]=65533,n+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&n<r;)t=t<<6|63&e[n++],a--;a>1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Me)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r})(o,i)},Fe=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let r=t-1;for(;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+Ne[e[r]]>t?r:t};var Ue=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ge=Object.prototype.toString,{Z_NO_FLUSH:He,Z_SYNC_FLUSH:qe,Z_FULL_FLUSH:Ke,Z_FINISH:Ye,Z_OK:Je,Z_STREAM_END:ze,Z_DEFAULT_COMPRESSION:We,Z_DEFAULT_STRATEGY:Ve,Z_DEFLATED:Ze}=F;function Xe(e){this.options=je({level:We,method:Ze,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ve},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ue,this.strm.avail_out=0;let r=Oe.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Je)throw new Error(L[r]);if(t.header&&Oe.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Te(t.dictionary):"[object ArrayBuffer]"===Ge.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=Oe.deflateSetDictionary(this.strm,e),r!==Je)throw new Error(L[r]);this._dict_set=!0}}function $e(e,t){const r=new Xe(t);if(r.push(e,!0),r.err)throw r.msg||L[r.err];return r.result}Xe.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Ye:He,"string"==typeof e?r.input=Te(e):"[object ArrayBuffer]"===Ge.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===qe||o===Ke)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Oe.deflate(r,o),i===ze)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Oe.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Je;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Xe.prototype.onData=function(e){this.chunks.push(e)},Xe.prototype.onEnd=function(e){e===Je&&(this.result=Pe(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var et={Deflate:Xe,deflate:$e,deflateRaw:function(e,t){return(t=t||{}).raw=!0,$e(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,$e(e,t)},constants:F};var tt=function(e,t){let r,n,i,o,a,s,c,u,f,l,h,d,A,p,g,b,y,v,m,w,I,E,B,C;const _=e.state;r=e.next_in,B=e.input,n=r+(e.avail_in-5),i=e.next_out,C=e.output,o=i-(t-e.avail_out),a=i+(e.avail_out-257),s=_.dmax,c=_.wsize,u=_.whave,f=_.wnext,l=_.window,h=_.hold,d=_.bits,A=_.lencode,p=_.distcode,g=(1<<_.lenbits)-1,b=(1<<_.distbits)-1;e:do{d<15&&(h+=B[r++]<<d,d+=8,h+=B[r++]<<d,d+=8),y=A[h&g];t:for(;;){if(v=y>>>24,h>>>=v,d-=v,v=y>>>16&255,0===v)C[i++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=A[(65535&y)+(h&(1<<v)-1)];continue t}if(32&v){_.mode=16191;break e}e.msg="invalid literal/length code",_.mode=16209;break e}m=65535&y,v&=15,v&&(d<v&&(h+=B[r++]<<d,d+=8),m+=h&(1<<v)-1,h>>>=v,d-=v),d<15&&(h+=B[r++]<<d,d+=8,h+=B[r++]<<d,d+=8),y=p[h&b];r:for(;;){if(v=y>>>24,h>>>=v,d-=v,v=y>>>16&255,!(16&v)){if(0==(64&v)){y=p[(65535&y)+(h&(1<<v)-1)];continue r}e.msg="invalid distance code",_.mode=16209;break e}if(w=65535&y,v&=15,d<v&&(h+=B[r++]<<d,d+=8,d<v&&(h+=B[r++]<<d,d+=8)),w+=h&(1<<v)-1,w>s){e.msg="invalid distance too far back",_.mode=16209;break e}if(h>>>=v,d-=v,v=i-o,w>v){if(v=w-v,v>u&&_.sane){e.msg="invalid distance too far back",_.mode=16209;break e}if(I=0,E=l,0===f){if(I+=c-v,v<m){m-=v;do{C[i++]=l[I++]}while(--v);I=i-w,E=C}}else if(f<v){if(I+=c+f-v,v-=f,v<m){m-=v;do{C[i++]=l[I++]}while(--v);if(I=0,f<m){v=f,m-=v;do{C[i++]=l[I++]}while(--v);I=i-w,E=C}}}else if(I+=f-v,v<m){m-=v;do{C[i++]=l[I++]}while(--v);I=i-w,E=C}for(;m>2;)C[i++]=E[I++],C[i++]=E[I++],C[i++]=E[I++],m-=3;m&&(C[i++]=E[I++],m>1&&(C[i++]=E[I++]))}else{I=i-w;do{C[i++]=C[I++],C[i++]=C[I++],C[i++]=C[I++],m-=3}while(m>2);m&&(C[i++]=C[I++],m>1&&(C[i++]=C[I++]))}break}}break}}while(r<n&&i<a);m=d>>3,r-=m,d-=m<<3,h&=(1<<d)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=i<a?a-i+257:257-(i-a),_.hold=h,_.bits=d};const rt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),nt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),it=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ot=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var at=(e,t,r,n,i,o,a,s)=>{const c=s.bits;let u,f,l,h,d,A,p=0,g=0,b=0,y=0,v=0,m=0,w=0,I=0,E=0,B=0,C=null;const _=new Uint16Array(16),k=new Uint16Array(16);let S,Q,x,R=null;for(p=0;p<=15;p++)_[p]=0;for(g=0;g<n;g++)_[t[r+g]]++;for(v=c,y=15;y>=1&&0===_[y];y--);if(v>y&&(v=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<y&&0===_[b];b++);for(v<b&&(v=b),I=1,p=1;p<=15;p++)if(I<<=1,I-=_[p],I<0)return-1;if(I>0&&(0===e||1!==y))return-1;for(k[1]=0,p=1;p<15;p++)k[p+1]=k[p]+_[p];for(g=0;g<n;g++)0!==t[r+g]&&(a[k[t[r+g]]++]=g);if(0===e?(C=R=a,A=20):1===e?(C=rt,R=nt,A=257):(C=it,R=ot,A=0),B=0,g=0,p=b,d=o,m=v,w=0,l=-1,E=1<<v,h=E-1,1===e&&E>852||2===e&&E>592)return 1;for(;;){S=p-w,a[g]+1<A?(Q=0,x=a[g]):a[g]>=A?(Q=R[a[g]-A],x=C[a[g]-A]):(Q=96,x=0),u=1<<p-w,f=1<<m,b=f;do{f-=u,i[d+(B>>w)+f]=S<<24|Q<<16|x|0}while(0!==f);for(u=1<<p-1;B&u;)u>>=1;if(0!==u?(B&=u-1,B+=u):B=0,g++,0==--_[p]){if(p===y)break;p=t[r+a[g]]}if(p>v&&(B&h)!==l){for(0===w&&(w=v),d+=b,m=p-w,I=1<<m;m+w<y&&(I-=_[m+w],!(I<=0));)m++,I<<=1;if(E+=1<<m,1===e&&E>852||2===e&&E>592)return 1;l=B&h,i[l]=v<<24|m<<16|d-o|0}}return 0!==B&&(i[d+B]=p-w<<24|64<<16|0),s.bits=v,0};const{Z_FINISH:st,Z_BLOCK:ct,Z_TREES:ut,Z_OK:ft,Z_STREAM_END:lt,Z_NEED_DICT:ht,Z_STREAM_ERROR:dt,Z_DATA_ERROR:At,Z_MEM_ERROR:pt,Z_BUF_ERROR:gt,Z_DEFLATED:bt}=F,yt=16209,vt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function mt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const wt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<16180||t.mode>16211?1:0},It=e=>{if(wt(e))return dt;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,ft},Et=e=>{if(wt(e))return dt;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,It(e)},Bt=(e,t)=>{let r;if(wt(e))return dt;const n=e.state;return t<0?(r=0,t=-t):(r=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?dt:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Et(e))},Ct=(e,t)=>{if(!e)return dt;const r=new mt;e.state=r,r.strm=e,r.window=null,r.mode=16180;const n=Bt(e,t);return n!==ft&&(e.state=null),n};let _t,kt,St=!0;const Qt=e=>{if(St){_t=new Int32Array(512),kt=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(at(1,e.lens,0,288,_t,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;at(2,e.lens,0,32,kt,0,e.work,{bits:5}),St=!1}e.lencode=_t,e.lenbits=9,e.distcode=kt,e.distbits=5},xt=(e,t,r,n)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Rt={inflateReset:Et,inflateReset2:Bt,inflateResetKeep:It,inflateInit:e=>Ct(e,15),inflateInit2:Ct,inflate:(e,t)=>{let r,n,i,o,a,s,c,u,f,l,h,d,A,p,g,b,y,v,m,w,I,E,B=0;const C=new Uint8Array(4);let _,k;const S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(wt(e)||!e.output||!e.input&&0!==e.avail_in)return dt;r=e.state,16191===r.mode&&(r.mode=16192),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,f=r.bits,l=s,h=c,E=ft;e:for(;;)switch(r.mode){case 16180:if(0===r.wrap){r.mode=16192;break}for(;f<16;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(2&r.wrap&&35615===u){0===r.wbits&&(r.wbits=15),r.check=0,C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0),u=0,f=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=yt;break}if((15&u)!==bt){e.msg="unknown compression method",r.mode=yt;break}if(u>>>=4,f-=4,I=8+(15&u),0===r.wbits&&(r.wbits=I),I>15||I>r.wbits){e.msg="invalid window size",r.mode=yt;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=512&u?16189:16191,u=0,f=0;break;case 16181:for(;f<16;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(r.flags=u,(255&r.flags)!==bt){e.msg="unknown compression method",r.mode=yt;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=yt;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&4&r.wrap&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),u=0,f=0,r.mode=16182;case 16182:for(;f<32;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.head&&(r.head.time=u),512&r.flags&&4&r.wrap&&(C[0]=255&u,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,r.check=T(r.check,C,4,0)),u=0,f=0,r.mode=16183;case 16183:for(;f<16;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&4&r.wrap&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),u=0,f=0,r.mode=16184;case 16184:if(1024&r.flags){for(;f<16;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&4&r.wrap&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),u=0,f=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(d=r.length,d>s&&(d=s),d&&(r.head&&(I=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),I)),512&r.flags&&4&r.wrap&&(r.check=T(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break e;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break e;d=0;do{I=n[o+d++],r.head&&I&&r.length<65536&&(r.head.name+=String.fromCharCode(I))}while(I&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=T(r.check,n,d,o)),s-=d,o+=d,I)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break e;d=0;do{I=n[o+d++],r.head&&I&&r.length<65536&&(r.head.comment+=String.fromCharCode(I))}while(I&&d<s);if(512&r.flags&&4&r.wrap&&(r.check=T(r.check,n,d,o)),s-=d,o+=d,I)break e}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;f<16;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(4&r.wrap&&u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=yt;break}u=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=16191;break;case 16189:for(;f<32;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}e.adler=r.check=vt(u),u=0,f=0,r.mode=16190;case 16190:if(0===r.havedict)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=f,ht;e.adler=r.check=1,r.mode=16191;case 16191:if(t===ct||t===ut)break e;case 16192:if(r.last){u>>>=7&f,f-=7&f,r.mode=16206;break}for(;f<3;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}switch(r.last=1&u,u>>>=1,f-=1,3&u){case 0:r.mode=16193;break;case 1:if(Qt(r),r.mode=16199,t===ut){u>>>=2,f-=2;break e}break;case 2:r.mode=16196;break;case 3:e.msg="invalid block type",r.mode=yt}u>>>=2,f-=2;break;case 16193:for(u>>>=7&f,f-=7&f;f<32;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=yt;break}if(r.length=65535&u,u=0,f=0,r.mode=16194,t===ut)break e;case 16194:r.mode=16195;case 16195:if(d=r.length,d){if(d>s&&(d=s),d>c&&(d=c),0===d)break e;i.set(n.subarray(o,o+d),a),s-=d,o+=d,c-=d,a+=d,r.length-=d;break}r.mode=16191;break;case 16196:for(;f<14;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(r.nlen=257+(31&u),u>>>=5,f-=5,r.ndist=1+(31&u),u>>>=5,f-=5,r.ncode=4+(15&u),u>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=yt;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.lens[S[r.have++]]=7&u,u>>>=3,f-=3}for(;r.have<19;)r.lens[S[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,_={bits:r.lenbits},E=at(0,r.lens,0,19,r.lencode,0,r.work,_),r.lenbits=_.bits,E){e.msg="invalid code lengths set",r.mode=yt;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;B=r.lencode[u&(1<<r.lenbits)-1],g=B>>>24,b=B>>>16&255,y=65535&B,!(g<=f);){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(y<16)u>>>=g,f-=g,r.lens[r.have++]=y;else{if(16===y){for(k=g+2;f<k;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(u>>>=g,f-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=yt;break}I=r.lens[r.have-1],d=3+(3&u),u>>>=2,f-=2}else if(17===y){for(k=g+3;f<k;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}u>>>=g,f-=g,I=0,d=3+(7&u),u>>>=3,f-=3}else{for(k=g+7;f<k;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}u>>>=g,f-=g,I=0,d=11+(127&u),u>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=yt;break}for(;d--;)r.lens[r.have++]=I}}if(r.mode===yt)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=yt;break}if(r.lenbits=9,_={bits:r.lenbits},E=at(1,r.lens,0,r.nlen,r.lencode,0,r.work,_),r.lenbits=_.bits,E){e.msg="invalid literal/lengths set",r.mode=yt;break}if(r.distbits=6,r.distcode=r.distdyn,_={bits:r.distbits},E=at(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,_),r.distbits=_.bits,E){e.msg="invalid distances set",r.mode=yt;break}if(r.mode=16199,t===ut)break e;case 16199:r.mode=16200;case 16200:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=f,tt(e,h),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,f=r.bits,16191===r.mode&&(r.back=-1);break}for(r.back=0;B=r.lencode[u&(1<<r.lenbits)-1],g=B>>>24,b=B>>>16&255,y=65535&B,!(g<=f);){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(b&&0==(240&b)){for(v=g,m=b,w=y;B=r.lencode[w+((u&(1<<v+m)-1)>>v)],g=B>>>24,b=B>>>16&255,y=65535&B,!(v+g<=f);){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}u>>>=v,f-=v,r.back+=v}if(u>>>=g,f-=g,r.back+=g,r.length=y,0===b){r.mode=16205;break}if(32&b){r.back=-1,r.mode=16191;break}if(64&b){e.msg="invalid literal/length code",r.mode=yt;break}r.extra=15&b,r.mode=16201;case 16201:if(r.extra){for(k=r.extra;f<k;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;B=r.distcode[u&(1<<r.distbits)-1],g=B>>>24,b=B>>>16&255,y=65535&B,!(g<=f);){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(0==(240&b)){for(v=g,m=b,w=y;B=r.distcode[w+((u&(1<<v+m)-1)>>v)],g=B>>>24,b=B>>>16&255,y=65535&B,!(v+g<=f);){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}u>>>=v,f-=v,r.back+=v}if(u>>>=g,f-=g,r.back+=g,64&b){e.msg="invalid distance code",r.mode=yt;break}r.offset=y,r.extra=15&b,r.mode=16203;case 16203:if(r.extra){for(k=r.extra;f<k;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=yt;break}r.mode=16204;case 16204:if(0===c)break e;if(d=h-c,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=yt;break}d>r.wnext?(d-=r.wnext,A=r.wsize-d):A=r.wnext-d,d>r.length&&(d=r.length),p=r.window}else p=i,A=a-r.offset,d=r.length;d>c&&(d=c),c-=d,r.length-=d;do{i[a++]=p[A++]}while(--d);0===r.length&&(r.mode=16200);break;case 16205:if(0===c)break e;i[a++]=r.length,c--,r.mode=16200;break;case 16206:if(r.wrap){for(;f<32;){if(0===s)break e;s--,u|=n[o++]<<f,f+=8}if(h-=c,e.total_out+=h,r.total+=h,4&r.wrap&&h&&(e.adler=r.check=r.flags?T(r.check,i,h,a-h):M(r.check,i,h,a-h)),h=c,4&r.wrap&&(r.flags?u:vt(u))!==r.check){e.msg="incorrect data check",r.mode=yt;break}u=0,f=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break e;s--,u+=n[o++]<<f,f+=8}if(4&r.wrap&&u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=yt;break}u=0,f=0}r.mode=16208;case 16208:E=lt;break e;case yt:E=At;break e;case 16210:return pt;case 16211:default:return dt}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=f,(r.wsize||h!==e.avail_out&&r.mode<yt&&(r.mode<16206||t!==st))&&xt(e,e.output,e.next_out,h-e.avail_out),l-=e.avail_in,h-=e.avail_out,e.total_in+=l,e.total_out+=h,r.total+=h,4&r.wrap&&h&&(e.adler=r.check=r.flags?T(r.check,i,h,e.next_out-h):M(r.check,i,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(16191===r.mode?128:0)+(16199===r.mode||16194===r.mode?256:0),(0===l&&0===h||t===st)&&E===ft&&(E=gt),E},inflateEnd:e=>{if(wt(e))return dt;let t=e.state;return t.window&&(t.window=null),e.state=null,ft},inflateGetHeader:(e,t)=>{if(wt(e))return dt;const r=e.state;return 0==(2&r.wrap)?dt:(r.head=t,t.done=!1,ft)},inflateSetDictionary:(e,t)=>{const r=t.length;let n,i,o;return wt(e)?dt:(n=e.state,0!==n.wrap&&16190!==n.mode?dt:16190===n.mode&&(i=1,i=M(i,t,r,0),i!==n.check)?At:(o=xt(e,t,r,r),o?(n.mode=16210,pt):(n.havedict=1,ft)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ot=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Dt=Object.prototype.toString,{Z_NO_FLUSH:jt,Z_FINISH:Pt,Z_OK:Mt,Z_STREAM_END:Nt,Z_NEED_DICT:Tt,Z_STREAM_ERROR:Lt,Z_DATA_ERROR:Ft,Z_MEM_ERROR:Ut}=F;function Gt(e){this.options=je({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ue,this.strm.avail_out=0;let r=Rt.inflateInit2(this.strm,t.windowBits);if(r!==Mt)throw new Error(L[r]);if(this.header=new Ot,Rt.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Te(t.dictionary):"[object ArrayBuffer]"===Dt.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Rt.inflateSetDictionary(this.strm,t.dictionary),r!==Mt)))throw new Error(L[r])}function Ht(e,t){const r=new Gt(t);if(r.push(e),r.err)throw r.msg||L[r.err];return r.result}Gt.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?Pt:jt,"[object ArrayBuffer]"===Dt.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Rt.inflate(r,a),o===Tt&&i&&(o=Rt.inflateSetDictionary(r,i),o===Mt?o=Rt.inflate(r,a):o===Ft&&(o=Tt));r.avail_in>0&&o===Nt&&r.state.wrap>0&&0!==e[r.next_in];)Rt.inflateReset(r),o=Rt.inflate(r,a);switch(o){case Lt:case Ft:case Tt:case Ut:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===Nt))if("string"===this.options.to){let e=Fe(r.output,r.next_out),t=r.next_out-e,i=Le(r.output,e);r.next_out=t,r.avail_out=n-t,t&&r.output.set(r.output.subarray(e,e+t),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==Mt||0!==s){if(o===Nt)return o=Rt.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},Gt.prototype.onData=function(e){this.chunks.push(e)},Gt.prototype.onEnd=function(e){e===Mt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Pe(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var qt={Inflate:Gt,inflate:Ht,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Ht(e,t)},ungzip:Ht,constants:F};const{Deflate:Kt,deflate:Yt,deflateRaw:Jt,gzip:zt}=et,{Inflate:Wt,inflate:Vt,inflateRaw:Zt,ungzip:Xt}=qt;var $t=Kt,er=Yt,tr=Jt,rr=zt,nr=Wt,ir=Vt,or=Zt,ar=Xt,sr=F,cr={Deflate:Kt,deflate:Yt,deflateRaw:Jt,gzip:zt,Inflate:Wt,inflate:Vt,inflateRaw:Zt,ungzip:Xt,constants:F}},function(e,t){},function(e,t,r){"use strict";t.sha1=r(220),t.sha224=r(221),t.sha256=r(114),t.sha384=r(222),t.sha512=r(115)},function(e,t,r){"use strict";var n=r(21),i=r(45),o=r(113),a=n.rotl32,s=n.sum32,c=n.sum32_5,u=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,f),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var A=~~(n/20),p=c(a(i,5),u(A,o,f,h),d,r[n],l[A]);d=h,h=f,f=a(o,30),o=i,i=p}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(21),i=r(114);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(21),i=r(115);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(21),i=r(45),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,u=i.BlockHash;function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,u),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],f=this.h[4],y=r,v=n,m=i,w=u,I=f,E=0;E<80;E++){var B=a(o(c(r,l(E,n,i,u),e[A[E]+t],h(E)),g[E]),f);r=f,f=u,u=o(i,10),i=n,n=B,B=a(o(c(y,l(79-E,v,m,w),e[p[E]+t],d(E)),b[E]),I),y=I,I=w,w=o(m,10),m=v,v=B}B=s(this.h[1],i,w),this.h[1]=s(this.h[2],u,I),this.h[2]=s(this.h[3],f,y),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,m),this.h[0]=B},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var A=[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],p=[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],g=[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],b=[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]},function(e,t,r){"use strict";var n=r(21),i=r(14);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,c=1,u={},f=!1,l=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){A(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){A(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){A(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(A,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&A(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return u[c]=i,n(c),c++},h.clearImmediate=d}function d(e){delete u[e]}function A(e){if(f)setTimeout(A,0,e);else{var t=u[e];if(t){f=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),f=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(9),r(6))},function(e,t,r){(function(e){var n=r(55),i=r(33),o=r(54),a=r(25),s=r(26);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=r(77),l=r(227),h=r(116),d=r(228),A=r(78),p=A.ValidateLibrary,g=A.ValidateObject,b=A.ValidateVersion,y=A.ValidatePartHash,v=A.ValidateWriteToken,m=A.ValidateParameters,w=r(229);t.permissionLevels={owner:{short:"Owner Only",description:"Only the owner has access to the object and ability to change permissions",settings:{visibility:0,statusCode:-1,kmsConk:!1}},editable:{short:"Editable",description:"Members of the editors group have full access to the object and the ability to change permissions",settings:{visibility:0,statusCode:-1,kmsConk:!0}},viewable:{short:"Viewable",description:"In addition to editors, members of the 'accessor' group can have read-only access to the object including playing video and retrieving metadata, images and documents",settings:{visibility:0,statusCode:0,kmsConk:!0}},listable:{short:"Publicly Listable",description:"Anyone can list the public portion of this object but only accounts with specific rights can access",settings:{visibility:1,statusCode:0,kmsConk:!0}},public:{short:"Public",description:"Anyone can access this object",settings:{visibility:10,statusCode:0,kmsConk:!0}}},t.Visibility=function(){var e=s(a.mark((function e(t){var r,n,i,o=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.clearCache,e.prev=1,i=this.utils.HashToAddress(r),n&&delete this.visibilityInfo[i],this.visibilityInfo[i]||(this.visibilityInfo[i]=new Promise(function(){var e=s(a.mark((function e(t,n){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.authClient.ContractHasMethod({contractAddress:i,methodName:"visibility"});case 3:if(e.sent){e.next=7;break}return t(0),e.abrupt("return");case 7:return e.t0=t,e.next=10,o.CallContractMethod({contractAddress:o.utils.HashToAddress(r),methodName:"visibility"});case 10:e.t1=e.sent,(0,e.t0)(e.t1),e.next=17;break;case 14:e.prev=14,e.t2=e.catch(0),n(e.t2);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,r){return e.apply(this,arguments)}}())),e.prev=5,e.next=8,this.visibilityInfo[i];case 8:return e.abrupt("return",e.sent);case 11:throw e.prev=11,e.t0=e.catch(5),delete this.visibilityInfo[i],e.t0;case 15:e.next=22;break;case 17:if(e.prev=17,e.t1=e.catch(1),"CALL_EXCEPTION"!==e.t1.code){e.next=21;break}return e.abrupt("return",0);case 21:throw e.t1;case 22:case"end":return e.stop()}}),e,this,[[1,17],[5,11]])})));return function(t){return e.apply(this,arguments)}}(),t.Permission=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,n=t.clearCache,g(r),e.next=4,this.AccessType({id:r});case 4:if(e.t0=e.sent,e.t1=this.authClient.ACCESS_TYPES.OBJECT,e.t0===e.t1){e.next=8;break}throw Error("Permission only valid for normal content objects: "+r);case 8:return e.next=10,this.Visibility({id:r,clearCache:n});case 10:return i=e.sent,e.next=13,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"addressKMS"});case 13:if(o=e.sent,s=o&&"ikms".concat(this.utils.AddressToHash(o)),c=!1,!s){e.next=27;break}return e.t2=this,e.next=20,this.ContentObjectLibraryId({objectId:r});case 20:return e.t3=e.sent,e.t4=r,e.t5="eluv.caps.".concat(s),e.t6={libraryId:e.t3,objectId:e.t4,metadataSubtree:e.t5},e.next=26,e.t2.ContentObjectMetadata.call(e.t2,e.t6);case 26:c=!!e.sent;case 27:return e.next=29,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"statusCode"});case 29:return u=e.sent,u=parseInt(u._hex,16),(f=Object.keys(this.permissionLevels).filter((function(e){var t=l.permissionLevels[e].settings;return i>=t.visibility&&u>=t.statusCode&&c===t.kmsConk})))||(f=c?["editable"]:["owner"]),e.abrupt("return",f.slice(-1)[0]);case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.DefaultKMSAddress=s(a.mark((function e(){var t,r,n,i=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.tenantId,e.t0=r,!e.t0){e.next=8;break}return e.next=5,this.AccessType({id:r});case 5:e.t1=e.sent,e.t2=this.authClient.ACCESS_TYPES.TENANT,e.t0=e.t1===e.t2;case 8:if(!e.t0){e.next=14;break}return e.next=11,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"addressKMS"});case 11:if(!(n=e.sent)){e.next=14;break}return e.abrupt("return",n);case 14:return e.next=16,this.CallContractMethod({contractAddress:this.contentSpaceAddress,methodName:"addressKMS"});case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e,this)}))),t.ContentSpaceId=function(){return this.contentSpaceId},t.ContentTypeOwner=function(){var e=s(a.mark((function e(t){var r,n,i,o;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.typeId,i=t.versionHash,e.next=3,this.ContentType({name:r,typeId:n,versionHash:i});case 3:return o=e.sent,e.t0=this.utils,e.next=7,this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(o.id),methodName:"owner",methodArgs:[]});case 7:return e.t1=e.sent,e.abrupt("return",e.t0.FormatAddress.call(e.t0,e.t1));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentType=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.typeId,i=t.versionHash,o=t.publicOnly,s=void 0!==o&&o,this.Log("Retrieving content type: ".concat(r||n||i)),i&&(n=this.utils.DecodeVersionHash(i).objectId),!r){e.next=13;break}return this.Log("Looking up type by name in content space metadata..."),e.prev=5,e.next=8,this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:this.contentSpaceObjectId,metadataSubtree:f("public","contentTypes",r)});case 8:n=e.sent,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:if(n){e.next=23;break}return this.Log("Looking up type by name in available types..."),e.next=17,this.ContentTypes();case 17:if(c=e.sent,!r){e.next=22;break}return e.abrupt("return",Object.values(c).find((function(e){return(e.name||"").toLowerCase()===r.toLowerCase()})));case 22:return e.abrupt("return",Object.values(c).find((function(e){return e.hash===i})));case 23:if(i){e.next=27;break}return e.next=26,this.LatestVersionHash({objectId:n});case 26:i=e.sent;case 27:if(e.prev=27,this.Log("Looking up type by ID..."),!s){e.next=39;break}return e.next=32,this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:n,versionHash:i,metadataSubtree:"public"});case 32:if(e.t1=e.sent,e.t1){e.next=35;break}e.t1={};case 35:e.t2=e.t1,u={public:e.t2},e.next=45;break;case 39:return e.next=41,this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:n,versionHash:i});case 41:if(e.t3=e.sent,e.t3){e.next=44;break}e.t3={};case 44:u=e.t3;case 45:return e.abrupt("return",{id:n,hash:i,name:u.public&&u.public.name||u.name||n,meta:u});case 48:throw e.prev=48,e.t4=e.catch(27),this.Log("Error looking up content type:"),this.Log(e.t4),new Error("Content Type ".concat(r||n," is invalid"));case 53:case"end":return e.stop()}}),e,this,[[5,11],[27,48]])})));return function(t){return e.apply(this,arguments)}}(),t.ContentTypes=s(a.mark((function e(){var t,r,n,i=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.contentTypes=this.contentTypes||{},this.Log("Looking up all available content types"),e.next=4,this.Collection({collectionType:"contentTypes"});case 4:return t=e.sent,this.Log("Personally available types:"),this.Log(t),r={},e.prev=8,e.next=11,this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:this.contentSpaceObjectId,metadataSubtree:"public/contentTypes"});case 11:if(e.t0=e.sent,e.t0){e.next=14;break}e.t0={};case 14:r=e.t0,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(8);case 19:return n=Object.values(r).map((function(e){return i.utils.HashToAddress(e)})),this.Log("Content space types:"),this.Log(n),t=t.concat(n).filter((function(e){return e})).map((function(e){return i.utils.FormatAddress(e)})).filter((function(e,t,r){return r.indexOf(e)===t})),e.next=25,Promise.all(t.map(function(){var e=s(a.mark((function e(t){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.utils.AddressToObjectId(t),i.contentTypes[r]){e.next=11;break}return e.prev=2,e.next=5,i.ContentType({typeId:r,publicOnly:!0});case 5:i.contentTypes[r]=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}()));case 25:return e.abrupt("return",this.contentTypes);case 26:case"end":return e.stop()}}),e,this,[[8,17]])}))),t.ContentLibraries=s(a.mark((function e(){var t,r=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Collection({collectionType:"libraries"});case 2:return t=e.sent,e.abrupt("return",t.map((function(e){return r.utils.AddressToLibraryId(e)})));case 4:case"end":return e.stop()}}),e,this)}))),t.ContentLibrary=function(){var e=s(a.mark((function e(t){var r,n,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,p(r),n=f("qlibs",r),e.t0=this.HttpClient,e.next=6,this.authClient.AuthorizationHeader({libraryId:r});case 6:return e.t1=e.sent,e.t2=n,e.t3={headers:e.t1,method:"GET",path:e.t2},e.next=11,e.t0.RequestJsonBody.call(e.t0,e.t3);case 11:return i=e.sent,e.abrupt("return",u(u({},i),{},{meta:i.meta||{}}));case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentLibraryOwner=function(){var e=s(a.mark((function e(t){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,p(r),e.t0=this.utils,e.next=5,this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"owner",methodArgs:[]});case 5:return e.t1=e.sent,e.abrupt("return",e.t0.FormatAddress.call(e.t0,e.t1));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.LibraryContentTypes=function(){var e=s(a.mark((function e(t){var r,n,i,o=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,p(r),this.Log("Retrieving library content types for ".concat(r)),e.next=5,this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"contentTypesLength",methodArgs:[]});case 5:if(n=e.sent.toNumber(),this.Log("".concat(n," types")),0!==n){e.next=9;break}return e.abrupt("return",{});case 9:return i={},e.next=12,Promise.all(Array.from(new Array(n),function(){var e=s(a.mark((function e(t,n){var s,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.ethClient.CallContractMethod({contractAddress:o.utils.HashToAddress(r),methodName:"contentTypes",methodArgs:[n]});case 2:return s=e.sent,c=o.utils.AddressToObjectId(s),e.next=6,o.ContentType({typeId:c});case 6:i[c]=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 12:return this.Log(i),e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjects=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.filterOptions,i=void 0===n?{}:n,p(r),this.Log("Retrieving content objects from ".concat(r)),o=f("qlibs",r,"q"),s={filter:[]},i.cacheId&&(s.cache_id=i.cacheId),i.start&&(s.start=i.start),i.limit&&(s.limit=i.limit),i.select&&(s.select=i.select),i.sort&&(s.sort_by=i.sort,i.sortDesc&&(s.sort_descending=!0)),c={eq:":eq:",neq:":ne:",lt:":lt:",lte:":le:",gt:":gt:",gte:":ge:",cnt:":co:",ncnt:":nc:"},u=function(e){var t=e.key,r=e.type,n=e.filter;s.filter.push("".concat(t).concat(c[r]).concat(n))},i.filter&&(Array.isArray(i.filter)?i.filter.forEach((function(e){return u(e)})):u(i.filter)),this.Log("Filter options:"),this.Log(i),e.t0=this.HttpClient,e.next=18,this.authClient.AuthorizationHeader({libraryId:r});case 18:return e.t1=e.sent,e.t2=o,e.t3=s,e.t4={headers:e.t1,method:"GET",path:e.t2,queryParams:e.t3},e.next=24,e.t0.RequestJsonBody.call(e.t0,e.t4);case 24:return e.abrupt("return",e.sent);case 25:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObject=function(){var e=s(a.mark((function e(t){var r,n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,m({libraryId:r,objectId:n,versionHash:i}),this.Log("Retrieving content object: ".concat(r||""," ").concat(o||i||n)),i&&(n=this.utils.DecodeVersionHash(i).objectId),s=f("q",o||i||n),e.t0=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i});case 8:return e.t1=e.sent,e.t2=s,e.t3={headers:e.t1,method:"GET",path:e.t2},e.next=13,e.t0.RequestJsonBody.call(e.t0,e.t3);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectOwner=function(){var e=s(a.mark((function e(t){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,g(r),this.Log("Retrieving content object owner: ".concat(r)),e.t0=this.utils,e.next=6,this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"owner",methodArgs:[]});case 6:return e.t1=e.sent,e.abrupt("return",e.t0.FormatAddress.call(e.t0,e.t1));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectTenantId=function(){var e=s(a.mark((function e(t){var r,n;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.objectId,(n=t.versionHash)?b(n):g(r),n&&(r=this.utils.DecodeVersionHash(n).objectId),this.objectTenantIds[r]){e.next=7;break}return e.next=6,this.authClient.MakeElvMasterCall({methodName:"elv_getTenantById",params:[this.contentSpaceId,r]});case 6:this.objectTenantIds[r]=e.sent;case 7:return e.abrupt("return",this.objectTenantIds[r]);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectLibraryId=function(){var e=s(a.mark((function e(t){var r,n,i=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,(n=t.versionHash)?b(n):g(r),n&&(r=this.utils.DecodeVersionHash(n).objectId),e.next=5,this.authClient.AccessType(r);case 5:e.t0=e.sent,e.next=e.t0===this.authClient.ACCESS_TYPES.LIBRARY?8:e.t0===this.authClient.ACCESS_TYPES.OBJECT?9:e.t0===this.authClient.ACCESS_TYPES.OTHER?20:21;break;case 8:return e.abrupt("return",this.utils.AddressToLibraryId(this.utils.HashToAddress(r)));case 9:return this.objectLibraryIds[r]||(this.Log("Retrieving content object library ID: ".concat(r||n)),this.objectLibraryIds[r]=new Promise(function(){var e=s(a.mark((function e(t,n){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=t,e.t1=i.utils,e.next=5,i.CallContractMethod({contractAddress:i.utils.HashToAddress(r),methodName:"libraryAddress"});case 5:e.t2=e.sent,e.t3=e.t1.AddressToLibraryId.call(e.t1,e.t2),(0,e.t0)(e.t3),e.next=13;break;case 10:e.prev=10,e.t4=e.catch(0),n(e.t4);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,r){return e.apply(this,arguments)}}())),e.prev=10,e.next=13,this.objectLibraryIds[r];case 13:return e.abrupt("return",e.sent);case 16:throw e.prev=16,e.t1=e.catch(10),delete this.objectLibraryIds[r],e.t1;case 20:throw Error("Unable to retrieve library ID for ".concat(n||r,": Unknown type. (wrong network or deleted object?)"));case 21:return e.abrupt("return",this.contentSpaceLibraryId);case 22:case"end":return e.stop()}}),e,this,[[10,16]])})));return function(t){return e.apply(this,arguments)}}(),t.ProduceMetadataLinks=function(){var e=s(a.mark((function e(t){var r,n,o,c,l,h,d,A,p,g=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,o=t.versionHash,c=t.path,l=void 0===c?"/":c,h=t.metadata,d=t.authorizationToken,A=t.noAuth,h&&"object"===i(h)){e.next=3;break}return e.abrupt("return",h);case 3:if(!Array.isArray(h)){e.next=7;break}return e.next=6,this.utils.LimitedMap(5,h,function(){var e=s(a.mark((function e(t,i){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ProduceMetadataLinks({libraryId:r,objectId:n,versionHash:o,path:f(l,i.toString()),metadata:t,authorizationToken:d,noAuth:A});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}());case 6:return e.abrupt("return",e.sent);case 7:if(!h["/"]||!h["/"].match(/\.\/(rep|files)\/.+/)&&!h["/"].match(/^\/?qfab\/([\w]+)\/?(rep|files)\/.+/)){e.next=16;break}return e.t0=u,e.t1=u({},h),e.t2={},e.next=13,this.LinkUrl({libraryId:r,objectId:n,versionHash:o,linkPath:l,authorizationToken:d,noAuth:A});case 13:return e.t3=e.sent,e.t4={url:e.t3},e.abrupt("return",(0,e.t0)(e.t1,e.t2,e.t4));case 16:return p={},e.next=19,this.utils.LimitedMap(5,Object.keys(h),function(){var e=s(a.mark((function e(t){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ProduceMetadataLinks({libraryId:r,objectId:n,versionHash:o,path:f(l,t),metadata:h[t],authorizationToken:d,noAuth:A});case 2:p[t]=e.sent;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 19:return e.abrupt("return",p);case 20:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.MetadataAuth=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d,A,p;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.path,s=void 0===o?"/":o,c=t.channelAuth,u=void 0!==c&&c,f=t.noAuth,l=void 0!==f&&f,m({libraryId:r,objectId:n,versionHash:i}),i&&(n=this.utils.DecodeVersionHash(i).objectId),l=this.noAuth||l||this.staticToken,h=l,l){e.next=14;break}return e.next=8,this.Visibility({id:n});case 8:return A=e.sent,e.next=11,this.AccessType({id:n});case 11:d=e.sent,h=(s||"").replace(/^\/+/,"").startsWith("public"),l=A>=10||h&&A>=1;case 14:if(!this.oauthToken){e.next=22;break}return e.next=17,this.authClient.KMSAddress({objectId:n,versionHash:i});case 17:if(!(p=e.sent)||this.utils.EqualAddress(p,this.utils.nullAddress)){e.next=22;break}return e.next=21,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:i,channelAuth:!0,oauthToken:this.oauthToken});case 21:return e.abrupt("return",e.sent);case 22:if(this.inaccessibleLibraries[r]||!h||d!==this.authClient.ACCESS_TYPES.OBJECT||u){e.next=48;break}if(e.prev=23,e.t0=this.authClient,e.t1=r,e.t1){e.next=30;break}return e.next=29,this.ContentObjectLibraryId({objectId:n,versionHash:i});case 29:e.t1=e.sent;case 30:return e.t2=e.t1,e.t3=l,e.t4={libraryId:e.t2,noAuth:e.t3},e.next=35,e.t0.AuthorizationToken.call(e.t0,e.t4);case 35:return e.abrupt("return",e.sent);case 38:if(e.prev=38,e.t5=e.catch(23),!e.t5.message||!e.t5.message.toLowerCase().startsWith("access denied")){e.next=45;break}return this.inaccessibleLibraries[r]=!0,e.next=44,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:i,noAuth:l,channelAuth:u});case 44:return e.abrupt("return",e.sent);case 45:throw e.t5;case 46:e.next=51;break;case 48:return e.next=50,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:i,noAuth:l,channelAuth:u});case 50:return e.abrupt("return",e.sent);case 51:case"end":return e.stop()}}),e,this,[[23,38]])})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectMetadata=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,h,d,A,p,g,b,y,v,I,E,B,C,_,k,S,Q,x,R,O,D,j,P,M,N,T,L=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.metadataSubtree,c=void 0===s?"/":s,h=t.localizationSubtree,d=t.queryParams,A=void 0===d?{}:d,p=t.select,g=void 0===p?[]:p,b=t.remove,y=void 0===b?[]:b,v=t.authorizationToken,I=t.noAuth,E=void 0!==I&&I,B=t.resolveLinks,C=void 0!==B&&B,_=t.resolveIncludeSource,k=void 0!==_&&_,S=t.resolveIgnoreErrors,Q=void 0!==S&&S,x=t.linkDepthLimit,R=void 0===x?1:x,O=t.produceLinkUrls,D=void 0!==O&&O,m({libraryId:r,objectId:n,versionHash:i}),this.Log("Retrieving content object metadata: ".concat(r||""," ").concat(n||i," ").concat(o||"","\n Subtree: ").concat(c)),A=u({},A||{}),i&&(n=this.utils.DecodeVersionHash(i).objectId),j=f("q",o||i||n,"meta",c),i){e.next=12;break}if(r){e.next=11;break}return e.next=10,this.ContentObjectLibraryId({objectId:n});case 10:r=e.sent;case 11:j=f("qlibs",r,j);case 12:return e.next=14,this.MetadataAuth({libraryId:r,objectId:n,versionHash:i,path:c,noAuth:E});case 14:return P=e.sent,M=[v,A.authorization,P].flat().filter((function(e){return e})),delete A.authorization,e.prev=17,e.next=20,this.HttpClient.RequestJsonBody({headers:{Authorization:M.map((function(e){return"Bearer ".concat(e)}))},queryParams:u(u({},A),{},{select:g,remove:y,link_depth:R,resolve:C,resolve_include_source:k,resolve_ignore_errors:Q}),method:"GET",path:j});case 20:N=e.sent,e.next=33;break;case 23:if(e.prev=23,e.t0=e.catch(17),404===e.t0.status){e.next=27;break}throw e.t0;case 27:if(!l.get(e.t0.body,"errors[0].cause.cause.cause.qwtoken")){e.next=32;break}throw e.t0;case 32:N="/"===c?{}:void 0;case 33:if(!D){e.next=37;break}return e.next=36,this.ProduceMetadataLinks({libraryId:r,objectId:n,versionHash:i,path:c,metadata:N,authorizationToken:v,noAuth:E});case 36:N=e.sent;case 37:if(h){e.next=39;break}return e.abrupt("return",N);case 39:return e.prev=39,e.next=42,this.ContentObjectMetadata(u(u({},L[0]),{},{metadataSubtree:h,localizationSubtree:void 0}));case 42:return T=e.sent,e.abrupt("return",w({},N,T,(function(e,t){return null===t||""===t?e:void 0})));case 46:return e.prev=46,e.t1=e.catch(39),this.Log(e.t1,!0),e.abrupt("return",N);case 50:case"end":return e.stop()}}),e,this,[[17,23],[39,46]])})));return function(t){return e.apply(this,arguments)}}(),t.AssetMetadata=function(){var e=s(a.mark((function e(t){var r,i,o,s,c,l,h,d,A,p=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,i=t.objectId,o=t.versionHash,s=t.metadata,c=t.localization,l=t.noAuth,h=t.produceLinkUrls,d=void 0!==h&&h,m({libraryId:r,objectId:i,versionHash:o}),i||(i=this.utils.DecodeVersionHash(o).objectId),s){e.next=12;break}return e.next=6,this.ContentObjectMetadata({libraryId:r,objectId:i,versionHash:o,metadataSubtree:"public/asset_metadata",resolveLinks:!0,linkDepthLimit:2,resolveIgnoreErrors:!0,produceLinkUrls:d,noAuth:l});case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:s=e.t0,e.next=16;break;case 12:if(!d){e.next=16;break}return e.next=15,this.ProduceMetadataLinks({libraryId:r,objectId:i,versionHash:o,path:f("public","asset_metadata"),metadata:s,noAuth:l});case 15:s=e.sent;case 16:return s.info||(s.info={}),A=u({},s),c&&c.reverse().forEach((function(e){var t,r=(t=p.utils).SafeTraverse.apply(t,[s].concat(n(e)))||{};A=w({},A,r,(function(e,t){return null===t||""===t?e:void 0}))})),e.abrupt("return",A);case 20:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectVersions=function(){var e=s(a.mark((function e(t){var r,n,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,m({libraryId:r,objectId:n}),this.Log("Retrieving content object versions: ".concat(r||""," ").concat(n)),i=f("qid",n),e.t0=this.HttpClient,e.next=7,this.authClient.AuthorizationHeader({libraryId:r,objectId:n});case 7:return e.t1=e.sent,e.t2=i,e.t3={headers:e.t1,method:"GET",path:e.t2},e.abrupt("return",e.t0.RequestJsonBody.call(e.t0,e.t3));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.LatestVersionHash=function(){var e=s(a.mark((function e(t){var r,n,i,o;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,(n=t.versionHash)&&(r=this.utils.DecodeVersionHash(n).objectId),g(r),e.prev=3,e.next=6,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"objectHash"});case 6:i=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(i){e.next=25;break}return e.prev=12,e.next=15,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"countVersionHashes"});case 15:o=e.sent,e.next=20;break;case 18:e.prev=18,e.t1=e.catch(12);case 20:if(o&&o.toNumber()){e.next=22;break}throw Error("Unable to determine latest version hash for ".concat(n||r," - Item deleted?"));case 22:return e.next=24,this.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"versionHashes",methodArgs:[o-1]});case 24:i=e.sent;case 25:return e.abrupt("return",i);case 26:case"end":return e.stop()}}),e,this,[[3,9],[12,18]])})));return function(t){return e.apply(this,arguments)}}(),t.LatestVersionHashV2=function(){var e=s(a.mark((function e(t){var r,n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,(n=t.versionHash)&&(r=this.utils.DecodeVersionHash(n).objectId),g(r),e.prev=3,o=f("q",r),e.t0=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({objectId:r});case 8:return e.t1=e.sent,e.t2=o,e.t3={headers:e.t1,method:"GET",path:e.t2},e.next=13,e.t0.RequestJsonBody.call(e.t0,e.t3);case 13:s=e.sent,i=s.hash,e.next=21;break;case 17:throw e.prev=17,e.t4=e.catch(3),e.t4.message="Unable to determine latest version hash for ".concat(n||r),e.t4;case 21:return e.abrupt("return",i);case 22:case"end":return e.stop()}}),e,this,[[3,17]])})));return function(t){return e.apply(this,arguments)}}(),t.AvailableDRMs=s(a.mark((function e(){var t,r,n,i,o,s,c,u,f;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=["clear","aes-128"],"undefined"!=typeof window){e.next=3;break}return e.abrupt("return",t);case 3:if(window.navigator&&window.navigator.userAgent&&((r=window.navigator.userAgent.match(/(iPad|iPhone|iphone|iPod).*?(OS |os |OS_)(\d+((_|\.)\d)?((_|\.)\d)?)/))&&r[3]&&(n=r[3].split("_"),i=parseInt(n[0]),o=parseInt(n[1]),(i>13||13===i&&o>=1)&&(t[1]="sample-aes",t[2]="fairplay")),/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)&&(s=window.navigator.userAgent.match(/.+Version\/(\d+)\.(\d+)/))&&s[2]&&(c=parseInt(s[1]),u=parseInt(s[2]),(c>13||13===c&&u>=1)&&(t[1]="sample-aes",t[2]="fairplay"))),"undefined"==typeof window||"function"==typeof window.navigator.requestMediaKeySystemAccess){e.next=6;break}return e.abrupt("return",t);case 6:return f=[{initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]}],e.prev=7,e.next=10,navigator.requestMediaKeySystemAccess("com.widevine.alpha",f);case 10:t.push("widevine"),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(7);case 15:return e.prev=15,e.next=18,navigator.requestMediaKeySystemAccess("com.microsoft.playready",f);case 18:t.push("playready"),e.next=23;break;case 21:e.prev=21,e.t1=e.catch(15);case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,null,[[7,13],[15,21]])}))),t.PlayoutPathResolution=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,l,h,d,A,p,g,b,y,v,m;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.linkPath,c=t.handler,u=t.offering,l=void 0===u?"":u,h=t.signedLink,d=void 0!==h&&h,A=t.authorizationToken,r){e.next=5;break}return e.next=4,this.ContentObjectLibraryId({objectId:n});case 4:r=e.sent;case 5:if(i){e.next=9;break}return e.next=8,this.LatestVersionHash({objectId:n});case 8:i=e.sent;case 9:if(p=f("qlibs",r,"q",o||i,"rep",c,l,"options.json"),!s){e.next=26;break}return e.next=13,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,writeToken:o,metadataSubtree:s,resolveLinks:!1,resolveIgnoreErrors:!0,resolveIncludeSource:!0,authorizationToken:A});case 13:if(m=e.sent,v=!!m&&!!m["/"]&&!m["/"].endsWith("options.json"),p=f("qlibs",r,"q",o||i,"meta",s),d){e.next=25;break}return e.next=19,this.LinkTarget({libraryId:r,objectId:n,versionHash:i,writeToken:o,linkPath:s,linkInfo:m,authorizationToken:A});case 19:return y=e.sent,b=this.utils.DecodeVersionHash(y).objectId,e.next=23,this.ContentObjectLibraryId({objectId:b});case 23:g=e.sent,v||l||(p=f("q",y,"rep",c,"options.json"));case 25:v&&(p=f(p,l,"options.json"));case 26:return e.abrupt("return",{path:p,multiOfferingLink:v,linkTarget:{libraryId:g,objectId:b,versionHash:y}});case 27:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.AvailableOfferings=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d,A;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.objectId,n=t.versionHash,i=t.writeToken,o=t.linkPath,s=t.signedLink,c=t.directLink,u=t.handler,f=void 0===u?"playout":u,l=t.authorizationToken,r||(r=this.utils.DecodeVersionHash(n).objectId),!c){e.next=15;break}return e.t0=this,e.next=6,this.ContentObjectLibraryId({objectId:r});case 6:return e.t1=e.sent,e.t2=r,e.t3=n,e.t4=o,e.t5=l,e.t6={libraryId:e.t1,objectId:e.t2,versionHash:e.t3,metadataSubtree:e.t4,resolveLinks:!0,authorizationToken:e.t5},e.next=14,e.t0.ContentObjectMetadata.call(e.t0,e.t6);case 14:return e.abrupt("return",e.sent);case 15:return e.next=17,this.PlayoutPathResolution({objectId:r,versionHash:n,writeToken:i,linkPath:o,signedLink:s,handler:f,authorizationToken:l});case 17:return h=e.sent,d=h.path,e.prev=19,e.t7=l,e.next=23,this.authClient.AuthorizationToken({objectId:r,channelAuth:!0,oauthToken:this.oauthToken});case 23:return e.t8=e.sent,A=[e.t7,e.t8].flat().filter((function(e){return e})),e.next=27,this.HttpClient.RequestJsonBody({path:d,method:"GET",headers:{Authorization:"Bearer ".concat(A.join(","))}});case 27:return e.abrupt("return",e.sent);case 30:if(e.prev=30,e.t9=e.catch(19),!e.t9.status||500!==parseInt(e.t9.status)){e.next=34;break}return e.abrupt("return",{});case 34:throw e.t9;case 35:case"end":return e.stop()}}),e,this,[[19,30]])})));return function(t){return e.apply(this,arguments)}}(),t.PlayoutOptions=function(){var e=s(a.mark((function e(t){var r,n,i,c,l,h,d,A,p,y,v,m,w,I,E,B,C,_,k,S,Q,x,R,O,D,j,P,M,N,T,L,F,U,G,H,q,K,Y,J,z,W,V,Z,X,$,ee,te,re=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.offeringURI,n=t.objectId,i=t.versionHash,c=t.writeToken,l=t.linkPath,h=t.signedLink,d=void 0!==h&&h,A=t.protocols,p=void 0===A?["dash","hls"]:A,y=t.handler,v=void 0===y?"playout":y,m=t.offering,w=void 0===m?"default":m,I=t.playoutType,E=t.drms,B=void 0===E?[]:E,C=t.context,_=t.hlsjsProfile,k=void 0===_||_,S=t.authorizationToken,Q=t.options,x=void 0===Q?{}:Q,!r){e.next=8;break}if(R=r.match(/(hq__[^/]+)\/rep\/([^/]+)\/([^/]+)\/options.json/),i=R[1],v=R[2],w=R[3],i&&v&&w){e.next=8;break}throw Error("Invalid offering URI: ".concat(r));case 8:if(i?b(i):g(n),p=p.map((function(e){return e.toLowerCase()})),B=B.map((function(e){return e.toLowerCase()})),n){e.next=15;break}n=this.utils.DecodeVersionHash(i).objectId,e.next=19;break;case 15:if(i){e.next=19;break}return e.next=18,this.LatestVersionHash({objectId:n});case 18:i=e.sent;case 19:return e.next=21,this.ContentObjectLibraryId({objectId:n});case 21:if(O=e.sent,e.prev=22,l){e.next=29;break}return D=f("public","asset_metadata","sources",w),e.next=27,this.ContentObjectMetadata({libraryId:O,objectId:n,versionHash:i,metadataSubtree:D,authorizationToken:S});case 27:e.sent&&(l=D);case 29:e.next=33;break;case 31:e.prev=31,e.t0=e.catch(22);case 33:return e.next=35,this.PlayoutPathResolution({libraryId:O,objectId:n,versionHash:i,writeToken:c,linkPath:l,signedLink:d,handler:v,offering:w,authorizationToken:S});case 35:if(j=e.sent,P=j.path,M=j.linkTarget,e.t1=this.authClient,e.t2=M.objectId||n,e.t3=M.versionHash||i,e.t3){e.next=45;break}return e.next=44,this.LatestVersionHash({objectId:n});case 44:e.t3=e.sent;case 45:return e.t4=e.t3,e.t5=p,e.t6=B,e.t7=C,e.t8={objectId:e.t2,versionHash:e.t4,protocols:e.t5,drms:e.t6,context:e.t7},N=e.t1.AudienceData.call(e.t1,e.t8),e.t9=S,e.next=54,this.authClient.AuthorizationToken({libraryId:O,objectId:n,channelAuth:!0,oauthToken:this.oauthToken,audienceData:N});case 54:return e.t10=e.sent,T=[e.t9,e.t10].flat().filter((function(e){return e})),L=u({authorization:T,resolve:!!l},x),e.t11=Object,e.next=60,this.HttpClient.RequestJsonBody({path:P,method:"GET",queryParams:L});case 60:if(e.t12=e.sent,F=e.t11.values.call(e.t11,e.t12),d||!M.versionHash){e.next=68;break}return e.t13=S,e.next=66,this.authClient.AuthorizationToken({libraryId:M.libraryId,objectId:M.objectId,channelAuth:!0,oauthToken:this.oauthToken,audienceData:N});case 66:e.t14=e.sent,L.authorization=[e.t13,e.t14].flat().filter((function(e){return e}));case 68:U={},q=0;case 70:if(!(q<F.length)){e.next=135;break}if(K=F[q],Y=K.properties.protocol,J=K.properties.drm,G=G||K.sid,H=H||!!K.properties.multiview,G&&(L.sid=G),z=K.uri.split("?")[0],I&&(z=z.replace("playlist","playlist-".concat(I))),W=K.properties.license_servers,V=K.properties.cert,Z=K.properties.thumbnails_webvtt_uri,k&&"hls"===Y&&"aes-128"===J&&(L.player_profile="hls-js"),e.t15=u,e.t16=u({},U[Y]||{}),e.t17={},e.t18=u,e.t19=u({},(U[Y]||{}).playoutMethods||{}),e.t20={},e.t21=o,e.t22={},e.t23=J||"clear",!d){e.next=98;break}return e.next=95,this.LinkUrl({versionHash:i,linkPath:f(l,w,z),queryParams:L,noAuth:!0});case 95:e.t24=e.sent,e.next=101;break;case 98:return e.next=100,this.Rep({libraryId:M.libraryId||O,objectId:M.objectId||n,versionHash:M.versionHash||i,rep:f(v,w,z),noAuth:!0,queryParams:L});case 100:e.t24=e.sent;case 101:if(e.t25=e.t24,!d){e.next=108;break}return e.next=105,this.GlobalUrl({versionHash:i,path:f(l,w,z),queryParams:L});case 105:e.t26=e.sent,e.next=111;break;case 108:return e.next=110,this.GlobalUrl({libraryId:M.libraryId||O,objectId:M.objectId||n,versionHash:M.versionHash||i,path:f("rep",v,w,z),queryParams:L});case 110:e.t26=e.sent;case 111:if(e.t27=e.t26,e.t28=J?o({},J,{licenseServers:W,cert:V}):void 0,Z){e.next=117;break}e.t29=void 0,e.next=120;break;case 117:return e.next=119,this.Rep({libraryId:M.libraryId||O,objectId:M.objectId||n,versionHash:M.versionHash||i,rep:f(v,w,Z),queryParams:L});case 119:e.t29=e.sent;case 120:for(X in e.t30=e.t29,e.t31={playoutUrl:e.t25,globalPlayoutUrl:e.t27,drms:e.t28,thumbnailTrack:e.t30},e.t32=(0,e.t21)(e.t22,e.t23,e.t31),e.t33=(0,e.t18)(e.t19,e.t20,e.t32),e.t34={playoutMethods:e.t33},U[Y]=(0,e.t15)(e.t16,e.t17,e.t34),U[Y].playoutMethods)U[Y].playoutMethods[X].drms&&U[Y].playoutMethods[X].drms[J]&&U[Y].playoutMethods[X].drms[J].cert&&(($=new URL(U[Y].playoutMethods[X].playoutUrl)).pathname=$.pathname.split("/").slice(0,-1).concat(["drm.cert"]).join("/"),U[Y].playoutMethods[X].drms[J].cert_url=$.toString());if(ee=p.includes(Y),te=B.includes(J||"clear")||0===B.length&&!J,ee&&te){e.next=131;break}return e.abrupt("continue",132);case 131:(!U[Y].playoutUrl||J&&"clear"!==J)&&(U[Y].playoutUrl=U[Y].playoutMethods[J||"clear"].playoutUrl,U[Y].drms=U[Y].playoutMethods[J||"clear"].drms);case 132:q++,e.next=70;break;case 135:return H&&G&&(U.sessionId=G,U.multiview=!0,U.AvailableViews=s(a.mark((function e(){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re.HttpClient.RequestJsonBody({path:f("q",M.versionHash||i,"rep",v,w,"views.json"),method:"GET",queryParams:{sid:G,authorization:T}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),U.SwitchView=function(){var e=s(a.mark((function e(t){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re.HttpClient.Request({path:f("q",M.versionHash||i,"rep",v,w,"select_view"),method:"POST",queryParams:{sid:G,authorization:T},body:{view:t}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.Log(U),e.abrupt("return",U);case 138:case"end":return e.stop()}}),e,this,[[22,31]])})));return function(t){return e.apply(this,arguments)}}(),t.BitmovinPlayoutOptions=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d,A,p,y,v,m,w,I,E,B,C,_,k,S;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,n=t.versionHash,i=t.writeToken,o=t.linkPath,s=t.signedLink,c=void 0!==s&&s,u=t.protocols,f=void 0===u?["dash","hls"]:u,l=t.drms,h=void 0===l?[]:l,d=t.handler,A=void 0===d?"playout":d,p=t.offering,y=void 0===p?"default":p,v=t.playoutType,m=t.context,w=t.authorizationToken,I=t.options,E=void 0===I?{}:I,n?b(n):g(r),r||(r=this.utils.DecodeVersionHash(n).objectId),e.next=5,this.PlayoutOptions({objectId:r,versionHash:n,writeToken:i,linkPath:o,signedLink:c,protocols:f,drms:h,handler:A,offering:y,playoutType:v,hlsjsProfile:!1,context:m,authorizationToken:w,options:E});case 5:return delete(B=e.sent).playoutMethods,e.next=9,this.PlayoutPathResolution({objectId:r,versionHash:n,writeToken:i,linkPath:o,signedLink:c,handler:A,offering:y,authorizationToken:w});case 9:if(C=e.sent,_=C.linkTarget,k=[],w&&k.push(w),!c&&_.versionHash){e.next=21;break}return e.t0=k,e.next=17,this.authClient.AuthorizationToken({objectId:r,channelAuth:!0,oauthToken:this.oauthToken});case 17:e.t1=e.sent,e.t0.push.call(e.t0,e.t1),e.next=26;break;case 21:return e.t2=k,e.next=24,this.authClient.AuthorizationToken({libraryId:_.libraryId,objectId:_.objectId,channelAuth:!0,oauthToken:this.oauthToken});case 24:e.t3=e.sent,e.t2.push.call(e.t2,e.t3);case 26:return S={drm:{}},Object.keys(B).forEach((function(e){var t=B[e];S[e]=t.playoutUrl,t.drms&&Object.keys(t.drms).forEach((function(e){if(t.drms[e].licenseServers&&0!==t.drms[e].licenseServers.length){var r=function(e){return e.toLowerCase().startsWith("https")},n=t.drms[e].licenseServers;n.find(r)&&(n=n.filter(r));var i=n.sort((function(){return.5-Math.random()}))[0];S.drm[e]||(S.drm[e]={LA_URL:i,headers:{Authorization:"Bearer ".concat(k.flat().filter((function(e){return e})).join(","))}})}}))})),e.abrupt("return",S);case 29:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.GlobalUrl=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,l,h,d,A,p,g,b,y,v,m,w;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.writeToken,o=t.versionHash,s=t.path,c=void 0===s?"/":s,l=t.authorizationToken,h=t.noAuth,d=void 0!==h&&h,A=t.resolve,p=void 0===A||A,g=t.queryParams,b=void 0===g?{}:g,y=this.NetworkInfo().name,v=new URL("main"===y?"https://main.net955305.contentfabric.io":"https://demov3.net955210.contentfabric.io"),b.authorization&&("string"==typeof b.authorization||Array.isArray(b.authorization)&&1===b.authorization.length)&&(b=u({},b),l="string"==typeof b.authorization?b.authorization:b.authorization[0]),i&&(m=this.HttpClient.draftURIs[i])&&(v=new URL(m)),w=f("s",y),d&&!l){e.next=15;break}if(e.t0=f,e.t1=l,e.t1){e.next=13;break}return e.next=12,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:o,noAuth:d});case 12:e.t1=e.sent;case 13:e.t2=e.t1,w=(0,e.t0)("t",e.t2);case 15:if(!o){e.next=19;break}n=this.utils.DecodeVersionHash(o).objectId,e.next=25;break;case 19:if(e.t3=r,e.t3){e.next=24;break}return e.next=23,this.ContentObjectLibraryId({objectId:n});case 23:e.t3=e.sent;case 24:r=e.t3;case 25:return w=c.startsWith("/qfab")?f(w,c.replace(/^\/qfab/,"q")):o?f(w,"q",i||o,c):f(w,"qlibs",r,"q",i||n,c),v.pathname=w,p&&v.searchParams.set("resolve","true"),Object.keys(b).forEach((function(e){return v.searchParams.set(e,b[e])})),e.abrupt("return",v.toString());case 30:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.MakeFileServiceRequest=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,l,h,d,A,p,g,b,y,v,w,I,E,B;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.path,c=t.method,u=void 0===c?"GET":c,l=t.queryParams,h=void 0===l?{}:l,d=t.body,A=t.bodyType,p=void 0===A?"JSON":A,g=t.format,b=void 0===g?"json":g,y=t.encryption,v=t.headers,w=void 0===v?{}:v,I=t.authorizationToken,i&&(n=this.utils.DecodeVersionHash(i).objectId),!n||r){e.next=6;break}return e.next=5,this.ContentObjectLibraryId({objectId:n});case 5:r=e.sent;case 6:return m({libraryId:r,objectId:n,versionHash:i}),E=f("q",o||i||n,s),r&&!i&&(E=f("qlibs",r,E)),e.t0=I,e.next=12,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:i,encryption:y,makeAccessRequest:"cgck"===y});case 12:return e.t1=e.sent,B=[e.t0,e.t1].flat().filter((function(e){return e})),w.Authorization=w.Authorization||B.map((function(e){return"Bearer ".concat(e)})),e.t2=this.utils,e.t3=b,e.next=19,this.FileServiceHttpClient.Request({body:d,bodyType:p,headers:w,method:u,path:E,queryParams:h});case 19:return e.t4=e.sent,e.t5=this.FileServiceHttpClient.debug,e.t6=this.FileServiceHttpClient.Log.bind(this.FileServiceHttpClient),e.abrupt("return",e.t2.ResponseToFormat.call(e.t2,e.t3,e.t4,e.t5,e.t6));case 23:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.CallBitcodeMethod=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,l,h,d,A,p,g,b,y,v;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.method,c=t.queryParams,u=void 0===c?{}:c,l=t.body,h=void 0===l?{}:l,d=t.headers,A=void 0===d?{}:d,p=t.constant,g=void 0===p||p,b=t.format,y=void 0===b?"json":b,m({libraryId:r,objectId:n,versionHash:i}),s){e.next=4;break}throw"Bitcode method not specified";case 4:if(i&&(n=this.utils.DecodeVersionHash(i).objectId),v=f("q",o||i||n,"call",s),r&&!i&&(v=f("qlibs",r,v)),A.authorization||A.Authorization){e.next=12;break}return e.next=11,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!g});case 11:A.Authorization=e.sent.Authorization;case 12:return this.Log("Calling bitcode method: ".concat(r||""," ").concat(n||i," ").concat(o||"","\n ").concat(g?"GET":"POST"," ").concat(v,"\n Query Params:\n ").concat(JSON.stringify(u||""),"\n Body:\n ").concat(JSON.stringify(h||""),"\n Headers\n ").concat(JSON.stringify(A||""))),e.t0=this.utils,e.t1=y,e.next=17,this.HttpClient.Request({body:h,headers:A,method:g?"GET":"POST",path:v,queryParams:u,allowFailover:!1});case 17:return e.t2=e.sent,e.t3=this.HttpClient.debug,e.t4=this.HttpClient.Log.bind(this.HttpClient),e.abrupt("return",e.t0.ResponseToFormat.call(e.t0,e.t1,e.t2,e.t3,e.t4));case 21:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Rep=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d,A,p,g,b,y;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.rep,s=t.queryParams,c=void 0===s?{}:s,u=t.service,f=void 0===u?"fabric":u,l=t.makeAccessRequest,h=void 0!==l&&l,d=t.channelAuth,A=void 0!==d&&d,p=t.noAuth,g=void 0!==p&&p,b=t.noCache,y=void 0!==b&&b,m({libraryId:r,objectId:n,versionHash:i}),o){e.next=4;break}throw"Rep not specified";case 4:return e.abrupt("return",this.FabricUrl({libraryId:r,objectId:n,versionHash:i,rep:o,queryParams:c,service:f,makeAccessRequest:h,channelAuth:A,noAuth:g,noCache:y}));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.PublicRep=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.rep,s=t.queryParams,c=void 0===s?{}:s,u=t.service,f=void 0===u?"fabric":u,m({libraryId:r,objectId:n,versionHash:i}),o){e.next=4;break}throw"Rep not specified";case 4:return e.abrupt("return",this.FabricUrl({libraryId:r,objectId:n,versionHash:i,publicRep:o,queryParams:c,service:f,noAuth:!0}));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.FabricUrl=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,l,h,d,A,p,g,b,y,v,w,I,E,B,C,_,k,S;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.partHash,c=t.rep,l=t.publicRep,h=t.call,d=t.queryParams,A=void 0===d?{}:d,p=t.service,g=void 0===p?"fabric":p,b=t.channelAuth,y=void 0!==b&&b,v=t.makeAccessRequest,w=void 0!==v&&v,I=t.noAuth,E=void 0!==I&&I,B=t.noCache,C=void 0!==B&&B,(n||i)&&m({libraryId:r,objectId:n,versionHash:i}),i&&(n=this.utils.DecodeVersionHash(i).objectId),this.Log("Building Fabric URL:\n libraryId: ".concat(r,"\n objectId: ").concat(n,"\n versionHash: ").concat(i,"\n writeToken: ").concat(o,"\n partHash: ").concat(s,"\n rep: ").concat(c,"\n publicRep: ").concat(l,"\n call: ").concat(h,"\n channelAuth: ").concat(y,"\n noAuth: ").concat(E,"\n noCache: ").concat(C,"\n queryParams: ").concat(JSON.stringify(A||{},null,2))),_=[],A.authorization&&_.push(A.authorization),E&&A.authorization){e.next=12;break}return e.t0=_,e.next=10,this.authClient.AuthorizationToken({libraryId:r,objectId:n,versionHash:i,channelAuth:y,makeAccessRequest:w,noAuth:E,noCache:C});case 10:e.t1=e.sent,e.t0.push.call(e.t0,e.t1);case 12:if(A=u(u({},A),{},{authorization:_.flat()}),!c&&!l||!n||i){e.next=17;break}return e.next=16,this.LatestVersionHash({objectId:n});case 16:i=e.sent;case 17:return k="",r?(k=f(k,"qlibs",r),(n||i)&&(k=f(k,"q",o||i||n))):i&&(k=f("q",i)),s?k=f(k,"data",s):c?k=f(k,"rep",c):l?k=f(k,"public",l):h&&(k=f(k,"call",h)),S=this.HttpClient,"search"===g?S=this.SearchHttpClient:"auth"===g?S=this.AuthHttpClient:"files"===g&&(S=this.FileServiceHttpClient),e.abrupt("return",S.URL({path:k,queryParams:A}));case 23:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.FileUrl=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,l,h,d,A,p,g;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.filePath,c=t.queryParams,l=void 0===c?{}:c,h=t.noCache,d=void 0!==h&&h,m({libraryId:r,objectId:n,versionHash:i}),s){e.next=4;break}throw"File path not specified";case 4:return i&&(n=this.utils.DecodeVersionHash(i).objectId),A=r?f("qlibs",r,"q",o||i||n):f("q",i),e.next=8,this.authClient.AuthorizationToken({libraryId:r,objectId:n,noCache:d});case 8:return p=e.sent,l=u(u({},l),{},{authorization:p}),e.next=12,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,writeToken:o,metadataSubtree:f("files",s)});case 12:return g=e.sent,g&&g["."].encryption&&"cgck"===g["."].encryption.scheme?(A=f(A,"rep","files_download",s),l["header-x_decryption_mode"]="decrypt"):A=f(A,"files",s),e.abrupt("return",this.HttpClient.URL({path:A,queryParams:l}));case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectImageUrl=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.height,s=t.imagePath,c=void 0===s?"public/display_image":s,m({libraryId:r,objectId:n,versionHash:i}),i){e.next=6;break}return e.next=5,this.LatestVersionHash({objectId:n});case 5:i=e.sent;case 6:if(this.Log("Retrieving content object image url: ".concat(r," ").concat(n," ").concat(i)),this.objectImageUrls[i]){e.next=26;break}return e.prev=8,e.next=11,this.ContentObjectMetadata({versionHash:i,metadataSubtree:c});case 11:if(e.sent){e.next=15;break}return this.Log("No image url set: ".concat(r," ").concat(n," ").concat(i)),e.abrupt("return");case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(8),this.Log("Unable to query for image metadata: ".concat(r," ").concat(n," ").concat(i),!0),this.Log(e.t0,!0);case 21:return u={},o&&!isNaN(parseInt(o))&&(u.height=parseInt(o)),e.next=25,this.LinkUrl({versionHash:i,linkPath:c,queryParams:u});case 25:this.objectImageUrls[i]=e.sent;case 26:return e.abrupt("return",this.objectImageUrls[i]);case 27:case"end":return e.stop()}}),e,this,[[8,17]])})));return function(t){return e.apply(this,arguments)}}();var I={video:"v",live_video:"lv",audio:"a",image:"i",html:"h",ebook:"b",gallery:"g",link:"l"};t.EmbedUrl=function(){var t=s(a.mark((function t(r){var n,i,o,s,c,u,f,l,h,d,A,p,y,v,m,w,E,B,C,_,k,S,Q;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.objectId,i=r.versionHash,o=r.duration,s=void 0===o?864e5:o,c=r.mediaType,u=void 0===c?"video":c,f=r.options,l=void 0===f?{}:f,h=r.additionalParameters,d=void 0===h?{}:h,i?b(i):n&&g(n),l.controls=void 0===l.controls?"autoHide":l.controls,A={autoHide:"h",browserDefault:"d",show:"s",hideWithVolume:"hv"},p=new URL("https://embed.v3.contentfabric.io"),t.next=7,this.NetworkInfo();case 7:return y=t.sent,v="demov3"===y.name?"demo":"test"===y.name&&955205===y.id?"testv4":y.name,t.next=11,this.Permission({objectId:n||this.utils.DecodeVersionHash(i).objectId});case 11:m=t.sent,p.searchParams.set("p",""),p.searchParams.set("net",v),i?p.searchParams.set("vid",i):n&&p.searchParams.set("oid",n),p.searchParams.set("mt",I[u.toLowerCase()]||"v"),w={},E=0,B=Object.keys(l);case 18:if(!(E<B.length)){t.next=69;break}C=B[E],t.t0=C,t.next="accountWatermark"===t.t0?23:"autoplay"===t.t0?25:"capLevelToPlayerSize"===t.t0?27:"clipEnd"===t.t0?29:"clipStart"===t.t0?31:"controls"===t.t0?33:"description"===t.t0?35:"directLink"===t.t0?37:"linkPath"===t.t0?39:"loop"===t.t0?41:"muted"===t.t0?43:"offerings"===t.t0?45:"posterUrl"===t.t0?47:"protocols"===t.t0?49:"showShare"===t.t0?51:"showTitle"===t.t0?53:"title"===t.t0?55:"viewRecordKey"===t.t0?57:"useTicketCodes"===t.t0?59:"verifyContent"===t.t0?65:66;break;case 23:return p.searchParams.set("awm",""),t.abrupt("break",66);case 25:return p.searchParams.set("ap",""),t.abrupt("break",66);case 27:return p.searchParams.set("cap",""),t.abrupt("break",66);case 29:return p.searchParams.set("end",l.clipEnd),t.abrupt("break",66);case 31:return p.searchParams.set("start",l.clipStart),t.abrupt("break",66);case 33:return"hide"!==l.controls&&p.searchParams.set("ct",A[l.controls]),t.abrupt("break",66);case 35:return w["og:description"]=l.description,t.abrupt("break",66);case 37:return p.searchParams.set("dr",""),t.abrupt("break",66);case 39:return p.searchParams.set("ln",this.utils.B64(l.linkPath)),t.abrupt("break",66);case 41:return p.searchParams.set("lp",""),t.abrupt("break",66);case 43:return p.searchParams.set("m",""),t.abrupt("break",66);case 45:return p.searchParams.set("off",l.offerings.join(",")),t.abrupt("break",66);case 47:return p.searchParams.set("pst",l.posterUrl),t.abrupt("break",66);case 49:return p.searchParams.set("ptc",l.protocols.join(",")),t.abrupt("break",66);case 51:return p.searchParams.set("sh",""),t.abrupt("break",66);case 53:return p.searchParams.set("st",""),t.abrupt("break",66);case 55:return w["og:title"]=l.title,t.abrupt("break",66);case 57:return p.searchParams.set("vrk",l.viewRecordKey),t.abrupt("break",66);case 59:return p.searchParams.set("ptk",""),l.tenantId&&p.searchParams.set("ten",l.tenantId),l.ntpId&&p.searchParams.set("ntp",l.ntpId),l.ticketCode&&p.searchParams.set("tk",e.from(l.ticketCode).toString("base64")),l.ticketSubject&&p.searchParams.set("sbj",e.from(l.ticketSubject).toString("base64")),t.abrupt("break",66);case 65:p.searchParams.set("vc","");case 66:E++,t.next=18;break;case 69:for(_=0,k=Object.keys(d);_<k.length;_++)S=k[_],p.searchParams.set(S,d[S]);if(Object.keys(w).length>0&&p.searchParams.set("data",this.utils.B64(JSON.stringify({meta_tags:w}))),!["owner","editable","viewable"].includes(m)){t.next=76;break}return t.next=74,this.CreateSignedToken({objectId:n,versionHash:i,duration:s});case 74:Q=t.sent,p.searchParams.set("ath",Q);case 76:return t.abrupt("return",p.toString());case 77:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t.ContentObjectGraph=function(){var e=s(a.mark((function e(t){var r,n,i,o,c,u,l,h,d,A,p=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.autoUpdate,c=void 0!==o&&o,u=t.select,m({libraryId:r,objectId:n,versionHash:i}),this.Log("Retrieving content object graph: ".concat(r||""," ").concat(n||i)),i&&(n=this.utils.DecodeVersionHash(i).objectId),l=f("q",i||n,"links"),e.prev=5,e.t0=this.utils,e.t1=this.HttpClient,e.next=10,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i});case 10:return e.t2=e.sent,e.t3={auto_update:c,select:u},e.t4=l,e.t5={headers:e.t2,queryParams:e.t3,method:"GET",path:e.t4},e.t6=e.t1.Request.call(e.t1,e.t5),e.next=17,e.t0.ResponseToJson.call(e.t0,e.t6);case 17:return e.abrupt("return",e.sent);case 20:if(e.prev=20,e.t7=e.catch(5),e.prev=22,(d=e.t7.body.errors[0].cause.cause.cause.cycle)&&0!==d.length){e.next=26;break}throw e.t7;case 26:return A={},e.next=29,Promise.all(d.map(function(){var e=s(a.mark((function e(t){var r,n;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A[t]){e.next=2;break}return e.abrupt("return");case 2:return r=p.utils.DecodeVersionHash(t).objectId,e.next=5,p.ContentObjectMetadata({versionHash:t,metadataSubtree:"public/asset_metadata/display_title"});case 5:if(e.t2=e.sent,e.t2){e.next=10;break}return e.next=9,p.ContentObjectMetadata({versionHash:t,metadataSubtree:"public/name"});case 9:e.t2=e.sent;case 10:if(e.t1=e.t2,e.t1){e.next=15;break}return e.next=14,p.ContentObjectMetadata({versionHash:t,metadataSubtree:"name"});case 14:e.t1=e.sent;case 15:if(e.t0=e.t1,e.t0){e.next=18;break}e.t0=r;case 18:n=e.t0,A[t]={name:n,objectId:r};case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 29:h=d.map((function(e){return"".concat(A[e].name," (").concat(A[e].objectId,")")})),e.next=35;break;case 32:throw e.prev=32,e.t8=e.catch(22),e.t7;case 35:throw new Error("Cycle found in links: ".concat(h.join(" -> ")));case 36:case"end":return e.stop()}}),e,this,[[5,20],[22,32]])})));return function(t){return e.apply(this,arguments)}}(),t.LinkTarget=function(){var e=s(a.mark((function e(t){var r,n,o,s,c,u,f,l,h;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,o=t.versionHash,s=t.writeToken,c=t.linkPath,u=t.authorizationToken,f=t.linkInfo,m({libraryId:r,objectId:n,versionHash:o}),s&&v(s),o&&(n=this.utils.DecodeVersionHash(o).objectId),!s||r){e.next=8;break}return e.next=7,this.ContentObjectLibraryId({objectId:n});case 7:r=e.sent;case 8:if(f){e.next=12;break}return e.next=11,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:o,writeToken:s,metadataSubtree:c,resolveLinks:!1,resolveIgnoreErrors:!0,resolveIncludeSource:!0,authorizationToken:u});case 11:f=e.sent;case 12:if(!f||!f["/"]){e.next=27;break}if((l=((f["/"]||"").match(/^\/?qfab\/([\w]+)\/?.+/)||[])[1])||(l=f["."].container),!l){e.next=19;break}return e.abrupt("return",l);case 19:if(!o){e.next=21;break}return e.abrupt("return",o);case 21:if(e.t0=o,e.t0){e.next=26;break}return e.next=25,this.LatestVersionHash({objectId:n});case 25:e.t0=e.sent;case 26:return e.abrupt("return",e.t0);case 27:return e.next=29,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:o,writeToken:s,metadataSubtree:c,resolveIncludeSource:!0,authorizationToken:u});case 29:if((f=e.sent)&&f["."]){e.next=49;break}if("object"!==i(f)){e.next=38;break}if(e.t1=o,e.t1){e.next=37;break}return e.next=36,this.LatestVersionHash({objectId:n});case 36:e.t1=e.sent;case 37:return e.abrupt("return",e.t1);case 38:if(h=c.split("/").slice(0,-1).join("/")){e.next=46;break}if(e.t2=o,e.t2){e.next=45;break}return e.next=44,this.LatestVersionHash({objectId:n});case 44:e.t2=e.sent;case 45:return e.abrupt("return",e.t2);case 46:return e.next=48,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:o,writeToken:s,metadataSubtree:h,resolveIncludeSource:!0,authorizationToken:u});case 48:f=e.sent;case 49:return e.abrupt("return",f["."].source);case 50:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.LinkUrl=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,l,h,d,A,p,g,b,y,w;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.linkPath,c=t.mimeType,l=t.authorizationToken,h=t.queryParams,d=void 0===h?{}:h,A=t.channelAuth,p=void 0!==A&&A,g=t.noAuth,b=void 0!==g&&g,m({libraryId:r,objectId:n,versionHash:i}),o&&v(o),s){e.next=5;break}throw Error("Link path not specified");case 5:return i&&(n=this.utils.DecodeVersionHash(i).objectId),y=r?f("qlibs",r,"q",o||i||n,"meta",s):f("q",i,"meta",s),w=[l],e.t0=w,e.next=11,this.MetadataAuth({libraryId:r,objectId:n,versionHash:i,path:s,channelAuth:p,noAuth:b});case 11:return e.t1=e.sent,e.t0.push.call(e.t0,e.t1),d.authorization&&w.push(d.authorization),d=u(u({},d),{},{authorization:w.flat().filter((function(e){return e})),resolve:!0}),c&&(d["header-accept"]=c),e.abrupt("return",this.HttpClient.URL({path:y,queryParams:d}));case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.LinkData=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,d,A;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.linkPath,c=t.queryParams,u=void 0===c?{}:c,f=t.format,l=void 0===f?"json":f,d=t.channelAuth,e.next=3,this.LinkUrl({libraryId:r,objectId:n,versionHash:i,writeToken:o,linkPath:s,queryParams:u,channelAuth:d});case 3:return A=e.sent,e.t0=this.utils,e.t1=l,e.next=8,h.Fetch(A);case 8:return e.t2=e.sent,e.abrupt("return",e.t0.ResponseToFormat.call(e.t0,e.t1,e.t2));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.CreateEncryptionConk=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.createKMSConk,c=void 0===s||s,!this.signer.remoteSigner){e.next=3;break}return e.abrupt("return");case 3:if(m({libraryId:r,objectId:n,versionHash:i}),v(o),n||(n=client.DecodeVersionHash(i).objectId),r){e.next=10;break}return e.next=9,this.ContentObjectLibraryId({objectId:n});case 9:r=e.sent;case 10:return u="eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address)),e.next=13,this.ContentObjectMetadata({libraryId:r,objectId:n,writeToken:o,metadataSubtree:u});case 13:if(!(f=e.sent)){e.next=20;break}return e.next=17,this.Crypto.DecryptCap(f,this.signer._signingKey().privateKey);case 17:this.encryptionConks[n]=e.sent,e.next=34;break;case 20:return e.next=22,this.Crypto.GeneratePrimaryConk({spaceId:this.contentSpaceId,objectId:n});case 22:return this.encryptionConks[n]=e.sent,e.t0=this,e.t1=r,e.t2=n,e.t3=o,e.t4=u,e.next=30,this.Crypto.EncryptConk(this.encryptionConks[n],this.signer._signingKey().publicKey);case 30:return e.t5=e.sent,e.t6={libraryId:e.t1,objectId:e.t2,writeToken:e.t3,metadataSubtree:e.t4,metadata:e.t5},e.next=34,e.t0.ReplaceMetadata.call(e.t0,e.t6);case 34:if(!c){e.next=64;break}return e.prev=35,e.next=38,this.authClient.KMSAddress({objectId:n});case 38:return l=e.sent,e.next=41,this.authClient.KMSInfo({objectId:n});case 41:return h=e.sent.publicKey,d="eluv.caps.ikms".concat(this.utils.AddressToHash(l)),e.next=45,this.ContentObjectMetadata({libraryId:r,objectId:n,writeToken:o,metadataSubtree:d});case 45:if(e.sent){e.next=58;break}return e.t7=this,e.t8=r,e.t9=n,e.t10=o,e.t11=d,e.next=54,this.Crypto.EncryptConk(this.encryptionConks[n],h);case 54:return e.t12=e.sent,e.t13={libraryId:e.t8,objectId:e.t9,writeToken:e.t10,metadataSubtree:e.t11,metadata:e.t12},e.next=58,e.t7.ReplaceMetadata.call(e.t7,e.t13);case 58:e.next=64;break;case 60:e.prev=60,e.t14=e.catch(35),console.error("Failed to create encryption cap for KMS:"),console.error(e.t14);case 64:return e.abrupt("return",this.encryptionConks[n]);case 65:case"end":return e.stop()}}),e,this,[[35,60]])})));return function(t){return e.apply(this,arguments)}}(),t.EncryptionConk=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l,h,d;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.writeToken,s=t.download,c=void 0!==s&&s,m({libraryId:r,objectId:n,versionHash:i}),o&&v(o),n||(n=client.DecodeVersionHash(i).objectId),e.next=6,this.authClient.Owner({id:n});case 6:return u=e.sent,f="eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address)),e.next=10,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,metadataSubtree:f});case 10:if(l=e.sent,this.utils.EqualAddress(u,this.signer.address)||l){e.next=21;break}if(!c){e.next=18;break}return e.next=15,this.authClient.ReEncryptionConk({libraryId:r,objectId:n,versionHash:i});case 15:return e.abrupt("return",e.sent);case 18:return e.next=20,this.authClient.EncryptionConk({libraryId:r,objectId:n,versionHash:i});case 20:return e.abrupt("return",e.sent);case 21:if(this.encryptionConks[n]){e.next=38;break}return h="eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address)),e.next=25,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,writeToken:o,metadataSubtree:h});case 25:if(!(d=e.sent)){e.next=32;break}return e.next=29,this.Crypto.DecryptCap(d,this.signer._signingKey().privateKey);case 29:this.encryptionConks[n]=e.sent,e.next=38;break;case 32:if(!o){e.next=37;break}return e.next=35,this.CreateEncryptionConk({libraryId:r,objectId:n,versionHash:i,writeToken:o,createKMSConk:!1});case 35:e.next=38;break;case 37:throw"No encryption conk present for "+n;case 38:return e.abrupt("return",this.encryptionConks[n]);case 39:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Encrypt=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,o=t.chunk,m({libraryId:r,objectId:n}),e.next=4,this.EncryptionConk({libraryId:r,objectId:n,writeToken:i});case 4:return s=e.sent,e.next=7,this.Crypto.Encrypt(s,o);case 7:return c=e.sent,e.abrupt("return",c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Decrypt=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,o=t.chunk,m({libraryId:r,objectId:n}),e.next=4,this.EncryptionConk({libraryId:r,objectId:n,writeToken:i,download:!0});case 4:return s=e.sent,e.next=7,this.Crypto.Decrypt(s,o);case 7:return c=e.sent,e.abrupt("return",c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.AccessType=function(){var e=s(a.mark((function e(t){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,e.next=3,this.authClient.AccessType(r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.AccessInfo=function(){var e=s(a.mark((function e(t){var r,n,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.objectId,n=t.args,g(r),n||(n=[0,[],[]]),this.Log("Retrieving access info: ".concat(r)),e.next=6,this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(r),methodName:"getAccessInfo",methodArgs:n});case 6:return i=e.sent,this.Log(i),e.abrupt("return",{visibilityCode:i[0],visible:i[0]>=1,accessible:i[0]>=10,editable:i[0]>=100,hasAccess:0===i[1],accessCode:i[1],accessCharge:this.utils.WeiToEther(i[2]).toString()});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.AccessRequest=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c,u,f,l;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.args,s=void 0===o?[]:o,c=t.update,u=void 0!==c&&c,f=t.noCache,l=void 0!==f&&f,m({libraryId:r,objectId:n,versionHash:i}),i&&(n=this.utils.DecodeVersionHash(i).objectId),e.next=5,this.authClient.MakeAccessRequest({libraryId:r,objectId:n,versionHash:i,args:s,update:u,skipCache:!0,noCache:l});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.SetAuthContext=function(e){var t=e.context;if(t&&Object.values(t).find((function(e){return"string"!=typeof e})))throw Error("Context must be a map of string->string");this.authContext=t},t.GenerateStateChannelToken=function(){var e=s(a.mark((function e(t){var r,n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.objectId,n=t.versionHash,i=t.context,o=t.noCache,s=void 0!==o&&o,n?b(n):g(r),!n){e.next=6;break}r=this.utils.DecodeVersionHash(n).objectId,e.next=10;break;case 6:if(this.stateChannelAccess[r]){e.next=10;break}return e.next=9,this.LatestVersionHash({objectId:r});case 9:n=e.sent;case 10:return this.stateChannelAccess[r]=n,e.next=13,this.authClient.AuthorizationToken({objectId:r,channelAuth:!0,oauthToken:this.oauthToken,context:i,noCache:s});case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.FinalizeStateChannelAccess=function(){var e=s(a.mark((function e(t){var r,n,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.objectId,n=t.versionHash,i=t.percentComplete,n?b(n):g(r),!n){e.next=6;break}r=this.utils.DecodeVersionHash(n).objectId,e.next=13;break;case 6:if(!this.stateChannelAccess[r]){e.next=10;break}n=this.stateChannelAccess[r],e.next=13;break;case 10:return e.next=12,this.LatestVersionHash({objectId:r});case 12:n=e.sent;case 13:return this.stateChannelAccess[r]=void 0,e.next=16,this.authClient.ChannelContentFinalize({objectId:r,versionHash:n,percent:i});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentObjectAccessComplete=function(){var e=s(a.mark((function e(t){var r,n,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.objectId,n=t.score,i=void 0===n?100:n,g(r),!(i<0||i>100)){e.next=4;break}throw Error("Invalid AccessComplete score: "+i);case 4:return e.next=6,this.authClient.AccessComplete({id:r,score:i});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Collection=function(){var e=s(a.mark((function e(t){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.collectionType,["accessGroups","contentObjects","contentTypes","contracts","libraries"].includes(r)){e.next=4;break}throw new Error("Invalid collection type: "+r);case 4:if(!this.signer){e.next=10;break}return e.next=7,this.userProfileClient.WalletAddress();case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=void 0;case 11:if(e.t0){e.next=14;break}throw new Error("Unable to get collection: User wallet doesn't exist");case 14:return this.Log("Retrieving ".concat(r," contract collection for user ").concat(this.signer.address)),e.next=17,this.ethClient.MakeProviderCall({methodName:"send",args:["elv_getWalletCollection",[this.contentSpaceId,"iusr".concat(this.utils.AddressToHash(this.signer.address)),r]]});case 17:if(e.t1=e.sent,e.t1){e.next=20;break}e.t1=[];case 20:return e.abrupt("return",e.t1);case 21:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.AuditContentObject=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.salt,s=t.samples,c=t.authorizationToken,e.next=3,d.AuditContentObject({client:this,libraryId:r,objectId:n,versionHash:i,salt:o,samples:s,authorizationToken:c});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Proofs=function(){var e=s(a.mark((function e(t){var r,n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,o=t.partHash,m({libraryId:r,objectId:n,versionHash:i}),y(o),i&&(n=this.utils.DecodeVersionHash(i).objectId),s=f("q",i||n,"data",o,"proofs"),e.t0=this.utils,e.t1=this.HttpClient,e.next=9,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i});case 9:return e.t2=e.sent,e.t3=s,e.t4={headers:e.t2,method:"GET",path:e.t3},e.t5=e.t1.Request.call(e.t1,e.t4),e.abrupt("return",e.t0.ResponseToJson.call(e.t0,e.t5));case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.QParts=function(){var e=s(a.mark((function e(t){var r,n,i,o,s,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.partHash,o=t.format,s=void 0===o?"blob":o,m({libraryId:r,objectId:n,versionHash:versionHash}),y(i),c=f("qparts",i),e.t0=this.utils,e.t1=s,e.t2=this.HttpClient,e.next=9,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,partHash:i});case 9:return e.t3=e.sent,e.t4=c,e.t5={headers:e.t3,method:"GET",path:e.t4},e.t6=e.t2.Request.call(e.t2,e.t5),e.abrupt("return",e.t0.ResponseToFormat.call(e.t0,e.t1,e.t6));case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}).call(this,r(5).Buffer)},function(e,t,r){(function(e){var r,n,i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,s){"use strict";"object"===o(e)&&"object"===o(e.exports)?e.exports=s():(n=[],void 0===(i="function"==typeof(r=s)?r.apply(t,n):r)||(e.exports=i))}(0,(function(){"use strict";var e=Object.prototype.toString;function t(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function r(e){if(!e)return!0;if(i(e)&&0===e.length)return!0;if("string"!=typeof e){for(var r in e)if(t(e,r))return!1;return!0}return!1}function n(t){return e.call(t)}var i=Array.isArray||function(t){return"[object Array]"===e.call(t)};function a(e){var t=parseInt(e);return t.toString()===e?t:e}function s(e){var s,c,u=function e(t){return Object.keys(e).reduce((function(r,n){return"create"===n||"function"==typeof e[n]&&(r[n]=e[n].bind(e,t)),r}),{})};function f(e,t){if(s(e,t))return e[t]}function l(e,t,r,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if("string"==typeof t)return l(e,t.split(".").map(a),r,n);var i=t[0],o=c(e,i);return 1===t.length?(void 0!==o&&n||(e[i]=r),o):(void 0===o&&("number"==typeof t[1]?e[i]=[]:e[i]={}),l(e[i],t.slice(1),r,n))}return s=(e=e||{}).includeInheritedProps?function(){return!0}:function(e,r){return"number"==typeof r&&Array.isArray(e)||t(e,r)},c=e.includeInheritedProps?function(e,t){"string"!=typeof t&&"number"!=typeof t&&(t=String(t));var r=f(e,t);if("__proto__"===t||"prototype"===t||"constructor"===t&&"function"==typeof r)throw new Error("For security reasons, object's magic properties cannot be set");return r}:function(e,t){return f(e,t)},u.has=function(r,n){if("number"==typeof n?n=[n]:"string"==typeof n&&(n=n.split(".")),!n||0===n.length)return!!r;for(var o=0;o<n.length;o++){var s=a(n[o]);if(!("number"==typeof s&&i(r)&&s<r.length||(e.includeInheritedProps?s in Object(r):t(r,s))))return!1;r=r[s]}return!0},u.ensureExists=function(e,t,r){return l(e,t,r,!0)},u.set=function(e,t,r,n){return l(e,t,r,n)},u.insert=function(e,t,r,n){var o=u.get(e,t);n=~~n,i(o)||u.set(e,t,o=[]),o.splice(n,0,r)},u.empty=function(e,t){var a,c;if(!r(t)&&(null!=e&&(a=u.get(e,t)))){if("string"==typeof a)return u.set(e,t,"");if(function(e){return"boolean"==typeof e||"[object Boolean]"===n(e)}(a))return u.set(e,t,!1);if("number"==typeof a)return u.set(e,t,0);if(i(a))a.length=0;else{if(!function(e){return"object"===o(e)&&"[object Object]"===n(e)}(a))return u.set(e,t,null);for(c in a)s(a,c)&&delete a[c]}}},u.push=function(e,t){var r=u.get(e,t);i(r)||u.set(e,t,r=[]),r.push.apply(r,Array.prototype.slice.call(arguments,2))},u.coalesce=function(e,t,r){for(var n,i=0,o=t.length;i<o;i++)if(void 0!==(n=u.get(e,t[i])))return n;return r},u.get=function(e,t,r){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if(null==e)return r;if("string"==typeof t)return u.get(e,t.split("."),r);var n=a(t[0]),i=c(e,n);return void 0===i?r:1===t.length?i:u.get(e[n],t.slice(1),r)},u.del=function(e,t){if("number"==typeof t&&(t=[t]),null==e)return e;if(r(t))return e;if("string"==typeof t)return u.del(e,t.split("."));var n=a(t[0]);return c(e,n),s(e,n)?1!==t.length?u.del(e[n],t.slice(1)):(i(e)?e.splice(n,1):delete e[n],e):e},u}var c=s();return c.create=s,c.withInheritedProps=s({includeInheritedProps:!0}),c}))}).call(this,r(20)(e))},function(e,t,r){var n=r(25),i=r(55),o=r(26);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=r(77),u=r(116),f=r(399).v4,l=r(78).ValidateParameters,h={AuditContentObject:function(e){return o(n.mark((function t(){var r,o,s,h,d,A,p,g,b,y,v,m,w,I,E,B,C,_,k,S,Q,x,R;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.client,o=e.libraryId,s=e.objectId,h=e.versionHash,d=e.salt,A=e.samples,p=e.live,g=void 0!==p&&p,b=e.authorizationToken,d||(d=r.utils.B64(f())),A||(A=[.33*Math.random(),.33*Math.random()+.33,.33*Math.random()+.66]),A=A.slice(0,3),h&&(s=r.utils.DecodeVersionHash(h).objectId),o){t.next=9;break}return t.next=8,r.ContentObjectLibraryId({objectId:s});case 8:o=t.sent;case 9:return l({libraryId:o,objectId:s,versionHash:h}),y={salt:d,samples:A},g&&(y.now=Date.now()),t.t0=[r.HttpClient.uris[r.HttpClient.uriIndex]],t.t1=i,t.next=16,r.Configuration({configUrl:r.configUrl,clientIP:r.clientIP,region:r.region});case 16:if(t.t2=t.sent.fabricURIs,t.t3=(0,t.t1)(t.t2),v=t.t0.concat.call(t.t0,t.t3).filter((function(e,t,r){return r.indexOf(e)===t})),m=new u({uris:v}),w=c("qlibs",o,"q",h||s,g?"call/live/audit":"audit"),t.t4=m,!b){t.next=26;break}t.t5={Authorization:"Bearer ".concat(b)},t.next=29;break;case 26:return t.next=28,r.authClient.AuthorizationHeader({libraryId:o,objectId:s,versionHash:h});case 28:t.t5=t.sent;case 29:return t.t6=t.t5,t.t7=y,t.t8=w,t.t9={headers:t.t6,queryParams:t.t7,method:"GET",path:t.t8},t.next=35,t.t4.RequestAll.call(t.t4,t.t9);case 35:I=t.sent,C=[],_=a(I),t.prev=38,_.s();case 40:if((k=_.n()).done){t.next=57;break}if(S=k.value,Q=new URL(S.url),x={host:Q.hostname},S.ok){t.next=49;break}x.error=S,x.errorMessage=S.message||JSON.stringify(S),t.next=54;break;case 49:return t.next=51,r.utils.ResponseToJson(S);case 51:R=t.sent,void 0===E?E=R.audit_hash:R.audit_hash!==E?B=!1:void 0===B&&(B=!0),x.audit_hash=R.audit_hash;case 54:C.push(x);case 55:t.next=40;break;case 57:t.next=62;break;case 59:t.prev=59,t.t10=t.catch(38),_.e(t.t10);case 62:return t.prev=62,_.f(),t.finish(62);case 65:return B=B||!1,t.abrupt("return",{verified:B,salt:d,samples:A,audits:C});case 67:case"end":return t.stop()}}),t,null,[[38,59,62,65]])})))()}};e.exports=h},function(e,t,r){var n=r(230),i=r(287)((function(e,t,r,i){n(e,t,r,i)}));e.exports=i},function(e,t,r){var n=r(231),i=r(122),o=r(262),a=r(264),s=r(31),c=r(132),u=r(131);e.exports=function e(t,r,f,l,h){t!==r&&o(r,(function(o,c){if(h||(h=new n),s(o))a(t,r,c,f,e,l,h);else{var d=l?l(u(t,c),o,c+"",t,r,h):void 0;void 0===d&&(d=o),i(t,c,d)}}),c)}},function(e,t,r){var n=r(56),i=r(237),o=r(238),a=r(239),s=r(240),c=r(241);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(57),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(57);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(57);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(57);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(56);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(56),i=r(119),o=r(249);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(80),i=r(245),o=r(31),a=r(247),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,l=u.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:s).test(a(e))}},function(e,t,r){var n=r(120),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,i=r(246),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,t,r){var n=r(34)["__core-js_shared__"];e.exports=n},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(250),i=r(257),o=r(259),a=r(260),s=r(261);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(251),i=r(56),o=r(119);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(252),i=r(253),o=r(254),a=r(255),s=r(256);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(60);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(60),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(60),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},function(e,t,r){var n=r(60);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(61);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(61);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(61);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(61);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},function(e,t,r){var n=r(263)();e.exports=n},function(e,t){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===r(o[c],c,o))break}return t}}},function(e,t,r){var n=r(122),i=r(265),o=r(266),a=r(269),s=r(270),c=r(126),u=r(127),f=r(274),l=r(129),h=r(80),d=r(31),A=r(276),p=r(130),g=r(131),b=r(280);e.exports=function(e,t,r,y,v,m,w){var I=g(e,r),E=g(t,r),B=w.get(E);if(B)n(e,r,B);else{var C=m?m(I,E,r+"",e,t,w):void 0,_=void 0===C;if(_){var k=u(E),S=!k&&l(E),Q=!k&&!S&&p(E);C=E,k||S||Q?u(I)?C=I:f(I)?C=a(I):S?(_=!1,C=i(E,!0)):Q?(_=!1,C=o(E,!0)):C=[]:A(E)||c(E)?(C=I,c(I)?C=b(I):d(I)&&!h(I)||(C=s(E))):_=!1}_&&(w.set(E,C),v(C,E,y,m,w),w.delete(E)),n(e,r,C)}}},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(34),o="object"==n(t)&&t&&!t.nodeType&&t,a=o&&"object"==n(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,c=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=c?c(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(20)(e))},function(e,t,r){var n=r(267);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(268);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},function(e,t,r){var n=r(34).Uint8Array;e.exports=n},function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){var n=r(271),i=r(124),o=r(125);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},function(e,t,r){var n=r(31),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var n=r(59),i=r(46);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},function(e,t,r){var n=r(82),i=r(46);e.exports=function(e){return i(e)&&n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,r){var n=r(59),i=r(124),o=r(46),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}},function(e,t,r){var n=r(59),i=r(128),o=r(46),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(121),o="object"==n(t)&&t&&!t.nodeType&&t,a=o&&"object"==n(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&i.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=c}).call(this,r(20)(e))},function(e,t,r){var n=r(281),i=r(132);e.exports=function(e){return n(e,i(e))}},function(e,t,r){var n=r(282),i=r(81);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],f=o?o(r[u],e[u],u,r,e):void 0;void 0===f&&(f=e[u]),a?i(r,u,f):n(r,u,f)}return r}},function(e,t,r){var n=r(81),i=r(58),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(284),i=r(126),o=r(127),a=r(129),s=r(133),c=r(130),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),f=!r&&i(e),l=!r&&!f&&a(e),h=!r&&!f&&!l&&c(e),d=r||f||l||h,A=d?n(e.length,String):[],p=A.length;for(var g in e)!t&&!u.call(e,g)||d&&("length"==g||l&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,p))||A.push(g);return A}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(31),i=r(125),o=r(286),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){var n=r(288),i=r(295);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var c=r[n];c&&e(t,c,n,a)}return t}))}},function(e,t,r){var n=r(134),i=r(289),o=r(291);e.exports=function(e,t){return o(i(e,t,n),e+"")}},function(e,t,r){var n=r(290),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=r(c),n(e,this,u)}}},function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},function(e,t,r){var n=r(292),i=r(294)(n);e.exports=i},function(e,t,r){var n=r(293),i=r(123),o=r(134),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var r=Date.now;e.exports=function(e){var t=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(58),o=r(82),a=r(133),s=r(31);e.exports=function(e,t,r){if(!s(r))return!1;var c=n(t);return!!("number"==c?o(r)&&a(t,r.length):"string"==c&&t in r)&&i(r[t],e)}},function(e,t,r){(function(t){var n=r(33),i=r(25),o=r(26);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var c=o?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(i,s,c):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}void 0===globalThis.Buffer&&(globalThis.Buffer=r(5).Buffer);var c=r(108),u=r(297),f=r(44);if(globalThis.process||(globalThis.process=r(6)),"undefined"==typeof crypto){var l=r(102);l.getRandomValues=function(e){return l.randomBytes(e.length)},globalThis.crypto=l}var h,d,A,p,g,b={ElvCrypto:(g=o(i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,b.elvCrypto){e.next=8;break}return e.next=4,Promise.resolve().then((function(){return s(r(387))}));case 4:return t=e.sent.default,e.next=7,(new t).init();case 7:b.elvCrypto=e.sent;case 8:return e.abrupt("return",b.elvCrypto);case 11:e.prev=11,e.t0=e.catch(0),console.error("Error initializing ElvCrypto:"),console.error(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,11]])}))),function(){return g.apply(this,arguments)}),EncryptedSize:function(e){var t=Math.floor(e/1e6)*b.EncryptedBlockSize(1e6);return e%1e6!=0&&(t+=b.EncryptedBlockSize(e%1e6)),t},EncryptedBlockSize:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=129,n=608,i=48,o=12*(i-1),a=12*i,s=Math.floor(e/o)*a;return e%o!=0&&(s+=a),t?s+n:s+r},EncryptConk:function(e,r){return o(i.mark((function n(){var o,a,s,c,u,l;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,b.ElvCrypto();case 2:return o=n.sent,r=new Uint8Array(t.from(r.replace("0x",""),"hex")),e=new Uint8Array(t.from(JSON.stringify(e))),n.next=7,o.encryptECIES(e,r);case 7:return a=n.sent,s=a.data,c=a.ephemeralKey,u=a.tag,l=t.concat([t.from(c),t.from(u),t.from(s)]),n.abrupt("return",f.B64(l));case 13:case"end":return n.stop()}}),n)})))()},DecryptCap:function(e,r){return o(i.mark((function n(){var o,a,s,c,u;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,b.ElvCrypto();case 2:return o=n.sent,r=new Uint8Array(t.from(r.replace("0x",""),"hex")),e=t.from(e,"base64"),a=e.slice(0,65),s=e.slice(65,81),c=e.slice(81),u=o.decryptECIES(new Uint8Array(c),r,new Uint8Array(a),new Uint8Array(s)),n.abrupt("return",JSON.parse(t.from(u).toString()));case 10:case"end":return n.stop()}}),n)})))()},GeneratePrimaryConk:function(e){return o(i.mark((function r(){var n,o,a,s,u,f,l;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.spaceId,o=e.objectId,r.next=3,b.ElvCrypto();case 3:return a=r.sent,s=a.generatePrimaryKeys(),u=s.secretKey,f=s.publicKey,l=a.generateSymmetricKey().key,r.abrupt("return",{symm_key:"kpsy".concat(c.encode(t.from(l))),secret_key:"kpsk".concat(c.encode(t.from(u))),public_key:"kppk".concat(c.encode(t.from(f))),sid:n,qid:o});case 7:case"end":return r.stop()}}),r)})))()},GenerateTargetConk:function(){return o(i.mark((function e(){var r,n,o,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.ElvCrypto();case 2:return r=e.sent,n=r.generateTargetKeys(),o=n.secretKey,a=n.publicKey,e.abrupt("return",{secret_key:"kpsk".concat(c.encode(t.from(o))),public_key:"ktpk".concat(c.encode(t.from(a)))});case 5:case"end":return e.stop()}}),e)})))()},CapToConk:function(e){var t=function(e){return new Uint8Array(c.decode(e.slice(4)))};return{symmetricKey:t(e.symm_key),secretKey:t(e.secret_key),publicKey:t(e.public_key)}},EncryptionContext:function(e){return o(i.mark((function t(){var r,n,o,a,s,c,u;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.ElvCrypto();case 2:return r=t.sent,n=b.CapToConk(e),o=n.symmetricKey,a=n.secretKey,(s=n.publicKey).length===r.PRIMARY_PK_KEY_SIZE?(u=r.CRYPTO_TYPE_PRIMARY,c=r.newPrimaryContext(s,a,o)):(u=r.CRYPTO_TYPE_TARGET,c=r.newTargetDecryptionContext(a,o)),t.abrupt("return",{context:c,type:u});case 6:case"end":return t.stop()}}),t)})))()},Encrypt:(p=o(i.mark((function e(r,n){var o,a,s,c,u;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.OpenEncryptionStream(r);case 2:if(o=e.sent,t.isBuffer(n)||n instanceof ArrayBuffer){e.next=9;break}return e.t0=t,e.next=7,new Response(n).arrayBuffer();case 7:e.t1=e.sent,n=e.t0.from.call(e.t0,e.t1);case 9:for(a=new Uint8Array(n),s=0;s<a.length;s+=1e6)c=Math.min(a.length,s+1e6),o.write(a.slice(s,c));return o.end(),u=[],e.next=15,new Promise((function(e,t){o.on("data",(function(e){u.push(e)})).on("finish",(function(){e()})).on("error",(function(e){t(e)}))}));case 15:return e.abrupt("return",t.concat(u));case 16:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)}),OpenEncryptionStream:(A=o(i.mark((function e(t){var r,n,o,a,s;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.ElvCrypto();case 2:return r=e.sent,e.next=5,b.EncryptionContext(t);case 5:return n=e.sent,o=n.context,a=new u.PassThrough,s=r.createCipher(o),e.abrupt("return",a.pipe(s).on("finish",(function(){o.free()})).on("error",(function(e){throw Error(e)})));case 10:case"end":return e.stop()}}),e)}))),function(e){return A.apply(this,arguments)}),Decrypt:(d=o(i.mark((function e(r,n){var o,a,s,c,u;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.OpenDecryptionStream(r);case 2:for(o=e.sent,a=new Uint8Array(n),s=0;s<a.length;s+=1e6)c=Math.min(a.length,s+1e6),o.write(a.slice(s,c));return o.end(),u=[],e.next=9,new Promise((function(e,t){o.on("data",(function(e){u.push(e)})).on("finish",(function(){e()})).on("error",(function(e){t(e)}))}));case 9:return e.abrupt("return",t.concat(u));case 10:case"end":return e.stop()}}),e)}))),function(e,t){return d.apply(this,arguments)}),OpenDecryptionStream:(h=o(i.mark((function e(t){var r,n,o,a,s,c;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.ElvCrypto();case 2:return r=e.sent,e.next=5,b.EncryptionContext(t);case 5:return n=e.sent,o=n.context,a=n.type,s=new u.PassThrough,c=r.createDecipher(a,o),e.abrupt("return",s.pipe(c).on("finish",(function(){o.free()})).on("error",(function(e){throw Error(e)})));case 11:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)})};e.exports=b}).call(this,r(5).Buffer)},function(e,t,r){"use strict";var n=r(135),i=r(140),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:function(){return i}}),e.exports.Stream=n.Stream,e.exports.default=e.exports},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(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,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,s,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&i.call(E,s)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,o(B,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,u,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,u,"Generator"),l(B,s,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)}))}}function d(e){var t={},r=!1;function n(t,n){return r=!0,{done:!1,value:new v(n=new Promise((function(r){r(e[t](n))})),1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}function A(e){var t,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new p(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function p(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(p=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new p(e)}function g(e){return new v(e,0)}function b(e){return function(){return new y(e.apply(this,arguments))}}function y(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof v;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}i(o.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function v(e,t){this.v=e,this.k=t}y.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},y.prototype.next=function(e){return this._invoke("next",e)},y.prototype.throw=function(e){return this._invoke("throw",e)},y.prototype.return=function(e){return this._invoke("return",e)};var m=globalThis.AbortController||r(47).AbortController,w=r(12),I=w.codes,E=I.ERR_INVALID_ARG_VALUE,B=I.ERR_INVALID_ARG_TYPE,C=I.ERR_MISSING_ARGS,_=I.ERR_OUT_OF_RANGE,k=w.AbortError,S=r(48),Q=S.validateAbortSignal,x=S.validateInteger,R=S.validateObject,O=r(7).Symbol("kWeak"),D=r(7).Symbol("kResistStopPropagation"),j=r(27).finished,P=r(136),M=r(63).addAbortSignalNoValidate,N=r(23),T=N.isWritable,L=N.isNodeStream,F=r(11).deprecate,U=r(7),G=U.ArrayPrototypePush,H=U.Boolean,q=U.MathFloor,K=U.Number,Y=U.NumberIsNaN,J=U.Promise,z=U.PromiseReject,W=U.PromiseResolve,V=U.PromisePrototypeThen,Z=U.Symbol,X=Z("kEmpty"),$=Z("kEof");function ee(e,t){if("function"!=typeof e)throw new B("fn",["Function","AsyncFunction"],e);null!=t&&R(t,"options"),null!=(null==t?void 0:t.signal)&&Q(t.signal,"options.signal");var n=1;null!=(null==t?void 0:t.concurrency)&&(n=q(t.concurrency));var i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=q(t.highWaterMark)),x(n,"options.concurrency",1),x(i,"options.highWaterMark",0),i+=n,function(){var o=b(f().mark((function o(){var a,s,c,u,l,d,p,b,y,v,m,w,I,E;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:I=function(){return(I=h(f().mark((function t(){var r,o,h,g,m,w,I;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,r=!1,o=!1,t.prev=3,g=A(s);case 5:return t.next=7,g.next();case 7:if(!(r=!(m=t.sent).done)){t.next=33;break}if(w=m.value,!p){t.next=11;break}return t.abrupt("return");case 11:if(!a.aborted){t.next=13;break}throw new k;case 13:if(t.prev=13,(w=e(w,u))!==X){t.next=17;break}return t.abrupt("continue",30);case 17:w=W(w),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(13),w=z(t.t0);case 23:if(b+=1,V(w,v,y),c.push(w),l&&(l(),l=null),p||!(c.length>=i||b>=n)){t.next=30;break}return t.next=30,new J((function(e){d=e}));case 30:r=!1,t.next=5;break;case 33:t.next=39;break;case 35:t.prev=35,t.t1=t.catch(3),o=!0,h=t.t1;case 39:if(t.prev=39,t.prev=40,!r||null==g.return){t.next=44;break}return t.next=44,g.return();case 44:if(t.prev=44,!o){t.next=47;break}throw h;case 47:return t.finish(44);case 48:return t.finish(39);case 49:c.push($),t.next=57;break;case 52:t.prev=52,t.t2=t.catch(0),I=z(t.t2),V(I,v,y),c.push(I);case 57:return t.prev=57,p=!0,l&&(l(),l=null),t.finish(57);case 61:case"end":return t.stop()}}),t,null,[[0,52,57,61],[3,35,39,49],[13,20],[40,,44,48]])})))).apply(this,arguments)},w=function(){return I.apply(this,arguments)},m=function(){d&&!p&&b<n&&c.length<i&&(d(),d=null)},v=function(){b-=1,m()},y=function(){p=!0,v()},a=r(11).AbortSignalAny([null==t?void 0:t.signal].filter(H)),s=this,c=[],u={signal:a},p=!1,b=0,w(),o.prev=12;case 13:0;case 14:if(!(c.length>0)){o.next=29;break}return o.next=17,g(c[0]);case 17:if((E=o.sent)!==$){o.next=20;break}return o.abrupt("return");case 20:if(!a.aborted){o.next=22;break}throw new k;case 22:if(E===X){o.next=25;break}return o.next=25,E;case 25:c.shift(),m(),o.next=14;break;case 29:return o.next=31,g(new J((function(e){l=e})));case 31:o.next=13;break;case 33:return o.prev=33,p=!0,d&&(d(),d=null),o.finish(33);case 37:case"end":return o.stop()}}),o,this,[[12,,33,37]])})));return function(){return o.apply(this,arguments)}}().call(this)}function te(e){return re.apply(this,arguments)}function re(){return(re=h(f().mark((function e(t){var r,n,i,o,a,s,c=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=c.length>1&&void 0!==c[1]?c[1]:void 0,n=!1,i=!1,e.prev=3,a=A(ae.call(this,t,r));case 5:return e.next=7,a.next();case 7:if(!(n=!(s=e.sent).done)){e.next=13;break}return s.value,e.abrupt("return",!0);case 10:n=!1,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),i=!0,o=e.t0;case 19:if(e.prev=19,e.prev=20,!n||null==a.return){e.next=24;break}return e.next=24,a.return();case 24:if(e.prev=24,!i){e.next=27;break}throw o;case 27:return e.finish(24);case 28:return e.finish(19);case 29:return e.abrupt("return",!1);case 30:case"end":return e.stop()}}),e,this,[[3,15,19,29],[20,,24,28]])})))).apply(this,arguments)}function ne(){return(ne=h(f().mark((function e(t){var r,n=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>1&&void 0!==n[1]?n[1]:void 0,"function"==typeof t){e.next=3;break}throw new B("fn",["Function","AsyncFunction"],t);case 3:return e.next=5,te.call(this,h(f().mark((function e(){var r=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,r);case 2:return e.abrupt("return",!e.sent);case 3:case"end":return e.stop()}}),e)}))),r);case 5:return e.abrupt("return",!e.sent);case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ie(){return(ie=h(f().mark((function e(t,r){var n,i,o,a,s,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,i=!1,e.prev=2,a=A(ae.call(this,t,r));case 4:return e.next=6,a.next();case 6:if(!(n=!(s=e.sent).done)){e.next=12;break}return c=s.value,e.abrupt("return",c);case 9:n=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(2),i=!0,o=e.t0;case 18:if(e.prev=18,e.prev=19,!n||null==a.return){e.next=23;break}return e.next=23,a.return();case 23:if(e.prev=23,!i){e.next=26;break}throw o;case 26:return e.finish(23);case 27:return e.finish(18);case 28:return e.abrupt("return",void 0);case 29:case"end":return e.stop()}}),e,this,[[2,14,18,28],[19,,23,27]])})))).apply(this,arguments)}function oe(){return(oe=h(f().mark((function e(t,r){var n,i,o,a,s,c,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return(i=h(f().mark((function e(r,n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(r,n);case 2:return e.abrupt("return",X);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)},n=function(e,t){return i.apply(this,arguments)},"function"==typeof t){e.next=4;break}throw new B("fn",["Function","AsyncFunction"],t);case 4:o=!1,a=!1,e.prev=6,c=A(ee.call(this,n,r));case 8:return e.next=10,c.next();case 10:if(!(o=!(u=e.sent).done)){e.next=16;break}u.value;case 13:o=!1,e.next=8;break;case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(6),a=!0,s=e.t0;case 22:if(e.prev=22,e.prev=23,!o||null==c.return){e.next=27;break}return e.next=27,c.return();case 27:if(e.prev=27,!a){e.next=30;break}throw s;case 30:return e.finish(27);case 31:return e.finish(22);case 32:case"end":return e.stop()}}),e,this,[[6,18,22,32],[23,,27,31]])})))).apply(this,arguments)}function ae(e,t){if("function"!=typeof e)throw new B("fn",["Function","AsyncFunction"],e);function r(){return(r=h(f().mark((function t(r,n){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(r,n);case 2:if(!t.sent){t.next=4;break}return t.abrupt("return",r);case 4:return t.abrupt("return",X);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return ee.call(this,(function(e,t){return r.apply(this,arguments)}),t)}var se=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,["reduce"])).message="Reduce of an empty stream requires an initial value",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,n&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(C);function ce(){return(ce=h(f().mark((function e(t,r,n){var o,a,s,c,u,l,h,d,p,g,b,y,v,w,I=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof t){e.next=2;break}throw new B("reducer",["Function","AsyncFunction"],t);case 2:if(null!=n&&R(n,"options"),null!=(null==n?void 0:n.signal)&&Q(n.signal,"options.signal"),a=I.length>1,null==n||null===(o=n.signal)||void 0===o||!o.aborted){e.next=11;break}return s=new k(void 0,{cause:n.signal.reason}),this.once("error",(function(){})),e.next=10,j(this.destroy(s));case 10:throw s;case 11:c=new m,u=c.signal,null!=n&&n.signal&&(l=i(i({once:!0},O,this),D,!0),n.signal.addEventListener("abort",(function(){return c.abort()}),l)),h=!1,e.prev=15,d=!1,p=!1,e.prev=18,b=A(this);case 20:return e.next=22,b.next();case 22:if(!(d=!(y=e.sent).done)){e.next=38;break}if(v=y.value,h=!0,null==n||null===(w=n.signal)||void 0===w||!w.aborted){e.next=27;break}throw new k;case 27:if(a){e.next=32;break}r=v,a=!0,e.next=35;break;case 32:return e.next=34,t(r,v,{signal:u});case 34:r=e.sent;case 35:d=!1,e.next=20;break;case 38:e.next=44;break;case 40:e.prev=40,e.t0=e.catch(18),p=!0,g=e.t0;case 44:if(e.prev=44,e.prev=45,!d||null==b.return){e.next=49;break}return e.next=49,b.return();case 49:if(e.prev=49,!p){e.next=52;break}throw g;case 52:return e.finish(49);case 53:return e.finish(44);case 54:if(h||a){e.next=56;break}throw new se;case 56:return e.prev=56,c.abort(),e.finish(56);case 59:return e.abrupt("return",r);case 60:case"end":return e.stop()}}),e,this,[[15,,56,59],[18,40,44,54],[45,,49,53]])})))).apply(this,arguments)}function ue(){return(ue=h(f().mark((function e(t){var r,n,i,o,a,s,c,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=t&&R(t,"options"),null!=(null==t?void 0:t.signal)&&Q(t.signal,"options.signal"),r=[],n=!1,i=!1,e.prev=5,a=A(this);case 7:return e.next=9,a.next();case 9:if(!(n=!(s=e.sent).done)){e.next=17;break}if(c=s.value,null==t||null===(u=t.signal)||void 0===u||!u.aborted){e.next=13;break}throw new k(void 0,{cause:t.signal.reason});case 13:G(r,c);case 14:n=!1,e.next=7;break;case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(5),i=!0,o=e.t0;case 23:if(e.prev=23,e.prev=24,!n||null==a.return){e.next=28;break}return e.next=28,a.return();case 28:if(e.prev=28,!i){e.next=31;break}throw o;case 31:return e.finish(28);case 32:return e.finish(23);case 33:return e.abrupt("return",r);case 34:case"end":return e.stop()}}),e,this,[[5,19,23,33],[24,,28,32]])})))).apply(this,arguments)}function fe(e){if(e=K(e),Y(e))return 0;if(e<0)throw new _("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:F((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return null!=e&&R(e,"options"),null!=(null==e?void 0:e.signal)&&Q(e.signal,"options.signal"),function(){var t=b(f().mark((function t(){var r,n,i,o,a,s,c,u;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=0,n=!1,i=!1,t.prev=3,a=A(this);case 5:return t.next=7,g(a.next());case 7:if(!(n=!(s=t.sent).done)){t.next=16;break}if(c=s.value,null==e||null===(u=e.signal)||void 0===u||!u.aborted){t.next=11;break}throw new k({cause:e.signal.reason});case 11:return t.next=13,[r++,c];case 13:n=!1,t.next=5;break;case 16:t.next=22;break;case 18:t.prev=18,t.t0=t.catch(3),i=!0,o=t.t0;case 22:if(t.prev=22,t.prev=23,!n||null==a.return){t.next=27;break}return t.next=27,g(a.return());case 27:if(t.prev=27,!i){t.next=30;break}throw o;case 30:return t.finish(27);case 31:return t.finish(22);case 32:case"end":return t.stop()}}),t,this,[[3,18,22,32],[23,,27,31]])})));return function(){return t.apply(this,arguments)}}().call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return null!=t&&R(t,"options"),null!=(null==t?void 0:t.signal)&&Q(t.signal,"options.signal"),e=fe(e),function(){var r=b(f().mark((function r(){var n,i,o,a,s,c,u,l;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null==t||null===(n=t.signal)||void 0===n||!n.aborted){r.next=2;break}throw new k;case 2:i=!1,o=!1,r.prev=4,s=A(this);case 6:return r.next=8,g(s.next());case 8:if(!(i=!(c=r.sent).done)){r.next=18;break}if(u=c.value,null==t||null===(l=t.signal)||void 0===l||!l.aborted){r.next=12;break}throw new k;case 12:if(!(e--<=0)){r.next=15;break}return r.next=15,u;case 15:i=!1,r.next=6;break;case 18:r.next=24;break;case 20:r.prev=20,r.t0=r.catch(4),o=!0,a=r.t0;case 24:if(r.prev=24,r.prev=25,!i||null==s.return){r.next=29;break}return r.next=29,g(s.return());case 29:if(r.prev=29,!o){r.next=32;break}throw a;case 32:return r.finish(29);case 33:return r.finish(24);case 34:case"end":return r.stop()}}),r,this,[[4,20,24,34],[25,,29,33]])})));return function(){return r.apply(this,arguments)}}().call(this)},filter:ae,flatMap:function(e,t){var r=ee.call(this,e,t);return function(){var e=b(f().mark((function e(){var t,n,i,o,a,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!1,n=!1,e.prev=2,o=A(r);case 4:return e.next=6,g(o.next());case 6:if(!(t=!(a=e.sent).done)){e.next=12;break}return s=a.value,e.delegateYield(d(A(s)),"t0",9);case 9:t=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),n=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!t||null==o.return){e.next=23;break}return e.next=23,g(o.return());case 23:if(e.prev=23,!n){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(){return e.apply(this,arguments)}}().call(this)},map:ee,take:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return null!=t&&R(t,"options"),null!=(null==t?void 0:t.signal)&&Q(t.signal,"options.signal"),e=fe(e),function(){var r=b(f().mark((function r(){var n,i,o,a,s,c,u,l;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null==t||null===(n=t.signal)||void 0===n||!n.aborted){r.next=2;break}throw new k;case 2:i=!1,o=!1,r.prev=4,s=A(this);case 6:return r.next=8,g(s.next());case 8:if(!(i=!(c=r.sent).done)){r.next=20;break}if(u=c.value,null==t||null===(l=t.signal)||void 0===l||!l.aborted){r.next=12;break}throw new k;case 12:if(!(e-- >0)){r.next=15;break}return r.next=15,u;case 15:if(!(e<=0)){r.next=17;break}return r.abrupt("return");case 17:i=!1,r.next=6;break;case 20:r.next=26;break;case 22:r.prev=22,r.t0=r.catch(4),o=!0,a=r.t0;case 26:if(r.prev=26,r.prev=27,!i||null==s.return){r.next=31;break}return r.next=31,g(s.return());case 31:if(r.prev=31,!o){r.next=34;break}throw a;case 34:return r.finish(31);case 35:return r.finish(26);case 36:case"end":return r.stop()}}),r,this,[[4,22,26,36],[27,,31,35]])})));return function(){return r.apply(this,arguments)}}().call(this)},compose:function(e,t){if(null!=t&&R(t,"options"),null!=(null==t?void 0:t.signal)&&Q(t.signal,"options.signal"),L(e)&&!T(e))throw new E("stream",e,"must be writable");var r=P(this,e);return null!=t&&t.signal&&M(t.signal,r),r}},e.exports.promiseReturningOperators={every:function(e){return ne.apply(this,arguments)},forEach:function(e,t){return oe.apply(this,arguments)},reduce:function(e,t,r){return ce.apply(this,arguments)},toArray:function(e){return ue.apply(this,arguments)},some:te,find:function(e,t){return ie.apply(this,arguments)}}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&i.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,o(B,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function c(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,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var f=r(7),l=f.StringPrototypeSlice,h=f.SymbolIterator,d=f.TypedArrayPrototypeSet,A=f.Uint8Array,p=r(5).Buffer,g=r(11).inspect;e.exports=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0},(t=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 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;null!==(t=t.next);)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return p.alloc(0);for(var t=p.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(t,r.data,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r=this.head.data;if(e<r.length){var n=r.slice(0,e);return this.head.data=r.slice(e),n}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}},{key:"first",value:function(){return this.head.data}},{key:h,value:s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.data;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"_getString",value:function(e){var t="",r=this.head,n=0;do{var i=r.data;if(!(e>i.length)){e===i.length?(t+=i,++n,r.next?this.head=r.next:this.head=this.tail=null):(t+=l(i,0,e),this.head=r,r.data=l(i,e));break}t+=i,e-=i.length,++n}while(null!==(r=r.next));return this.length-=n,t}},{key:"_getBuffer",value:function(e){var t=p.allocUnsafe(e),r=e,n=this.head,i=0;do{var o=n.data;if(!(e>o.length)){e===o.length?(d(t,o,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(d(t,new A(o.buffer,o.byteOffset,e),r-e),this.head=n,n.data=o.slice(e));break}d(t,o,r-e),e-=o.length,++i}while(null!==(n=n.next));return this.length-=i,t}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(e,t){return g(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},function(e,t,r){var n=r(5),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var A="suspendedStart",p="executing",g="completed",b={};function y(){}function v(){}function m(){}var w={};l(w,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(O([])));E&&E!==r&&o.call(E,c)&&(w=E);var B=m.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,a,s,c){var u=d(e[i],e,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var i=A;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return v.prototype=m,a(B,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,f,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,f,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new _(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(B),l(B,f,"Generator"),l(B,c,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}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,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function u(e,t,r){return t=f(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof d;Promise.resolve(s?a.v:a).then((function(r){if(s){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}i(o.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t){this.v=e,this.k=t}h.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},h.prototype.next=function(e){return this._invoke("next",e)},h.prototype.throw=function(e){return this._invoke("throw",e)},h.prototype.return=function(e){return this._invoke("return",e)};var A=r(6),p=r(5),g=r(23),b=g.isReadable,y=g.isWritable,v=g.isIterable,m=g.isNodeStream,w=g.isReadableNodeStream,I=g.isWritableNodeStream,E=g.isDuplexNodeStream,B=g.isReadableStream,C=g.isWritableStream,_=r(27),k=r(12),S=k.AbortError,Q=k.codes,x=Q.ERR_INVALID_ARG_TYPE,R=Q.ERR_INVALID_RETURN_VALUE,O=r(35).destroyer,D=r(24),j=r(62),P=r(85),M=r(11).createDeferredPromise,N=r(137),T=globalThis.Blob||p.Blob,L=void 0!==T?function(e){return e instanceof T}:function(e){return!1},F=globalThis.AbortController||r(47).AbortController,U=r(7).FunctionPrototypeCall,G=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=u(this,t,[e]),!1===(null==e?void 0:e.readable)&&(r._readableState.readable=!1,r._readableState.ended=!0,r._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(r._writableState.writable=!1,r._writableState.ending=!0,r._writableState.ended=!0,r._writableState.finished=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,n&&s(r.prototype,n),i&&s(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(D);function H(e){var t,r,n,i,o,a=e.readable&&"function"!=typeof e.readable.read?j.wrap(e.readable):e.readable,s=e.writable,c=!!b(a),u=!!y(s);function f(e){var t=i;i=null,t?t(e):e&&o.destroy(e)}return o=new G({readableObjectMode:!(null==a||!a.readableObjectMode),writableObjectMode:!(null==s||!s.writableObjectMode),readable:c,writable:u}),u&&(_(s,(function(e){u=!1,e&&O(a,e),f(e)})),o._write=function(e,r,n){s.write(e,r)?n():t=n},o._final=function(e){s.end(),r=e},s.on("drain",(function(){if(t){var e=t;t=null,e()}})),s.on("finish",(function(){if(r){var e=r;r=null,e()}}))),c&&(_(a,(function(e){c=!1,e&&O(a,e),f(e)})),a.on("readable",(function(){if(n){var e=n;n=null,e()}})),a.on("end",(function(){o.push(null)})),o._read=function(){for(;;){var e=a.read();if(null===e)return void(n=o._read);if(!o.push(e))return}}),o._destroy=function(e,o){e||null===i||(e=new S),n=null,t=null,r=null,null===i?o(e):(i=o,O(s,e),O(a,e))},o}e.exports=function e(t,r){if(E(t))return t;if(w(t))return H({readable:t});if(I(t))return H({writable:t});if(m(t))return H({writable:!1,readable:!1});if(B(t))return H({readable:j.fromWeb(t)});if(C(t))return H({writable:P.fromWeb(t)});if("function"==typeof t){var o=function(e){var t=M(),r=t.promise,n=t.resolve,o=new F,a=o.signal;return{value:e((s=i().mark((function e(){var t,o,s,c,u,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r,r=null,e.next=5,new d(t,0);case 5:if(o=e.sent,s=o.chunk,c=o.done,u=o.cb,A.nextTick(u),!c){e.next=12;break}return e.abrupt("return");case 12:if(!a.aborted){e.next=14;break}throw new S(void 0,{cause:a.reason});case 14:return f=M(),r=f.promise,n=f.resolve,e.next=19,s;case 19:e.next=0;break;case 21:case"end":return e.stop()}}),e)})),function(){return new h(s.apply(this,arguments))})(),{signal:a}),write:function(e,t,r){var i=n;n=null,i({chunk:e,done:!1,cb:r})},final:function(e){var t=n;n=null,t({done:!0,cb:e})},destroy:function(e,t){o.abort(),t(e)}};var s}(t),s=o.value,c=o.write,u=o.final,f=o.destroy;if(v(s))return N(G,s,{objectMode:!0,write:c,final:u,destroy:f});var l=null==s?void 0:s.then;if("function"==typeof l){var p,g=U(l,s,(function(e){if(null!=e)throw new R("nully","body",e)}),(function(e){O(p,e)}));return p=new G({objectMode:!0,readable:!1,write:c,final:function(e){u(a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g;case 3:A.nextTick(e,null),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),A.nextTick(e,t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])}))))},destroy:f})}throw new R("Iterable, AsyncIterable or AsyncFunction",r,s)}if(L(t))return e(t.arrayBuffer());if(v(t))return N(G,t,{objectMode:!0,writable:!1});if(B(null==t?void 0:t.readable)&&C(null==t?void 0:t.writable))return G.fromWeb(t);if("object"===n(null==t?void 0:t.writable)||"object"===n(null==t?void 0:t.readable))return H({readable:null!=t&&t.readable?w(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?I(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});var b,y=null==t?void 0:t.then;if("function"==typeof y)return U(y,t,(function(e){null!=e&&b.push(e),b.push(null)}),(function(e){O(b,e)})),b=new G({objectMode:!0,writable:!1,read:function(){}});throw new x(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,r){"use strict";var n=r(88).Buffer,i=r(305);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){"use strict";e.exports=o;var n=r(146),i=Object.create(r(22));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(89)},function(e,t,r){e.exports=r(32)},function(e,t,r){e.exports=r(87).Transform},function(e,t,r){e.exports=r(87).PassThrough},function(e,t,r){var n=r(3),i=r(37),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var h=0;h<80;++h){var d=~~(h/20),A=0|((t=n)<<5|t>>>27)+f(d,i,o,s)+c+r[h]+a[d];c=s,s=o,o=u(i),i=n,n=A}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(3),i=r(37),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var A=~~(d/20),p=u(n)+l(A,i,o,s)+c+r[d]+a[A]|0;c=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(3),i=r(147),o=r(37),a=r(4).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,r){var n=r(3),i=r(148),o=r(37),a=r(4).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,r){"use strict";var n=r(3),i=r(4).Buffer,o=r(30),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,r){"use strict";e.exports=r(151)},function(e,t,r){(function(t){var n,i,o=r(4).Buffer,a=r(153),s=r(154),c=r(155),u=r(156),f=t.crypto&&t.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function d(){return i||(i=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function A(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,r,i,p,g,b){"function"==typeof g&&(b=g,g=void 0);var y=l[(g=g||"sha1").toLowerCase()];if(y&&"function"==typeof t.Promise){if(a(i,p),e=u(e,s,"Password"),r=u(r,s,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){d()((function(){t(null,e)}))}),(function(e){d()((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var r=A(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=r,r}(y).then((function(t){return t?A(e,r,i,p,y):c(e,r,i,p,g)})),b)}else d()((function(){var t;try{t=c(e,r,i,p,g)}catch(e){return b(e)}b(null,t)}))}}).call(this,r(9))},function(e,t,r){var n=r(319),i=r(94),o=r(95),a=r(332),s=r(66);function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){var n=r(30),i=r(320),o=r(3),a=r(4).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=i.create({key:o,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,o(c,n),c.prototype._update=function(e){return a.from(this._des.update(e))},c.prototype._final=function(){return a.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(157),t.Cipher=r(93),t.DES=r(158),t.CBC=r(321),t.EDE=r(322)},function(e,t,r){"use strict";var n=r(14),i=r(3),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,r){"use strict";var n=r(14),i=r(3),o=r(93),a=r(158);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},function(e,t,r){var n=r(95),i=r(162),o=r(4).Buffer,a=r(163),s=r(30),c=r(65),u=r(66);function f(e,t,r){s.call(this),this._cache=new h,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function d(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new f(s.module,t,r)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=d,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return d(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(50);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){var n=r(4).Buffer,i=r(50);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},function(e,t,r){var n=r(4).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){var n=r(4).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){(function(e){var n=r(50);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r(5).Buffer)},function(e,t,r){var n=r(4).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(162),i=r(4).Buffer,o=r(95),a=r(163),s=r(30),c=r(65),u=r(66);function f(e,t,r){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new f(s.module,t,r)}r(3)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(164),i=r(335),o=r(336);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,c){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,c)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(5).Buffer)},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){(function(t){var n=r(2),i=new(r(165)),o=new n(24),a=new n(11),s=new n(10),c=new n(3),u=new n(7),f=r(164),l=r(36);function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=p;var A={};function p(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in A)return A[n];var l,h=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!i.test(e))return h+=1,h+="02"===r||"05"===r?8:4,A[n]=h,h;switch(i.test(e.shrn(1))||(h+=2),r){case"02":e.mod(o).cmp(a)&&(h+=8);break;case"05":(l=e.mod(s)).cmp(c)&&l.cmp(u)&&(h+=8);break;default:h+=4}return A[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},p.prototype.getPublicKey=function(e){return g(this._pub,e)},p.prototype.getPrivateKey=function(e){return g(this._priv,e)},p.prototype.getPrime=function(e){return g(this.__prime,e)},p.prototype.getGenerator=function(e){return g(this._gen,e)},p.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(5).Buffer)},function(e,t,r){"use strict";var n=r(4).Buffer,i=r(49),o=r(338),a=r(3),s=r(344),c=r(369),u=r(151);function f(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new f(e)}function d(e){return new l(e)}Object.keys(u).forEach((function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},l.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return c(i,o,e,this._signType,this._tag)},e.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},function(e,t,r){(t=e.exports=r(166)).Stream=t,t.Readable=t,t.Writable=r(169),t.Duplex=r(38),t.Transform=r(170),t.PassThrough=r(343)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,r){"use strict";var n=r(96).Buffer,i=r(342);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){"use strict";e.exports=o;var n=r(170),i=Object.create(r(22));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n=r(4).Buffer,i=r(149),o=r(97),a=r(171).ec,s=r(2),c=r(68),u=r(178);function f(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,c=function(e,t){e=(e=l(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),u=n.alloc(s);u.fill(1);var f=n.alloc(s);return f=i(o,f).update(u).update(n.from([0])).update(e).update(c).digest(),u=i(o,f).update(u).digest(),{k:f=i(o,f).update(u).update(n.from([1])).update(e).update(c).digest(),v:u=i(o,f).update(u).digest()}}function l(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function h(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=l(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function d(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,A){var p=c(t);if(p.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=u[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,p)}if("dsa"===p.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,o=t.params.priv_key,a=t.params.p,c=t.params.q,u=t.params.g,A=new s(0),p=l(e,c).mod(c),g=!1,b=f(o,c,e,r);for(;!1===g;)i=h(c,b,r),A=d(u,i,a,c),0===(g=i.invm(c).imul(p.add(o.mul(A))).mod(c)).cmpn(0)&&(g=!1,A=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(A,g)}(e,p,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==t.padding&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=n.concat([A,e]);for(var g=p.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var y=-1;++y<e.length;)b.push(e[y]);return o(b,p)},e.exports.getKey=f,e.exports.makeKey=h},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.5","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(e,t,r){"use strict";var n=r(15),i=r(2),o=r(3),a=r(67),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),A=new i(1),p=new i(0),g=new i(0),b=new i(1),y=0;0!==h.cmpn(0);){var v=d.div(h);u=d.sub(v.mul(h)),f=g.sub(v.mul(A));var m=b.sub(v.mul(p));if(!n&&u.cmp(l)<0)t=c.neg(),r=A,n=u.neg(),o=f;else if(n&&2==++y)break;c=u,d=h,h=u,g=A,A=f,b=p,p=m}a=u.neg(),s=f;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return u},o(u,a.BasePoint),c.prototype.point=function(e,t,r){return new u(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),l=n.redMul(u),h=c.redSqr().redIAdd(f).redISub(l).redISub(l),d=c.redMul(l.redISub(h)).redISub(o.redMul(f)),A=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,A)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=r.redMul(c),l=s.redSqr().redIAdd(u).redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul(u)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=u.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(c)),A=o.redMul(l),p=d.redSqr().redISub(A.redAdd(A)),g=A.redISub(p),b=d.redMul(g);b=b.redIAdd(b).redISub(h);var y=u.redMul(s);t+1<e&&(c=c.redMul(h)),o=p,s=y,u=b}return this.curve.jpoint(o,u.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var A=f.redAdd(f).redIAdd(f),p=A.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=p.redISub(d).redISub(d),t=A.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var A=h.redIAdd(h),p=(A=A.redIAdd(A)).redAdd(A);e=d.redSqr().redISub(p),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(A.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),f=s.redSqr().redISub(u.redAdd(u)),l=u.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(l).redISub(h),A=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,A)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),f=t.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,h,d)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(67),a=r(15);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(15),i=r(2),o=r(3),a=r(67),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(c,u,l,f)},u.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=u.redMul(n.redSub(c)),r=u.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),f=s.redMul(c),l=o.redMul(c),h=a.redMul(s);return this.curve.point(u,f,h,l)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(c).redMul(f);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(l,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(2),o=r(173),a=r(15),s=r(99),c=r(51),u=a.assert,f=r(351),l=r(352);function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(u(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=h,h.prototype.keyPair=function(e){return new f(this,e)},h.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||c(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,r,a){"object"===n(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),c=t.getPrivate().toArray("be",s),u=e.toArray("be",s),f=new o({hash:this.hash,entropy:c,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var A=a.k?a.k(d):new i(f.generate(this.n.byteLength()));if(!((A=this._truncateToN(A,!0)).cmpn(1)<=0||A.cmp(h)>=0)){var p=this.g.mul(A);if(!p.isInfinity()){var g=p.getX(),b=g.umod(this.n);if(0!==b.cmpn(0)){var y=A.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==g.cmp(b)?2:0);return a.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new l({r:b,s:y,recoveryParam:v})}}}}}},h.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(e,t,r,n){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,n);var o=this.n,a=new i(e),s=t.r,c=t.s,f=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var d=t.r.invm(o),A=o.sub(a).mul(d).umod(o),p=c.mul(d).umod(o);return this.g.mulAdd(A,s,p)},h.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(2),i=r(15).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(2),i=r(15),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=c(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(u),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(8),i=r(99),o=r(15),a=o.assert,s=o.parseBytes,c=r(354),u=r(355);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(15),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(2),o=r(15),a=o.assert,s=o.cachedProperty,c=o.parseBytes;function u(e,t){this.eddsa=e,"object"!==n(t)&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},function(e,t,r){"use strict";var n=r(52);t.certificate=r(366);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var f=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),h=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=h,t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,r){var n=r(52),i=r(3);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(358).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),(function(t){r[t]=e[t]})),forEach(globals,(function(t){e[t]&&(r[t]=e[t])}));var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,r[t])})),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),r},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"===_typeof(e)&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),t}},function(e,t,r){var n=r(3);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(53).Reporter,o=r(53).EncoderBuffer,a=r(53).DecoderBuffer,s=r(14),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function f(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=f;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},f.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==n(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){f.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),c.forEach((function(e){f.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),f.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,o=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(o=this._peekTag(e,c,r.any),e.isError(o))return o}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(u)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var f=this._decodeTag(e,r.explicit);if(e.isError(f))return f;e=f}var l=e.offset;if(null===r.use&&null===r.choice){if(r.any)u=e.save();var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?i=e.raw(u):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new a(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(d,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},f.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},f.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},f.prototype._encodeValue=function(e,t,r){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new i);var a=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var s=null,c=!1;if(o.any)a=this._createEncoderBuffer(e);else if(o.choice)a=this._encodeChoice(e,t);else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),c=!0;else if(o.children)s=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var i=t.enterKey(r._baseState.key);if("object"!==n(e))return t.error("Child expected, but input is not object");var o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),o}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),u))}else null!==o.use?a=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),c=!0);if(!o.any&&null===o.choice){var f=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===f?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(f,c,l,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,r){var n=r(175);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){var n=t;n.der=r(176),n.pem=r(363)},function(e,t,r){var n=r(3),i=r(5).Buffer,o=r(176);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<r.length;u++){var f=r[u].match(a);if(null!==f&&f[2]===n){if(-1!==s){if("END"!==f[1])break;c=u;break}if("BEGIN"!==f[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+n);var l=r.slice(s+1,c).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(l,"base64");return o.prototype.decode.call(this,h,t)}},function(e,t,r){var n=t;n.der=r(177),n.pem=r(365)},function(e,t,r){var n=r(3),i=r(177);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(52),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),A=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=A},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(66),s=r(94),c=r(4).Buffer;e.exports=function(e,t){var r,u=e.toString(),f=u.match(n);if(f){var l="aes"+f[1],h=c.from(f[2],"hex"),d=c.from(f[3].replace(/[\r\n]/g,""),"base64"),A=a(t,h.slice(0,8),parseInt(f[1],10)).key,p=[],g=s.createDecipheriv(l,A,h);p.push(g.update(d)),p.push(g.final()),r=c.concat(p)}else{var b=u.match(o);r=c.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:r}}},function(e,t,r){"use strict";var n=r(4).Buffer,i=r(2),o=r(171).ec,a=r(68),s=r(178);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,u,f){var l=a(r);if("ec"===l.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,l)}if("dsa"===l.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,f=a.signature.decode(e,"der"),l=f.s,h=f.r;c(l,o),c(h,o);var d=i.mont(n),A=l.invm(o);return 0===s.toRed(d).redPow(new i(t).mul(A).mod(o)).fromRed().mul(u.toRed(d).redPow(h.mul(A).mod(o)).fromRed()).mod(n).mod(o).cmp(h)}(e,t,l)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=n.concat([f,t]);for(var h=l.modulus.byteLength(),d=[1],A=0;t.length+d.length+2<h;)d.push(255),A+=1;d.push(0);for(var p=-1;++p<t.length;)d.push(t[p]);d=n.from(d);var g=i.mont(l.modulus);e=(e=new i(e).toRed(g)).redPow(new i(l.publicExponent)),e=n.from(e.fromRed().toArray());var b=A<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(b=1),p=-1;++p<h;)b|=e[p]^d[p];return 0===b}},function(e,t,r){(function(t){var n=r(371),i=r(2);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(5).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(372).version,n.utils=r(16),n.rand=r(51),n.curve=r(179),n.curves=r(100),n.ec=r(377),n.eddsa=r(380)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(e,t,r){"use strict";var n=r(16),i=r(2),o=r(3),a=r(69),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),A=new i(1),p=new i(0),g=new i(0),b=new i(1),y=0;0!==h.cmpn(0);){var v=d.div(h);u=d.sub(v.mul(h)),f=g.sub(v.mul(A));var m=b.sub(v.mul(p));if(!n&&u.cmp(l)<0)t=c.neg(),r=A,n=u.neg(),o=f;else if(n&&2==++y)break;c=u,d=h,h=u,g=A,A=f,b=p,p=m}a=u.neg(),s=f;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return u},o(u,a.BasePoint),c.prototype.point=function(e,t,r){return new u(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),l=n.redMul(u),h=c.redSqr().redIAdd(f).redISub(l).redISub(l),d=c.redMul(l.redISub(h)).redISub(o.redMul(f)),A=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,A)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=r.redMul(c),l=s.redSqr().redIAdd(u).redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul(u)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=u.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(c)),A=o.redMul(l),p=d.redSqr().redISub(A.redAdd(A)),g=A.redISub(p),b=d.redMul(g);b=b.redIAdd(b).redISub(h);var y=u.redMul(s);t+1<e&&(c=c.redMul(h)),o=p,s=y,u=b}return this.curve.jpoint(o,u.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var A=f.redAdd(f).redIAdd(f),p=A.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=p.redISub(d).redISub(d),t=A.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var A=h.redIAdd(h),p=(A=A.redIAdd(A)).redAdd(A);e=d.redSqr().redISub(p),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(A.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),f=s.redSqr().redISub(u.redAdd(u)),l=u.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(l).redISub(h),A=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,A)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),f=t.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,h,d)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(2),i=r(3),o=r(69),a=r(16);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(16),i=r(2),o=r(3),a=r(69),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(c,u,l,f)},u.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=u.redMul(n.redSub(c)),r=u.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),f=s.redMul(c),l=o.redMul(c),h=a.redMul(s);return this.curve.point(u,f,h,l)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(c).redMul(f);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(l,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(2),o=r(173),a=r(16),s=r(100),c=r(51),u=a.assert,f=r(378),l=r(379);function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(u(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=h,h.prototype.keyPair=function(e){return new f(this,e)},h.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||c(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,r,a){"object"===n(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),c=t.getPrivate().toArray("be",s),u=e.toArray("be",s),f=new o({hash:this.hash,entropy:c,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var A=a.k?a.k(d):new i(f.generate(this.n.byteLength()));if(!((A=this._truncateToN(A,!0)).cmpn(1)<=0||A.cmp(h)>=0)){var p=this.g.mul(A);if(!p.isInfinity()){var g=p.getX(),b=g.umod(this.n);if(0!==b.cmpn(0)){var y=A.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==g.cmp(b)?2:0);return a.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new l({r:b,s:y,recoveryParam:v})}}}}}},h.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(e,t,r,n){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,n);var o=this.n,a=new i(e),s=t.r,c=t.s,f=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var d=t.r.invm(o),A=o.sub(a).mul(d).umod(o),p=c.mul(d).umod(o);return this.g.mulAdd(A,s,p)},h.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(2),i=r(16).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(2),i=r(16),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=c(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(u),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(8),i=r(100),o=r(16),a=o.assert,s=o.parseBytes,c=r(381),u=r(382);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(16),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(2),o=r(16),a=o.assert,s=o.cachedProperty,c=o.parseBytes;function u(e,t){this.eddsa=e,"object"!==n(t)&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},function(e,t,r){t.publicEncrypt=r(384),t.privateDecrypt=r(385),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){var n=r(68),i=r(36),o=r(49),a=r(180),s=r(181),c=r(2),u=r(182),f=r(97),l=r(4).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,A=n(e);if(4===h)d=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(l.alloc(0)).digest(),f=u.length,h=2*f;if(n>r-h-2)throw new Error("message too long");var d=l.alloc(r-n-h-2),A=r-f-1,p=i(f),g=s(l.concat([u,d,l.alloc(1,1),t],A),a(p,A)),b=s(p,a(g,f));return new c(l.concat([l.alloc(1),b,g],r))}(A,t);else if(1===h)d=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?l.alloc(a-o-3,255):function(e){var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}(a-o-3);return new c(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],a))}(A,t,r);else{if(3!==h)throw new Error("unknown padding");if((d=new c(t)).cmp(A.modulus)>=0)throw new Error("data too long for modulus")}return r?f(d,A):u(d,A)}},function(e,t,r){var n=r(68),i=r(180),o=r(181),a=r(2),s=r(97),c=r(49),u=r(182),f=r(4).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var h,d=n(e),A=d.modulus.byteLength();if(t.length>A||new a(t).cmp(d.modulus)>=0)throw new Error("decryption error");h=r?u(new a(t),d):s(t,d);var p=f.alloc(A-h.length);if(h=f.concat([p,h],A),4===l)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),l=o(s,i(u,a)),h=o(u,i(l,r-a-1));if(function(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,h.slice(0,a)))throw new Error("decryption error");var d=a;for(;0===h[d];)d++;if(1!==h[d++])throw new Error("decryption error");return h.slice(d)}(d,h);if(1===l)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,h,r);if(3===l)return h;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(36),s=o.Buffer,c=o.kMaxLength,u=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function d(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i)return a(r).copy(e,t),e;a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}u&&u.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),h(n,r,t.length),d(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(r,t.length),void 0===n&&(n=t.length-r);return h(n,r,t.length),d(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(9),r(6))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"default",(function(){return d}));var n=r(192),i=r(193),o=r(17),a=r(194),s=r(71),c=r.n(s),u=r(41);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var d=function(){return t=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initResolve=null,this.utils=null,this.wasm=null},(r=[{key:"init",value:function(){var e=this;return Object(a.a)().then((function(t){e.wasm=t,e.utils=new o.a(t),e.AES_KEY_SIZE=t._EMS_AES_KEY_SIZE_(),e.CRYPTO_TYPE_TARGET=t._EMS_CRYPTO_TYPE_TARGET_(),e.CRYPTO_TYPE_PRIMARY=t._EMS_CRYPTO_TYPE_PRIMARY_(),e.TARGET_BLOCK_KEY_SIZE=t._EMS_TARGET_BLOCK_KEY_SIZE_(),e.TARGET_PK_KEY_SIZE=t._EMS_TARGET_PK_KEY_SIZE_(),e.ECIES_PK_KEY_SIZE=t._EMS_ECIES_PK_KEY_SIZE_(),e.ECIES_SK_KEY_SIZE=t._EMS_ECIES_SK_KEY_SIZE_(),e.IV_SIZE=t._EMS_IV_SIZE_(),e.PRIMARY_BLOCK_KEY_SIZE=t._EMS_PRIMARY_BLOCK_KEY_SIZE_(),e.PRIMARY_PK_KEY_SIZE=t._EMS_PRIMARY_PK_KEY_SIZE_(),e.RE_ENCRYPTION_KEY_SIZE=t._EMS_RE_ENCRYPTION_KEY_SIZE_(),e.SECRET_KEY_SIZE=t._EMS_SECRET_KEY_SIZE_(),e.SEED_SIZE=t._EMS_SEED_SIZE_(),e.TAG_SIZE=t._EMS_TAG_SIZE_(),e.ELV_E_INCOMPLETE_BLOCK=-2,e.initResolve&&e.initResolve(e)})),new Promise((function(t){e.wasm?t(e):e.initResolve=t}))}},{key:"calcEncByteCount",value:function(e){return this.wasm._CalcEncByteCount(e)}},{key:"calcEncByteCountH",value:function(e,t){return this.wasm._CalcEncByteCountH(e,t)}},{key:"calcEncByteCountFromTargetH",value:function(e){return this.wasm._CalcEncByteCountFromTargetH(e)}},{key:"calcTargetByteCountH",value:function(e){return this.wasm._CalcTargetByteCountH(e)}},{key:"calcEncECIESByteCount",value:function(e){return this.wasm._CalcEncECIESByteCount(e)}},{key:"encryptECIES",value:function(e,t){if(t.length!==this.ECIES_PK_KEY_SIZE)throw new Error("encryptECIES() failed: Expected publicKey length\n ".concat(this.ECIES_PK_KEY_SIZE,", not ").concat(t.length));var r=this.wasm,n=this.utils,i=o.a.randomBytes(this.SEED_SIZE),a=n.arrayToSmartBuf(e),s=n.arrayToSmartBuf(t),c=n.arrayToSmartBuf(i),u=this.calcEncECIESByteCount(a.len),f=n.smartMalloc(u),l=n.smartMalloc(this.ECIES_PK_KEY_SIZE),h=n.smartMalloc(this.TAG_SIZE),d=r._EncryptECIES(c.ptr,c.len,s.ptr,a.ptr,a.len,f,u,l,h);if(0!==d)throw new Error("_EncryptECIES failed with error code ".concat(d));return{data:new Uint8Array(r.HEAPU8.buffer,f,u),ephemeralKey:new Uint8Array(r.HEAPU8.buffer,l,this.ECIES_PK_KEY_SIZE).slice(0),tag:new Uint8Array(r.HEAPU8.buffer,h,this.TAG_SIZE).slice(0)}}},{key:"decryptECIES",value:function(e,t,r,n){if(t.length!==this.ECIES_SK_KEY_SIZE)throw new Error("decryptECIES() failed: Expected secretKey length\n ".concat(this.ECIES_SK_KEY_SIZE,", not ").concat(t.length));if(r.length!==this.ECIES_PK_KEY_SIZE)throw new Error("decryptECIES() failed: Expected ephemeralKey length\n ".concat(this.ECIES_PK_KEY_SIZE,", not ").concat(r.length));if(n.length!==this.TAG_SIZE)throw new Error("decryptECIES() failed: Expected tag length\n ".concat(this.TAG_SIZE,", not ").concat(n.length));var i=this.wasm,o=this.utils,a=o.arrayToSmartBuf(e),s=o.arrayToSmartBuf(t),c=o.arrayToSmartBuf(r),u=o.arrayToSmartBuf(n),f=a.len,l=o.smartMalloc(f),h=i._DecryptECIES(c.ptr,a.ptr,a.len,u.ptr,s.ptr,l,f);if(-1===h)throw new Error("_DecryptECIES failed");return new Uint8Array(i.HEAPU8.buffer,l,h)}},{key:"generateTargetKeys",value:function(){var e=this.wasm,t=this.utils,r=o.a.randomBytes(this.SEED_SIZE),n=t.arrayToSmartBuf(r),i=t.smartMalloc(this.SECRET_KEY_SIZE),a=t.smartMalloc(this.TARGET_PK_KEY_SIZE),s=e._GenerateTargetKeys(n.ptr,n.len,i,a);if(0!==s)throw new Error("_GenerateTargetKeys failed with error code ".concat(s));return{secretKey:new Uint8Array(e.HEAPU8.buffer,i,this.SECRET_KEY_SIZE).slice(0),publicKey:new Uint8Array(e.HEAPU8.buffer,a,this.TARGET_PK_KEY_SIZE).slice(0)}}},{key:"generatePrimaryKeys",value:function(){var e=this.wasm,t=this.utils,r=o.a.randomBytes(this.SEED_SIZE),n=t.arrayToSmartBuf(r),i=t.smartMalloc(this.SECRET_KEY_SIZE),a=t.smartMalloc(this.PRIMARY_PK_KEY_SIZE),s=e._GeneratePrimaryKeys(n.ptr,n.len,i,a);if(0!==s)throw new Error("_GeneratePrimaryKeys failed with error code ".concat(s));return{secretKey:new Uint8Array(e.HEAPU8.buffer,i,this.SECRET_KEY_SIZE).slice(0),publicKey:new Uint8Array(e.HEAPU8.buffer,a,this.PRIMARY_PK_KEY_SIZE).slice(0)}}},{key:"generateReEncryptionKey",value:function(e,t){if(e.length!==this.SECRET_KEY_SIZE)throw new Error("generateReEncryptionKey() failed: Expected primarySK\n length ".concat(this.SECRET_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.TARGET_PK_KEY_SIZE)throw new Error("generateReEncryptionKey() failed: Expected targetPK\n length ".concat(this.TARGET_PK_KEY_SIZE,", not ").concat(t.length));var r=this.wasm,n=this.utils,i=n.arrayToSmartBuf(e),o=n.arrayToSmartBuf(t),a=n.smartMalloc(this.RE_ENCRYPTION_KEY_SIZE),s=r._GenerateReEncryptionKey(i.ptr,o.ptr,a);if(0!==s)throw new Error("_GenerateReEncryptionKey failed with error code ".concat(s));return new Uint8Array(r.HEAPU8.buffer,a,this.RE_ENCRYPTION_KEY_SIZE).slice(0)}},{key:"generateSymmetricKey",value:function(){var e=this.wasm,t=this.utils,r=o.a.randomBytes(this.SEED_SIZE),n=t.arrayToSmartBuf(r),i=t.smartMalloc(this.AES_KEY_SIZE),a=t.smartMalloc(this.IV_SIZE),s=e._GenerateSymmetricKeys(n.ptr,n.len,i,a);if(0!==s)throw new Error("_GenerateSymmetricKeys failed with error code ".concat(s));return{key:new Uint8Array(e.HEAPU8.buffer,i,this.AES_KEY_SIZE).slice(0),iv:new Uint8Array(e.HEAPU8.buffer,a,this.IV_SIZE).slice(0)}}},{key:"newPrimaryContext",value:function(e,t,r){if(e&&e.length!==this.PRIMARY_PK_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected publicKey\n length ".concat(this.PRIMARY_PK_KEY_SIZE,", not ").concat(e.length));if(t&&t.length!==this.SECRET_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected secretKey\n length ".concat(this.SECRET_KEY_SIZE,", not ").concat(t.length));if(r.length!==this.AES_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected\n symmetricKey length ".concat(this.AES_KEY_SIZE,", not ").concat(r.length));var n=this.generateSymmetricKey();return new i.a(this.wasm,e,t,r,n.iv)}},{key:"encryptPrimary",value:function(e,t,r){if(r.length!==this.IV_SIZE)throw new Error("encryptPrimary() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(r.length));if(0!==e.scratchBuf.len)throw new Error("encryptPrimary() failed: Scratch buffer is not empty");var n=this.wasm,i=this.utils,o=i.arrayToSmartBuf(r),a=i.arrayToSmartBuf(t),s=this.calcEncByteCount(a.len);e.scratchBuf.ensureSize(s);var c=i.smartMalloc(this.TAG_SIZE),u=i.smartMalloc(this.PRIMARY_BLOCK_KEY_SIZE),f=n._EncryptPrimary(e.context,e.pkBuf.ptr,e.symKeyBuf.ptr,o.ptr,a.ptr,a.len,e.scratchBuf.ptr,s,c,u);if(0!==f)throw new Error("_EncryptPrimary failed with error code ".concat(f));return{blockKey:new Uint8Array(n.HEAPU8.buffer,u,this.PRIMARY_BLOCK_KEY_SIZE).slice(0),data:new Uint8Array(n.HEAPU8.buffer,e.scratchBuf.ptr,s),tag:new Uint8Array(n.HEAPU8.buffer,c,this.TAG_SIZE).slice(0)}}},{key:"encryptPrimaryH",value:function(e,t){if(0!==e.scratchBuf.len)throw new Error("encryptPrimaryH() failed: Scratch buffer is not empty");var r=this.wasm,n=this.utils,i=e.generateNextBlockIV(),o=n.arrayToSmartBuf(i),a=n.arrayToSmartBuf(t),s=this.calcEncByteCountH(this.CRYPTO_TYPE_PRIMARY,a.len);e.scratchBuf.ensureSize(s);var c=r._EncryptPrimaryH(e.context,e.pkBuf.ptr,e.symKeyBuf.ptr,o.ptr,a.ptr,a.len,e.scratchBuf.ptr);if(0!==c)throw new Error("_EncryptPrimaryH failed with error code ".concat(c));return new Uint8Array(r.HEAPU8.buffer,e.scratchBuf.ptr,s)}},{key:"decryptPrimary",value:function(e,t,r,n,i,o){if(r.length!==this.TAG_SIZE)throw new Error("decryptPrimary() failed: Expected tag\n length ".concat(this.TAG_SIZE,", not ").concat(r.length));if(n.length!==this.PRIMARY_BLOCK_KEY_SIZE)throw new Error("decryptPrimary() failed: Expected blockKey\n length ".concat(this.PRIMARY_BLOCK_KEY_SIZE,", not ").concat(n.length));if(i.length!==this.IV_SIZE)throw new Error("decryptPrimary() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(i.length));if(0!==e.scratchBuf.len)throw new Error("decryptPrimary() failed: Scratch buffer is not empty");var a=this.wasm,s=this.utils,c=s.arrayToSmartBuf(t),u=s.arrayToSmartBuf(n),f=s.arrayToSmartBuf(i),l=s.arrayToSmartBuf(r);e.scratchBuf.ensureSize(o);var h=a._DecryptPrimary(e.context,e.skBuf.ptr,u.ptr,e.symKeyBuf.ptr,f.ptr,l.ptr,c.ptr,c.len,e.scratchBuf.ptr,o);if(0!==h)throw new Error("_DecryptPrimary failed with error code ".concat(h));return new Uint8Array(a.HEAPU8.buffer,e.scratchBuf.ptr,o)}},{key:"reEncryptH",value:function(e,t,r){if(t.length!==this.RE_ENCRYPTION_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected reEncKey\n length ".concat(this.RE_ENCRYPTION_KEY_SIZE,", not ").concat(t.length));var n=this.wasm,i=this.utils,o=i.arrayToSmartBuf(t),a=i.arrayToSmartBuf(r);e.ensureSize(this.calcTargetByteCountH(a.len));var s=i.smartMalloc(4),c=n._ReEncryptH(o.ptr,a.ptr,a.len,e.ptr,s);if(c===this.ELV_E_INCOMPLETE_BLOCK)throw new Error("ELV_E_INCOMPLETE_BLOCK");if(0!==c)throw new Error("_ReEncryptH failed with error code ".concat(c));var u=n.getValue(s,"i32");return new Uint8Array(n.HEAPU8.buffer,e.ptr,u)}},{key:"decryptH",value:function(e,t,r){if(e!==this.CRYPTO_TYPE_TARGET&&e!==this.CRYPTO_TYPE_PRIMARY)throw new Error("decryptH() failed: Invalid type ".concat(e));if(0!==t.scratchBuf.len)throw new Error("decryptH() failed: Scratch buffer is not empty");var n=this.wasm,i=this.utils,o=i.arrayToSmartBuf(r);t.scratchBuf.ensureSize(o.len);var a=i.smartMalloc(4),s=n._DecryptH(e,t.context,t.skBuf.ptr,t.symKeyBuf.ptr,o.ptr,o.len,t.scratchBuf.ptr,a);if(s===this.ELV_E_INCOMPLETE_BLOCK)throw new Error("ELV_E_INCOMPLETE_BLOCK");if(0!==s)throw new Error("_DecryptH failed with error code ".concat(s));var c=n.getValue(a,"i32");return new Uint8Array(n.HEAPU8.buffer,t.scratchBuf.ptr,c)}},{key:"reEncryptBlockKey",value:function(e,t){if(e.length!==this.RE_ENCRYPTION_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected reEncKey\n length ".concat(this.RE_ENCRYPTION_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.PRIMARY_BLOCK_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected blockKey\n length ".concat(this.PRIMARY_BLOCK_KEY_SIZE,", not ").concat(t.length));var r=this.wasm,n=this.utils,i=n.arrayToSmartBuf(e),o=n.arrayToSmartBuf(t),a=n.smartMalloc(this.TARGET_BLOCK_KEY_SIZE),s=r._ReEncryptBlockKey(i.ptr,o.ptr,a);if(0!==s)throw new Error("_ReEncryptBlockKey failed with error code ".concat(s));return new Uint8Array(r.HEAPU8.buffer,a,this.TARGET_BLOCK_KEY_SIZE).slice(0)}},{key:"newTargetDecryptionContext",value:function(e,t){if(e.length!==this.SECRET_KEY_SIZE)throw new Error("newTargetDecryptionContext() failed: Expected\n secretKey length ".concat(this.SECRET_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.AES_KEY_SIZE)throw new Error("newTargetDecryptionContext() failed: Expected\n symmetricKey length ".concat(this.AES_KEY_SIZE,", not ").concat(t.length));return new n.a(this.wasm,e,t)}},{key:"decryptTarget",value:function(e,t,r,n,i,o){if(r.length!==this.TAG_SIZE)throw new Error("decryptTarget() failed: Expected tag\n length ".concat(this.TAG_SIZE,", not ").concat(r.length));if(n.length!==this.TARGET_BLOCK_KEY_SIZE)throw new Error("decryptTarget() failed: Expected blockKey\n length ".concat(this.TARGET_BLOCK_KEY_SIZE,", not ").concat(n.length));if(i.length!==this.IV_SIZE)throw new Error("decryptTarget() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(i.length));if(0!==e.scratchBuf.len)throw new Error("decryptTarget() failed: Scratch buffer is not empty");var a=this.wasm,s=this.utils,c=s.arrayToSmartBuf(t),u=s.arrayToSmartBuf(n),f=s.arrayToSmartBuf(i),l=s.arrayToSmartBuf(r);e.scratchBuf.ensureSize(o);var h=a._DecryptTarget(e.context,e.skBuf.ptr,u.ptr,e.symKeyBuf.ptr,f.ptr,l.ptr,c.ptr,c.len,e.scratchBuf.ptr,o);if(0!==h)throw new Error("_DecryptTarget failed with error code ".concat(h));return new Uint8Array(a.HEAPU8.buffer,e.scratchBuf.ptr,o)}},{key:"createCipher",value:function(e){var t=this;return c()((function(r,n,i){this.push(t.encryptPrimaryH(e,r)),e.clearBuf(),i()}))}},{key:"createDecipher",value:function(t,r){var n=this,i=e.alloc(0);return c()((function(o,a,s){var c=0;for(i=e.concat([i,o]);c<i.length;)try{r.clearBuf();var u=n.decryptH(t,r,i.slice(c));this.push(u),c+=n.calcEncByteCountH(t,u.length)}catch(t){return"ELV_E_INCOMPLETE_BLOCK"===t.message?(i=i.slice(c),void s()):(i=e.alloc(0),void s(t))}i=e.alloc(0),s()}),(function(e){i.length>0&&this.destroy(new Error("Decipher stream ended before all data was decrypted. The source may be invalid.")),e()}))}},{key:"createRecipher",value:function(t){var r=this,n=new u.a(r.wasm),i=e.alloc(0),o=c()((function(o,a,s){var c=0;for(i=e.concat([i,o]);c<i.length;)try{n.clear();var u=r.reEncryptH(n,t,i.slice(c));this.push(u),c+=r.calcEncByteCountFromTargetH(u.length)}catch(t){return"ELV_E_INCOMPLETE_BLOCK"===t.message?(i=i.slice(c),void s()):(i=e.alloc(0),void s(t))}i=e.alloc(0),s()}),(function(e){i.length>0&&this.destroy(new Error("Recipher stream ended before all data was decrypted. The source may be invalid.")),e()}));return o.on("finish",(function(){n.free()})),o}}])&&l(t.prototype,r),s&&l(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,s}()}.call(this,r(5).Buffer)},function(e,t,r){(t=e.exports=r(183)).Stream=t,t.Readable=t,t.Writable=r(187),t.Duplex=r(40),t.Transform=r(188),t.PassThrough=r(394),t.finished=r(101),t.pipeline=r(395)},function(e,t){},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}var u=r(5).Buffer,f=r(391).inspect,l=f&&f.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 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 u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,u.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{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 i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return f(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(101),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function A(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[s]=null,e[c]=null,t(A(r,!1)))}}function g(e){t.nextTick(p,e)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(i={get stream(){return this[d]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[f])return Promise.resolve(A(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(A(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(A(void 0,!0)):t[h](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(A(o,!1));n=new Promise(this[h])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),o(i,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(A(void 0,!0))}))}))})),i),b);e.exports=function(e){var t,r=Object.create(y,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[s]=null,r[c]=null,e(A(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[l]=null,r[s]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[c]=null,n(A(void 0,!0))),r[f]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this,r(6))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(188);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n;var i=r(39).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(101)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function u(e){e()}function f(e,t){return e.pipe(t)}function l(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=l(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return c(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(u),o||(a.forEach(u),i(n))}))}));return t.reduce(f)}},function(e,t,r){(function(e){var n=r(55),i=r(54),o=r(25),a=r(26);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u,f=r(44);f.Platform()===f.PLATFORM_NODE&&(globalThis.Response=r(117).Response,u=r(397));var l=r(77),h=r(78),d=h.ValidatePresence,A=h.ValidateWriteToken,p=h.ValidatePartHash,g=h.ValidateParameters;t.ListFiles=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c,u;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.path,a=void 0===i?"":i,s=t.versionHash,c=t.writeToken,g({libraryId:r,objectId:n,versionHash:s,writeToken:c}),s&&(n=this.utils.DecodeVersionHash(s).objectId),u=l("q",c||s||n,"files_list",a),e.t0=this.HttpClient,e.next=7,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:s});case 7:return e.t1=e.sent,e.t2=u,e.t3={headers:e.t1,method:"GET",path:e.t2},e.abrupt("return",e.t0.RequestJsonBody.call(e.t0,e.t3));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadFilesFromS3=function(){var t=a(o.mark((function t(r){var n,i,a,s,u,f,l,h,d,p,b,y,v,m,w,I,E,B,C,_,k,S,Q,x,R,O,D,j,P;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.libraryId,i=r.objectId,a=r.writeToken,s=r.region,u=r.bucket,f=r.fileInfo,l=r.accessKey,h=r.secret,d=r.signedUrl,p=r.encryption,b=void 0===p?"none":p,y=r.copy,v=void 0!==y&&y,m=r.callback,g({libraryId:n,objectId:i}),A(a),w=/^s3:\/\/([^/]+)\//i,I=0;case 5:if(!(I<f.length)){t.next=18;break}if(E=f[I].source,!(B=w.exec(E))){t.next=15;break}if(B[1]===u){t.next=14;break}throw Error('Full S3 file path "'+E+"\" specified, but does not match provided bucket name '"+u+"'");case 14:f[I].source=E.replace(w,"");case 15:I++,t.next=5;break;case 18:if(v?this.Log("Copying files from S3: ".concat(n," ").concat(i," ").concat(a)):this.Log("Adding links to files in S3: ".concat(n," ").concat(i," ").concat(a)),"cgck"!==b){t.next=25;break}return t.next=22,this.EncryptionConk({libraryId:n,objectId:i,writeToken:a});case 22:_=c(c({},_=t.sent),{},{secret_key:""}),C="kp__".concat(this.utils.B58(e.from(JSON.stringify(_))));case 25:return k={access_key_id:l,secret_access_key:h},d&&(k={signed_url:d}),S={encryption_key:C,access:{protocol:"s3",platform:"aws",path:u,storage_endpoint:{region:s},cloud_credentials:k}},Q=f.map((function(e){return v?{op:"ingest-copy",path:e.path,encryption:{scheme:"cgck"===b?"cgck":"none"},ingest:{type:"key",path:e.source}}:{op:"add-reference",path:e.path,reference:{type:"key",path:e.source}}})),t.next=31,this.CreateFileUploadJob({libraryId:n,objectId:i,writeToken:a,ops:Q,defaults:S});case 31:x=t.sent,R=x.id;case 33:return t.next=36,new Promise((function(e){return setTimeout(e,1e3)}));case 36:return t.next=38,this.UploadStatus({libraryId:n,objectId:i,writeToken:a,uploadId:R});case 38:if(!((O=t.sent).errors&&O.errors.length>1)){t.next=43;break}throw O.errors.join("\n");case 43:if(!O.error){t.next=48;break}throw this.Log("S3 file upload failed:\n".concat(JSON.stringify(O,null,2))),O.error;case 48:if("failed"!==O.status.toLowerCase()){t.next=50;break}throw"File upload failed";case 50:if(D=!1,v?(D=O.ingest_copy.done,m&&(j=O.ingest_copy.progress,m({done:D,uploaded:j.bytes.completed,total:j.bytes.total,uploadedFiles:j.files.completed,totalFiles:j.files.total,fileStatus:j.files.details}))):(D=O.add_reference.done,m&&(P=O.add_reference.progress,m({done:D,uploadedFiles:P.completed,totalFiles:P.total}))),!D){t.next=54;break}return t.abrupt("break",56);case 54:t.next=33;break;case 56:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t.UploadFiles=function(){var t=a(o.mark((function t(r){var n,i,s,f,l,h,p,b,y,v,m,w,I,E,B,C,_,k,S,Q,x,R,O,D,j,P,M,N,T,L=this;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.libraryId,i=r.objectId,s=r.writeToken,f=r.fileInfo,l=r.encryption,h=void 0===l?"none":l,p=r.callback,g({libraryId:n,objectId:i}),A(s),d("fileInfo",f),this.Log("Uploading files: ".concat(n," ").concat(i," ").concat(s)),"cgck"!==h){t.next=9;break}return t.next=8,this.EncryptionConk({libraryId:n,objectId:i,writeToken:s});case 8:b=t.sent;case 9:for(y={},v={},m=f,f=[],w=0;w<m.length;w++)(I=c(c({},m[w]),{},{data:void 0})).path=I.path.replace(/^\/+/,""),"cgck"===h&&(I.encryption={scheme:"cgck"}),v[I.path]=m[w].data,I.type="file",y[I.path]={uploaded:0,total:I.size},f.push(I);return this.Log(f),p&&p(y),t.next=18,this.CreateFileUploadJob({libraryId:n,objectId:i,writeToken:s,ops:f,encryption:h});case 18:E=t.sent,B=E.id,C=E.jobs,this.Log("Upload ID: ".concat(B)),this.Log(C),524288e3,_=[],k=0,S=0,Q=function(){var t=a(o.mark((function t(){var r,a,c,f,l,d;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=0;case 1:if(!(r<C.length)){t.next=31;break}case 2:if(!(k-S>524288e3)){t.next=7;break}return t.next=5,new Promise((function(e){return setTimeout(e,500)}));case 5:t.next=2;break;case 7:return a=C[r],t.next=10,L.UploadJobStatus({libraryId:n,objectId:i,writeToken:s,uploadId:B,jobId:a});case 10:c=t.sent,f=0;case 12:if(!(f<c.files.length)){t.next=25;break}if(l=c.files[f],d=void 0,"number"==typeof v[l.path]?(d=e.alloc(l.len),u.readSync(v[l.path],d,0,l.len,l.off)):d=v[l.path].slice(l.off,l.off+l.len),"cgck"!==h){t.next=20;break}return t.next=19,L.Crypto.Encrypt(b,d);case 19:d=t.sent;case 20:c.files[f].data=d,k+=l.len;case 22:f++,t.next=12;break;case 25:return _[r]=c,t.next=28,new Promise((function(e){return setTimeout(e,50)}));case 28:r++,t.next=1;break;case 31:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),x=function(){var e=a(o.mark((function e(t,r){var a,u,f,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_[r]){e.next=5;break}return e.next=3,new Promise((function(e){return setTimeout(e,500)}));case 3:e.next=0;break;case 5:a=_[r],u=a.files,f=o.mark((function e(){var a,f,d;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=u[l],f=0,d=!1;case 3:return e.prev=3,e.next=6,L.UploadFileData({libraryId:n,objectId:i,writeToken:s,uploadId:B,jobId:t,filePath:a.path,fileData:a.data,encryption:h});case 6:d=!0,e.next=17;break;case 9:if(e.prev=9,e.t0=e.catch(3),L.Log(e.t0,!0),!((f+=1)>=10)){e.next=15;break}throw e.t0;case 15:return e.next=17,new Promise((function(e){return setTimeout(e,10*f*1e3)}));case 17:if(!d&&f<10){e.next=3;break}case 18:delete _[r].files[l].data,S+=a.len,p&&(y[a.path]=c(c({},y[a.path]),{},{uploaded:y[a.path].uploaded+a.len}),p(y));case 21:case"end":return e.stop()}}),e,null,[[3,9]])})),l=0;case 9:if(!(l<u.length)){e.next=14;break}return e.delegateYield(f(),"t0",11);case 11:l++,e.next=9;break;case 14:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Q().catch((function(e){throw e})),R=Math.min(3,C.length),O=[],D=0;case 33:if(!(D<R)){t.next=43;break}return j=(new Date).getTime(),t.next=37,x(C[D],D);case 37:P=((new Date).getTime()-j)/1e3,M=_[D].files.map((function(e){return e.len})).reduce((function(e,t){return e+t}),0),O.push(M/P/1048576);case 40:D++,t.next=33;break;case 43:return N=O.reduce((function(e,t){return e+t}),0)/R,T=Math.min(5,Math.ceil(N/2)),t.next=47,this.utils.LimitedMap(T,C,function(){var e=a(o.mark((function e(t,r){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r<R)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,x(t,r);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}());case 47:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t.CreateFileUploadJob=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c,u,f,h,d;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.ops,s=t.defaults,c=void 0===s?{}:s,u=t.encryption,f=void 0===u?"none":u,g({libraryId:r,objectId:n}),A(i),this.Log("Creating file upload job: ".concat(r," ").concat(n," ").concat(i)),this.Log(a),"cgck"===f&&(c.encryption={scheme:"cgck"}),h={seq:0,seq_complete:!0,defaults:c,ops:a},d=l("q",i,"file_jobs"),e.t0=this.HttpClient,e.next=11,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0,encryption:f});case 11:return e.t1=e.sent,e.t2=d,e.t3=h,e.t4={headers:e.t1,method:"POST",path:e.t2,body:e.t3,allowFailover:!1},e.abrupt("return",e.t0.RequestJsonBody.call(e.t0,e.t4));case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadStatus=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.uploadId,g({libraryId:r,objectId:n}),A(i),s=l("q",i,"file_jobs",a),e.t0=this.utils,e.t1=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0});case 8:return e.t2=e.sent,e.t3=s,e.t4={headers:e.t2,method:"GET",path:e.t3,allowFailover:!1},e.t5=e.t1.Request.call(e.t1,e.t4),e.abrupt("return",e.t0.ResponseToJson.call(e.t0,e.t5));case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadJobStatus=function(){var e=a(o.mark((function e(t){var r,i,a,s,c,u,f,h;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,i=t.objectId,a=t.writeToken,s=t.uploadId,c=t.jobId,g({libraryId:r,objectId:i}),A(a),u=l("q",a,"file_jobs",s,"uploads",c),e.t0=this.utils,e.t1=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({libraryId:r,objectId:i,update:!0});case 8:return e.t2=e.sent,e.t3=u,e.t4={start:0,limit:1e4},e.t5={headers:e.t2,method:"GET",path:e.t3,allowFailover:!1,queryParams:e.t4},e.t6=e.t1.Request.call(e.t1,e.t5),e.next=15,e.t0.ResponseToJson.call(e.t0,e.t6);case 15:f=e.sent;case 16:if(!(f.next!==f.total&&f.next>=0)){e.next=33;break}return e.t7=this.utils,e.t8=this.HttpClient,e.next=21,this.authClient.AuthorizationHeader({libraryId:r,objectId:i,update:!0});case 21:return e.t9=e.sent,e.t10=u,e.t11={start:f.next},e.t12={headers:e.t9,method:"GET",path:e.t10,allowFailover:!1,queryParams:e.t11},e.t13=e.t8.Request.call(e.t8,e.t12),e.next=28,e.t7.ResponseToJson.call(e.t7,e.t13);case 28:h=e.sent,f.files=[].concat(n(f.files),n(h.files)),f.next=h.next,e.next=16;break;case 33:return e.abrupt("return",f);case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadFileData=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,u,f,h,d,p,b;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.encryption,s=t.uploadId,u=t.jobId,f=t.filePath,h=t.fileData,g({libraryId:r,objectId:n}),A(i),e.next=5,this.UploadJobStatus({libraryId:r,objectId:n,writeToken:i,uploadId:s,jobId:u});case 5:if(d=e.sent,p=d.files.find((function(e){return e.path===f})),a&&"none"!==a&&(p=p.encrypted),0!==p.rem){e.next=12;break}return e.abrupt("return");case 12:p.skip&&(h=h.slice(p.skip));case 13:return b=l("q",i,"file_jobs",s,u),e.t0=this.utils,e.t1=this.HttpClient,e.t2=b,e.t3=h,e.t4=c,e.t5={"Content-type":"application/octet-stream"},e.next=22,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0});case 22:return e.t6=e.sent,e.t7=(0,e.t4)(e.t5,e.t6),e.t8={method:"POST",path:e.t2,body:e.t3,bodyType:"BINARY",headers:e.t7,allowFailover:!1,allowRetry:!1},e.t9=e.t1.Request.call(e.t1,e.t8),e.next=28,e.t0.ResponseToJson.call(e.t0,e.t9);case 28:return e.abrupt("return",e.sent);case 29:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.FinalizeUploadJob=function(){var e=a(o.mark((function e(t){var r,n,i,a;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,g({libraryId:r,objectId:n}),A(i),this.Log("Finalizing upload job: ".concat(r," ").concat(n," ").concat(i)),a=l("q",i,"files"),e.t0=this.HttpClient,e.t1=a,e.next=9,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0});case 9:return e.t2=e.sent,e.t3={method:"POST",path:e.t1,bodyType:"BINARY",headers:e.t2,allowFailover:!1},e.next=13,e.t0.Request.call(e.t0,e.t3);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.CreateFileDirectories=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.filePaths,g({libraryId:r,objectId:n}),A(i),this.Log("Creating Directories: ".concat(r," ").concat(n," ").concat(i)),this.Log(a),s=a.map((function(e){return{op:"add",type:"directory",path:e}})),e.next=8,this.CreateFileUploadJob({libraryId:r,objectId:n,writeToken:i,ops:s});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.MoveFiles=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.filePaths,g({libraryId:r,objectId:n}),A(i),this.Log("Moving Files: ".concat(r," ").concat(n," ").concat(i)),this.Log(a),s=a.map((function(e){return{op:"move",copy_move_source_path:e.path,path:e.to}})),e.next=8,this.CreateFileUploadJob({libraryId:r,objectId:n,writeToken:i,ops:s});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.DeleteFiles=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.filePaths,g({libraryId:r,objectId:n}),A(i),this.Log("Deleting Files: ".concat(r," ").concat(n," ").concat(i)),this.Log(a),s=a.map((function(e){return{op:"del",path:e}})),e.next=8,this.CreateFileUploadJob({libraryId:r,objectId:n,writeToken:i,ops:s});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.DownloadFile=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,u,f,h,A,p,b,y,v,m,w,I,E,B,C,_,k,S=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,a=t.writeToken,s=t.filePath,u=t.format,f=void 0===u?"arrayBuffer":u,h=t.chunked,A=void 0!==h&&h,p=t.chunkSize,b=t.clientSideDecryption,y=void 0!==b&&b,v=t.callback,g({libraryId:r,objectId:n,versionHash:i}),d("filePath",s),i&&(n=this.utils.DecodeVersionHash(i).objectId),e.next=6,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,writeToken:a,metadataSubtree:l("files",s)});case 6:return m=e.sent,w=m&&m["."].encryption&&"cgck"===m["."].encryption.scheme,I=w?"cgck":void 0,E=w&&!y?l("q",a||i||n,"rep","files_download",s):l("q",a||i||n,"files",s),e.next=12,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i,encryption:I,makeAccessRequest:"cgck"===I});case 12:return(B=e.sent).Accept="*/*",C="eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address)),e.next=17,this.ContentObjectMetadata({libraryId:r,objectId:n,versionHash:i,metadataSubtree:C});case 17:if(_=e.sent,e.t1=w,!e.t1){e.next=26;break}return e.t2=this.utils,e.t3=this.signer.address,e.next=24,this.ContentObjectOwner({objectId:n});case 24:e.t4=e.sent,e.t1=!e.t2.EqualAddress.call(e.t2,e.t3,e.t4);case 26:if(e.t0=e.t1,!e.t0){e.next=29;break}e.t0=!_;case 29:if(!e.t0){e.next=31;break}B["X-Content-Fabric-Decryption-Mode"]="reencrypt";case 31:if(w&&!y&&(B["X-Content-Fabric-Decryption-Mode"]="decrypt",p=Number.MAX_SAFE_INTEGER),k=m["."].size,!w||!y){e.next=51;break}return e.t5=this,e.next=37,this.EncryptionConk({libraryId:r,objectId:n,versionHash:i,download:!0});case 37:return e.t6=e.sent,e.t7=E,e.t8=k,e.t9=B,e.t10=v,e.t11=f,e.t12=y,e.t13=A,e.t14={conk:e.t6,downloadPath:e.t7,bytesTotal:e.t8,headers:e.t9,callback:e.t10,format:e.t11,clientSideDecryption:e.t12,chunked:e.t13},e.next=48,e.t5.DownloadEncrypted.call(e.t5,e.t14);case 48:return e.abrupt("return",e.sent);case 51:return p||(p=1e7),e.prev=52,e.next=55,this.Download({downloadPath:E,bytesTotal:k,headers:B,callback:v,format:f,chunked:A,chunkSize:p});case 55:return e.abrupt("return",e.sent);case 58:if(e.prev=58,e.t15=e.catch(52),!w||y){e.next=62;break}return e.abrupt("return",this.DownloadFile(c(c({},S[0]),{},{clientSideDecryption:!0})));case 62:throw e.t15;case 63:case"end":return e.stop()}}),e,this,[[52,58]])})));return function(t){return e.apply(this,arguments)}}(),t.ContentParts=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,g({libraryId:r,objectId:n,versionHash:i}),this.Log("Retrieving parts: ".concat(r," ").concat(n||i)),i&&(n=this.utils.DecodeVersionHash(i).objectId),a=l("q",i||n,"parts"),e.t0=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i});case 8:return e.t1=e.sent,e.t2=a,e.t3={headers:e.t1,method:"GET",path:e.t2},e.next=13,e.t0.RequestJsonBody.call(e.t0,e.t3);case 13:return s=e.sent,e.abrupt("return",s.parts);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.ContentPart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,a=t.partHash,g({libraryId:r,objectId:n,versionHash:i}),p(a),this.Log("Retrieving part: ".concat(r," ").concat(n||i," ").concat(a)),i&&(n=this.utils.DecodeVersionHash(i).objectId),s=l("q",i||n,"parts",a),e.t0=this.HttpClient,e.next=9,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i});case 9:return e.t1=e.sent,e.t2=s,e.t3={headers:e.t1,method:"GET",path:e.t2},e.next=14,e.t0.RequestJsonBody.call(e.t0,e.t3);case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.DownloadPart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c,u,f,h,d,A,b,y,v,m,w,I;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.versionHash,a=t.writeToken,s=t.partHash,c=t.format,u=void 0===c?"arrayBuffer":c,f=t.chunked,h=void 0!==f&&f,d=t.chunkSize,A=void 0===d?1e7:d,b=t.callback,g({libraryId:r,objectId:n,versionHash:i}),p(s),i&&(n=this.utils.DecodeVersionHash(i).objectId),y=s.startsWith("hqpe"),v=y?"cgck":void 0,m=l("q",a||i||n,"data",s),e.next=9,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,versionHash:i,encryption:v,makeAccessRequest:!0});case 9:return w=e.sent,e.next=12,this.ContentPart({libraryId:r,objectId:n,versionHash:i,partHash:s});case 12:if(I=e.sent.part.size,!y){e.next=37;break}return e.t0=this.utils,e.t1=this.signer.address,e.next=18,this.ContentObjectOwner({objectId:n});case 18:if(e.t2=e.sent,e.t0.EqualAddress.call(e.t0,e.t1,e.t2)){e.next=21;break}w["X-Content-Fabric-Decryption-Mode"]="reencrypt";case 21:return e.t3=this,e.next=24,this.EncryptionConk({libraryId:r,objectId:n,download:!0});case 24:return e.t4=e.sent,e.t5=m,e.t6=I,e.t7=w,e.t8=b,e.t9=u,e.t10=h,e.t11={conk:e.t4,downloadPath:e.t5,bytesTotal:e.t6,headers:e.t7,callback:e.t8,format:e.t9,chunked:e.t10},e.next=34,e.t3.DownloadEncrypted.call(e.t3,e.t11);case 34:return e.abrupt("return",e.sent);case 37:return e.next=39,this.Download({downloadPath:m,bytesTotal:I,headers:w,callback:b,format:u,chunked:h,chunkSize:A});case 39:return e.abrupt("return",e.sent);case 40:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.Download=function(){var t=a(o.mark((function t(r){var n,i,a,s,c,u,f,l,h,d,A,p,g,b,y;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.downloadPath,i=r.headers,a=r.bytesTotal,s=r.chunked,c=void 0!==s&&s,u=r.chunkSize,f=void 0===u?2e6:u,l=r.callback,h=r.format,d=void 0===h?"arrayBuffer":h,!c||l){t.next=3;break}throw Error("No callback specified for chunked download");case 3:c||(A=[]),p=0,g=Math.ceil(a/f),b=0;case 7:if(!(b<g)){t.next=35;break}return i.Range="bytes=".concat(p,"-").concat(p+f-1),t.next=11,this.HttpClient.Request({path:n,headers:i,method:"GET"});case 11:if(y=t.sent,p=Math.min(p+f,a),!c){t.next=24;break}return t.t0=l,t.t1=p,t.t2=a,t.next=19,this.utils.ResponseToFormat(d,y);case 19:t.t3=t.sent,t.t4={bytesFinished:t.t1,bytesTotal:t.t2,chunk:t.t3},(0,t.t0)(t.t4),t.next=32;break;case 24:return t.t5=A,t.t6=e,t.next=28,y.arrayBuffer();case 28:t.t7=t.sent,t.t8=t.t6.from.call(t.t6,t.t7),t.t5.push.call(t.t5,t.t8),l&&l({bytesFinished:p,bytesTotal:a});case 32:b++,t.next=7;break;case 35:if(c){t.next=39;break}return t.next=38,this.utils.ResponseToFormat(d,new Response(e.concat(A)));case 38:return t.abrupt("return",t.sent);case 39:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t.DownloadEncrypted=function(){var t=a(o.mark((function t(r){var n,i,s,c,u,f,l,h,d,A,p,g,b,y,v,m,w,I=this;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.conk,i=r.downloadPath,s=r.bytesTotal,c=r.headers,u=r.callback,f=r.format,l=void 0===f?"arrayBuffer":f,h=r.chunked,!(d=void 0!==h&&h)||u){t.next=3;break}throw Error("No callback specified for chunked download");case 3:return A=n.public_key.startsWith("ktpk"),p=this.Crypto.EncryptedBlockSize(1e6,A),g=0,l=l.toLowerCase(),b=[],t.next=10,this.Crypto.OpenDecryptionStream(n);case 10:(y=t.sent).on("data",function(){var e=a(o.mark((function e(t){var r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d){e.next=13;break}if("buffer"===l){e.next=10;break}if(r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength),"arraybuffer"!==l){e.next=7;break}t=r,e.next=10;break;case 7:return e.next=9,I.utils.ResponseToFormat(l,new Response(r));case 9:t=e.sent;case 10:u({bytesFinished:g,bytesTotal:s,chunk:t}),e.next=15;break;case 13:u&&u({bytesFinished:g,bytesTotal:s}),b.push(t);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),v=Math.ceil(s/p),m=0;case 14:if(!(m<v)){t.next=30;break}return c.Range="bytes=".concat(g,"-").concat(g+p-1),t.next=18,this.HttpClient.Request({headers:c,method:"GET",path:i});case 18:return w=t.sent,g=Math.min(g+p,s),t.t0=y,t.t1=Uint8Array,t.next=24,w.arrayBuffer();case 24:t.t2=t.sent,t.t3=new t.t1(t.t2),t.t0.write.call(t.t0,t.t3);case 27:m++,t.next=14;break;case 30:return y.end(),t.next=33,new Promise((function(e){return y.on("finish",(function(){e()}))}));case 33:if(d){t.next=37;break}return t.next=36,this.utils.ResponseToFormat(l,new Response(e.concat(b)));case 36:return t.abrupt("return",t.sent);case 37:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t.CreatePart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.encryption,g({libraryId:r,objectId:n}),A(i),s=l("q",i,"parts"),e.t0=this.HttpClient,e.next=7,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0,encryption:a});case 7:return e.t1=e.sent,e.t2=s,e.t3={headers:e.t1,method:"POST",path:e.t2,bodyType:"BINARY",body:"",allowFailover:!1},e.next=12,e.t0.RequestJsonBody.call(e.t0,e.t3);case 12:return c=e.sent,e.abrupt("return",c.part.write_token);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadPartChunk=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c,u,f;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.partWriteToken,s=t.chunk,c=t.encryption,g({libraryId:r,objectId:n}),A(i),!c||"none"===c){e.next=10;break}return e.next=6,this.EncryptionConk({libraryId:r,objectId:n,writeToken:i});case 6:return u=e.sent,e.next=9,this.Crypto.Encrypt(u,s);case 9:s=e.sent;case 10:return f=l("q",i,"parts"),e.t0=this.utils,e.t1=this.HttpClient,e.next=15,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0,encryption:c});case 15:return e.t2=e.sent,e.t3=l(f,a),e.t4=s,e.t5={headers:e.t2,method:"POST",path:e.t3,body:e.t4,bodyType:"BINARY",allowFailover:!1},e.t6=e.t1.Request.call(e.t1,e.t5),e.next=22,e.t0.ResponseToJson.call(e.t0,e.t6);case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.FinalizePart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.partWriteToken,s=t.encryption,g({libraryId:r,objectId:n}),A(i),c=l("q",i,"parts"),e.t0=this.HttpClient,e.next=7,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0,encryption:s});case 7:return e.t1=e.sent,e.t2=l(c,a),e.t3={headers:e.t1,method:"POST",path:e.t2,bodyType:"BINARY",body:"",allowFailover:!1},e.next=12,e.t0.RequestJsonBody.call(e.t0,e.t3);case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.UploadPart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s,c,u,f,l,h,d,p,b;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.data,s=t.encryption,c=void 0===s?"none":s,u=t.chunkSize,f=void 0===u?1e7:u,l=t.callback,g({libraryId:r,objectId:n}),A(i),e.next=5,this.CreatePart({libraryId:r,objectId:n,writeToken:i,encryption:c});case 5:h=e.sent,d=a.length||a.byteLength||a.size,l&&l({bytesFinished:0,bytesTotal:d}),p=0;case 9:if(!(p<d)){e.next=17;break}return b=a.slice(p,p+f),e.next=13,this.UploadPartChunk({libraryId:r,objectId:n,writeToken:i,partWriteToken:h,chunk:b,encryption:c});case 13:l&&l({bytesFinished:Math.min(p+f,d),bytesTotal:d});case 14:p+=f,e.next=9;break;case 17:return e.next=19,this.FinalizePart({libraryId:r,objectId:n,writeToken:i,partWriteToken:h,encryption:c});case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.DeletePart=function(){var e=a(o.mark((function e(t){var r,n,i,a,s;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryId,n=t.objectId,i=t.writeToken,a=t.partHash,g({libraryId:r,objectId:n}),A(i),p(a),s=l("q",i,"parts",a),e.t0=this.HttpClient,e.next=8,this.authClient.AuthorizationHeader({libraryId:r,objectId:n,update:!0});case 8:return e.t1=e.sent,e.t2=s,e.t3={headers:e.t1,method:"DELETE",path:e.t2,allowFailover:!1},e.next=13,e.t0.Request.call(e.t0,e.t3);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}).call(this,r(5).Buffer)},function(e,t){},function(e,t,r){"use strict";r.r(t),r.d(t,"ethers",(function(){return c})),r.d(t,"Signer",(function(){return Kn})),r.d(t,"Wallet",(function(){return _s})),r.d(t,"VoidSigner",(function(){return Yn})),r.d(t,"getDefaultProvider",(function(){return Yh})),r.d(t,"providers",(function(){return o})),r.d(t,"BaseContract",(function(){return zi})),r.d(t,"Contract",(function(){return Wi})),r.d(t,"ContractFactory",(function(){return Vi})),r.d(t,"BigNumber",(function(){return m})),r.d(t,"FixedNumber",(function(){return ho})),r.d(t,"constants",(function(){return i})),r.d(t,"errors",(function(){return h.a})),r.d(t,"logger",(function(){return wd})),r.d(t,"utils",(function(){return s})),r.d(t,"wordlists",(function(){return la})),r.d(t,"version",(function(){return md})),r.d(t,"Wordlist",(function(){return ta}));var n={};r.r(n),r.d(n,"encode",(function(){return ne})),r.d(n,"decode",(function(){return ae}));var i={};r.r(i),r.d(i,"AddressZero",(function(){return Qs})),r.d(i,"NegativeOne",(function(){return Nt})),r.d(i,"Zero",(function(){return Tt})),r.d(i,"One",(function(){return Lt})),r.d(i,"Two",(function(){return Ft})),r.d(i,"WeiPerEther",(function(){return Ut})),r.d(i,"MaxUint256",(function(){return Gt})),r.d(i,"MinInt256",(function(){return Ht})),r.d(i,"MaxInt256",(function(){return qt})),r.d(i,"HashZero",(function(){return xs})),r.d(i,"EtherSymbol",(function(){return Rs}));var o={};r.r(o),r.d(o,"Provider",(function(){return Rn})),r.d(o,"BaseProvider",(function(){return wu})),r.d(o,"Resolver",(function(){return yu})),r.d(o,"UrlJsonRpcProvider",(function(){return Cf})),r.d(o,"FallbackProvider",(function(){return zl})),r.d(o,"AlchemyProvider",(function(){return Tf})),r.d(o,"AlchemyWebSocketProvider",(function(){return Nf})),r.d(o,"AnkrProvider",(function(){return Wf})),r.d(o,"CloudflareProvider",(function(){return cl})),r.d(o,"EtherscanProvider",(function(){return Cl})),r.d(o,"InfuraProvider",(function(){return ch})),r.d(o,"InfuraWebSocketProvider",(function(){return sh})),r.d(o,"JsonRpcProvider",(function(){return Yu})),r.d(o,"JsonRpcBatchProvider",(function(){return gh})),r.d(o,"NodesmithProvider",(function(){return Ch})),r.d(o,"PocketProvider",(function(){return jh})),r.d(o,"StaticJsonRpcProvider",(function(){return Bf})),r.d(o,"Web3Provider",(function(){return qh})),r.d(o,"WebSocketProvider",(function(){return uf})),r.d(o,"IpcProvider",(function(){return Wl})),r.d(o,"JsonRpcSigner",(function(){return Hu})),r.d(o,"getDefaultProvider",(function(){return Yh})),r.d(o,"getNetwork",(function(){return Ls})),r.d(o,"isCommunityResource",(function(){return Fc})),r.d(o,"isCommunityResourcable",(function(){return Lc})),r.d(o,"showThrottleMessage",(function(){return Gc})),r.d(o,"Formatter",(function(){return Tc}));var a={};r.r(a),r.d(a,"decode",(function(){return Fs})),r.d(a,"encode",(function(){return Us}));var s={};r.r(s),r.d(s,"AbiCoder",(function(){return Xr})),r.d(s,"defaultAbiCoder",(function(){return $r})),r.d(s,"Fragment",(function(){return Dr})),r.d(s,"ConstructorFragment",(function(){return Tr})),r.d(s,"ErrorFragment",(function(){return Ur})),r.d(s,"EventFragment",(function(){return jr})),r.d(s,"FunctionFragment",(function(){return Lr})),r.d(s,"ParamType",(function(){return Rr})),r.d(s,"FormatTypes",(function(){return Qr})),r.d(s,"checkResultErrors",(function(){return J})),r.d(s,"Logger",(function(){return h.b})),r.d(s,"RLP",(function(){return n})),r.d(s,"_fetchData",(function(){return Qc})),r.d(s,"fetchJson",(function(){return xc})),r.d(s,"poll",(function(){return Rc})),r.d(s,"checkProperties",(function(){return P})),r.d(s,"deepCopy",(function(){return L})),r.d(s,"defineReadOnly",(function(){return O})),r.d(s,"getStatic",(function(){return D})),r.d(s,"resolveProperties",(function(){return j})),r.d(s,"shallowCopy",(function(){return M})),r.d(s,"arrayify",(function(){return u.a})),r.d(s,"concat",(function(){return u.b})),r.d(s,"stripZeros",(function(){return u.o})),r.d(s,"zeroPad",(function(){return u.p})),r.d(s,"isBytes",(function(){return u.j})),r.d(s,"isBytesLike",(function(){return u.k})),r.d(s,"defaultPath",(function(){return Ea})),r.d(s,"HDNode",(function(){return Ba})),r.d(s,"SigningKey",(function(){return ei})),r.d(s,"Interface",(function(){return bn})),r.d(s,"LogDescription",(function(){return ln})),r.d(s,"TransactionDescription",(function(){return hn})),r.d(s,"base58",(function(){return Go})),r.d(s,"base64",(function(){return a})),r.d(s,"hexlify",(function(){return u.i})),r.d(s,"isHexString",(function(){return u.l})),r.d(s,"hexConcat",(function(){return u.c})),r.d(s,"hexStripZeros",(function(){return u.f})),r.d(s,"hexValue",(function(){return u.g})),r.d(s,"hexZeroPad",(function(){return u.h})),r.d(s,"hexDataLength",(function(){return u.d})),r.d(s,"hexDataSlice",(function(){return u.e})),r.d(s,"nameprep",(function(){return fd})),r.d(s,"_toEscapedUtf8String",(function(){return Se})),r.d(s,"toUtf8Bytes",(function(){return _e})),r.d(s,"toUtf8CodePoints",(function(){return Re})),r.d(s,"toUtf8String",(function(){return xe})),r.d(s,"Utf8ErrorFuncs",(function(){return Be})),r.d(s,"formatBytes32String",(function(){return ld})),r.d(s,"parseBytes32String",(function(){return hd})),r.d(s,"dnsEncode",(function(){return yc})),r.d(s,"hashMessage",(function(){return go})),r.d(s,"namehash",(function(){return bc})),r.d(s,"isValidName",(function(){return gc})),r.d(s,"id",(function(){return Oe})),r.d(s,"_TypedDataEncoder",(function(){return Mo})),r.d(s,"getAddress",(function(){return pe})),r.d(s,"getIcapAddress",(function(){return be})),r.d(s,"getContractAddress",(function(){return ye})),r.d(s,"getCreate2Address",(function(){return ve})),r.d(s,"isAddress",(function(){return ge})),r.d(s,"formatEther",(function(){return yd})),r.d(s,"parseEther",(function(){return vd})),r.d(s,"formatUnits",(function(){return gd})),r.d(s,"parseUnits",(function(){return bd})),r.d(s,"commify",(function(){return pd})),r.d(s,"computeHmac",(function(){return Wo})),r.d(s,"keccak256",(function(){return $})),r.d(s,"ripemd160",(function(){return Yo})),r.d(s,"sha256",(function(){return Jo})),r.d(s,"sha512",(function(){return zo})),r.d(s,"randomBytes",(function(){return xa.a})),r.d(s,"shuffled",(function(){return _l})),r.d(s,"solidityPack",(function(){return Zh})),r.d(s,"solidityKeccak256",(function(){return Xh})),r.d(s,"soliditySha256",(function(){return $h})),r.d(s,"splitSignature",(function(){return u.n})),r.d(s,"joinSignature",(function(){return u.m})),r.d(s,"accessListify",(function(){return di})),r.d(s,"parseTransaction",(function(){return vi})),r.d(s,"serializeTransaction",(function(){return bi})),r.d(s,"TransactionTypes",(function(){return ni})),r.d(s,"getJsonWalletAddress",(function(){return As})),r.d(s,"computeAddress",(function(){return ui})),r.d(s,"recoverAddress",(function(){return fi})),r.d(s,"computePublicKey",(function(){return ri})),r.d(s,"recoverPublicKey",(function(){return ti})),r.d(s,"verifyMessage",(function(){return ks})),r.d(s,"verifyTypedData",(function(){return Ss})),r.d(s,"getAccountPath",(function(){return Qa})),r.d(s,"mnemonicToEntropy",(function(){return _a})),r.d(s,"entropyToMnemonic",(function(){return ka})),r.d(s,"isValidMnemonic",(function(){return Sa})),r.d(s,"mnemonicToSeed",(function(){return Ca})),r.d(s,"SupportedAlgorithm",(function(){return Fo})),r.d(s,"UnicodeNormalizationForm",(function(){return me})),r.d(s,"Utf8ErrorReason",(function(){return we})),r.d(s,"Indexed",(function(){return An}));var c={};r.r(c),r.d(c,"Signer",(function(){return Kn})),r.d(c,"Wallet",(function(){return _s})),r.d(c,"VoidSigner",(function(){return Yn})),r.d(c,"getDefaultProvider",(function(){return Yh})),r.d(c,"providers",(function(){return o})),r.d(c,"BaseContract",(function(){return zi})),r.d(c,"Contract",(function(){return Wi})),r.d(c,"ContractFactory",(function(){return Vi})),r.d(c,"BigNumber",(function(){return m})),r.d(c,"FixedNumber",(function(){return ho})),r.d(c,"constants",(function(){return i})),r.d(c,"errors",(function(){return h.a})),r.d(c,"logger",(function(){return wd})),r.d(c,"utils",(function(){return s})),r.d(c,"wordlists",(function(){return la})),r.d(c,"version",(function(){return md})),r.d(c,"Wordlist",(function(){return ta}));var u=r(0),f=r(2),l=r.n(f),h=r(1);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var g=l.a.BN,b=new h.b("bignumber/5.7.0"),y={};var v=!1,m=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==y&&b.throwError("cannot call constructor directly; use BigNumber.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return t=e,n=[{key:"from",value:function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(y,w(t)):t.match(/^-?[0-9]+$/)?new e(y,w(new g(t))):b.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&B("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&B("overflow","BigNumber.from",t),e.from(String(t));var r=t;if("bigint"==typeof r)return e.from(r.toString());if(Object(u.j)(r))return e.from(Object(u.i)(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"==typeof n)return e.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&(Object(u.l)(i)||"-"===i[0]&&Object(u.l)(i.substring(1))))return e.from(i)}return b.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}],(r=[{key:"fromTwos",value:function(e){return I(E(this).fromTwos(e))}},{key:"toTwos",value:function(e){return I(E(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return I(E(this).add(E(e)))}},{key:"sub",value:function(e){return I(E(this).sub(E(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&B("division-by-zero","div"),I(E(this).div(E(t)))}},{key:"mul",value:function(e){return I(E(this).mul(E(e)))}},{key:"mod",value:function(e){var t=E(e);return t.isNeg()&&B("division-by-zero","mod"),I(E(this).umod(t))}},{key:"pow",value:function(e){var t=E(e);return t.isNeg()&&B("negative-power","pow"),I(E(this).pow(t))}},{key:"and",value:function(e){var t=E(e);return(this.isNegative()||t.isNeg())&&B("unbound-bitwise-result","and"),I(E(this).and(t))}},{key:"or",value:function(e){var t=E(e);return(this.isNegative()||t.isNeg())&&B("unbound-bitwise-result","or"),I(E(this).or(t))}},{key:"xor",value:function(e){var t=E(e);return(this.isNegative()||t.isNeg())&&B("unbound-bitwise-result","xor"),I(E(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&B("negative-width","mask"),I(E(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&B("negative-width","shl"),I(E(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&B("negative-width","shr"),I(E(this).shrn(e))}},{key:"eq",value:function(e){return E(this).eq(E(e))}},{key:"lt",value:function(e){return E(this).lt(E(e))}},{key:"lte",value:function(e){return E(this).lte(E(e))}},{key:"gt",value:function(e){return E(this).gt(E(e))}},{key:"gte",value:function(e){return E(this).gte(E(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return E(this).isZero()}},{key:"toNumber",value:function(){try{return E(this).toNumber()}catch(e){B("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return b.throwError("this platform does not support BigInt",h.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?v||(v=!0,b.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?b.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.b.errors.UNEXPECTED_ARGUMENT,{}):b.throwError("BigNumber.toString does not accept parameters",h.b.errors.UNEXPECTED_ARGUMENT,{})),E(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}])&&A(t.prototype,r),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function w(e){if("string"!=typeof e)return w(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&b.throwArgumentError("invalid hex","value",e),"0x00"===(e=w(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function I(e){return m.from(w(e))}function E(e){var t=m.from(e).toHexString();return"-"===t[0]?new g("-"+t.substring(3),16):new g(t.substring(2),16)}function B(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),b.throwError(e,h.b.errors.NUMERIC_FAULT,n)}function C(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,k(n.key),n)}}function _(e,t,r){return t&&C(e.prototype,t),r&&C(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}function S(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(O([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Q(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Q(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var x=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},R=new h.b("properties/5.7.0");function O(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function D(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==Q(e.prototype))break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function j(e){return x(this,void 0,void 0,S().mark((function t(){var r,n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object.keys(e).map((function(t){var r=e[t];return Promise.resolve(r).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(r);case 3:return n=t.sent,t.abrupt("return",n.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function P(e,t){e&&"object"===Q(e)||R.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(r){t[r]||R.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function M(e){var t={};for(var r in e)t[r]=e[r];return t}var N={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function T(e){if(function e(t){if(null==t||N[Q(t)])return!0;if(Array.isArray(t)||"object"===Q(t)){if(!Object.isFrozen(t))return!1;for(var r=Object.keys(t),n=0;n<r.length;n++){var i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return R.throwArgumentError("Cannot deepCopy ".concat(Q(t)),"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return L(e)})));if("object"===Q(e)){var t={};for(var r in e){var n=e[r];void 0!==n&&O(t,r,L(n))}return t}return R.throwArgumentError("Cannot deepCopy ".concat(Q(e)),"object",e)}function L(e){return T(e)}var F=_((function e(t){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t)this[r]=L(t[r])}));function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(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,K(n.key),n)}}function q(e,t,r){return t&&H(e.prototype,t),r&&H(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}var Y=new h.b("abi/5.7.0");function J(e){var t=[];return function e(r,n){if(Array.isArray(n))for(var i in n){var o=r.slice();o.push(i);try{e(o,n[i])}catch(e){t.push({path:o,error:e})}}}([],e),t}var z=function(){return q((function e(t,r,n,i){G(this,e),this.name=t,this.type=r,this.localName=n,this.dynamic=i}),[{key:"_throwError",value:function(e,t){Y.throwArgumentError(e,this.localName,t)}}])}(),W=function(){return q((function e(t){G(this,e),O(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}),[{key:"data",get:function(){return Object(u.c)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData(Object(u.b)(e._data))}},{key:"writeBytes",value:function(e){var t=Object(u.a)(e),r=t.length%this.wordSize;return r&&(t=Object(u.b)([t,this._padding.slice(r)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=Object(u.a)(m.from(e));return t.length>this.wordSize&&Y.throwError("value out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(u.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}])}(),V=function(){function e(t,r,n,i){G(this,e),O(this,"_data",Object(u.a)(t)),O(this,"wordSize",r||32),O(this,"_coerceFunc",n),O(this,"allowLoose",i),this._offset=0}return q(e,[{key:"data",get:function(){return Object(u.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:Y.throwError("data out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return m.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}])}(),Z=r(190),X=r.n(Z);function $(e){return"0x"+X.a.keccak_256(Object(u.a)(e))}var ee=new h.b("rlp/5.7.0");function te(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function re(e,t,r){for(var n=0,i=0;i<r;i++)n=256*n+e[t+i];return n}function ne(e){return Object(u.i)(function e(t){if(Array.isArray(t)){var r=[];if(t.forEach((function(t){r=r.concat(e(t))})),r.length<=55)return r.unshift(192+r.length),r;var n=te(r.length);return n.unshift(247+n.length),n.concat(r)}Object(u.k)(t)||ee.throwArgumentError("RLP object must be BytesLike","object",t);var i=Array.prototype.slice.call(Object(u.a)(t));if(1===i.length&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;var o=te(i.length);return o.unshift(183+o.length),o.concat(i)}(e))}function ie(e,t,r,n){for(var i=[];r<t+1+n;){var o=oe(e,r);i.push(o.result),(r+=o.consumed)>t+1+n&&ee.throwError("child data too short",h.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function oe(e,t){if(0===e.length&&ee.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&ee.throwError("data short segment too short",h.b.errors.BUFFER_OVERRUN,{});var n=re(e,t+1,r);return t+1+r+n>e.length&&ee.throwError("data long segment too short",h.b.errors.BUFFER_OVERRUN,{}),ie(e,t,t+1+r,r+n)}if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&ee.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),ie(e,t,t+1,i)}if(e[t]>=184){var o=e[t]-183;t+1+o>e.length&&ee.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{});var a=re(e,t+1,o);return t+1+o+a>e.length&&ee.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+o+a,result:Object(u.i)(e.slice(t+1+o,t+1+o+a))}}if(e[t]>=128){var s=e[t]-128;return t+1+s>e.length&&ee.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:Object(u.i)(e.slice(t+1,t+1+s))}}return{consumed:1,result:Object(u.i)(e[t])}}function ae(e){var t=Object(u.a)(e),r=oe(t,0);return r.consumed!==t.length&&ee.throwArgumentError("invalid rlp data","data",e),r.result}var se=new h.b("address/5.7.0");function ce(e){Object(u.l)(e,20)||se.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var i=Object(u.a)($(r)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(t[o]=t[o].toUpperCase()),(15&i[o>>1])>=8&&(t[o+1]=t[o+1].toUpperCase());return"0x"+t.join("")}for(var ue={},fe=0;fe<10;fe++)ue[String(fe)]=String(fe);for(var le=0;le<26;le++)ue[String.fromCharCode(65+le)]=String(10+le);var he,de=Math.floor((he=9007199254740991,Math.log10?Math.log10(he):Math.log(he)/Math.LN10));function Ae(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return ue[e]})).join("");t.length>=de;){var r=t.substring(0,de);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function pe(e){var t,r=null;if("string"!=typeof e&&se.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=ce(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&se.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==Ae(e)&&se.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new g(t,36).toString(16);r.length<40;)r="0"+r;r=ce("0x"+r)}else se.throwArgumentError("invalid address","address",e);return r}function ge(e){try{return pe(e),!0}catch(e){}return!1}function be(e){for(var t,r=(t=pe(e).substring(2),new g(t,16).toString(36)).toUpperCase();r.length<30;)r="0"+r;return"XE"+Ae("XE00"+r)+r}function ye(e){var t=null;try{t=pe(e.from)}catch(t){se.throwArgumentError("missing from address","transaction",e)}var r=Object(u.o)(Object(u.a)(m.from(e.nonce).toHexString()));return pe(Object(u.e)($(ne([t,r])),12))}function ve(e,t,r){return 32!==Object(u.d)(t)&&se.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(u.d)(r)&&se.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),pe(Object(u.e)($(Object(u.b)(["0xff",pe(e),t,r])),12))}var me,we,Ie=new h.b("strings/5.7.0");function Ee(e,t,r,n,i){if(e===we.BAD_PREFIX||e===we.UNEXPECTED_CONTINUE){for(var o=0,a=t+1;a<r.length&&r[a]>>6==2;a++)o++;return o}return e===we.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(me||(me={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(we||(we={}));var Be=Object.freeze({error:function(e,t,r,n,i){return Ie.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:Ee,replace:function(e,t,r,n,i){return e===we.OVERLONG?(n.push(i),0):(n.push(65533),Ee(e,t,r))}});function Ce(e,t){null==t&&(t=Be.error),e=Object(u.a)(e);for(var r=[],n=0;n<e.length;){var i=e[n++];if(i>>7!=0){var o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){n+=t(128==(192&i)?we.UNEXPECTED_CONTINUE:we.BAD_PREFIX,n-1,e,r);continue}o=3,a=65535}if(n-1+o>=e.length)n+=t(we.OVERRUN,n-1,e,r);else{for(var s=i&(1<<8-o-1)-1,c=0;c<o;c++){var f=e[n];if(128!=(192&f)){n+=t(we.MISSING_CONTINUE,n,e,r),s=null;break}s=s<<6|63&f,n++}null!==s&&(s>1114111?n+=t(we.OUT_OF_RANGE,n-1-o,e,r,s):s>=55296&&s<=57343?n+=t(we.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(we.OVERLONG,n-1-o,e,r,s):r.push(s))}}else r.push(i)}return r}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:me.current;t!=me.current&&(Ie.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if(55296==(64512&i)){n++;var o=e.charCodeAt(n);if(n>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string");var a=65536+((1023&i)<<10)+(1023&o);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return Object(u.a)(r)}function ke(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function Se(e,t){return'"'+Ce(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?ke(e):ke(55296+((e-=65536)>>10&1023))+ke(56320+(1023&e))})).join("")+'"'}function Qe(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function xe(e,t){return Qe(Ce(e,t))}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:me.current;return Ce(_e(e,t))}function Oe(e){return $(_e(e))}function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(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,Pe(n.key),n)}}function Pe(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}function Me(e,t,r){return t=Ne(t),function(e,t){if(t&&("object"==De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ne(e).constructor):t.apply(e,r))}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Te(e,t){return(Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Le=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Me(this,t,["address","address",e,!1])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Te(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=pe(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return pe(Object(u.h)(e.readValue().toHexString(),20))}}])&&je(r.prototype,n),i&&je(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(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,Ge(n.key),n)}}function Ge(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function He(e,t,r){return t=qe(t),function(e,t){if(t&&("object"==Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],qe(e).constructor):t.apply(e,r))}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e,t){return(Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ye=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=He(this,t,[e.name,e.type,void 0,e.dynamic])).coder=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ke(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}])&&Ue(r.prototype,n),i&&Ue(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function Je(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,ze(n.key),n)}}function ze(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xe(t)?t:t+""}function We(e,t,r){return t=Ve(t),function(e,t){if(t&&("object"==Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ve(e).constructor):t.apply(e,r))}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ze(e,t){return(Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $e=new h.b("abi/5.7.0");function et(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===Xe(r)){var i={};n=t.map((function(e){var t=e.localName;return t||$e.throwError("cannot encode object for signature with missing names",h.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]&&$e.throwError("cannot encode object for signature with duplicate names",h.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]=!0,r[t]}))}else $e.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&$e.throwArgumentError("types/value length mismatch","tuple",r);var o=new W(e.wordSize),a=new W(e.wordSize),s=[];t.forEach((function(e,t){var r=n[t];if(e.dynamic){var i=a.length;e.encode(a,r);var c=o.writeUpdatableValue();s.push((function(e){c(e+i)}))}else e.encode(o,r)})),s.forEach((function(e){e(o.length)}));var c=e.appendWriter(o);return c+=e.appendWriter(a)}function tt(e,t){var r=[],n=e.subReader(0);t.forEach((function(t){var i=null;if(t.dynamic){var o=e.readValue(),a=n.subReader(o.toNumber());try{i=t.decode(a)}catch(e){if(e.code===h.b.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===h.b.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));var i=t.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach((function(e,t){var n=e.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw o}}):r[n]=o}}));for(var o=function(){var e=r[a];e instanceof Error&&Object.defineProperty(r,a,{enumerable:!0,get:function(){throw e}})},a=0;a<r.length;a++)o();return Object.freeze(r)}var rt=function(e){function t(e,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=We(this,t,["array",e.type+"["+(r>=0?r:"")+"]",n,-1===r||e.dynamic])).coder=e,i.length=r,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;r<this.length;r++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),$e.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<t.length;i++)n.push(this.coder);return et(e,n,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&$e.throwError("insufficient data length",h.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n<t;n++)r.push(new Ye(this.coder));return e.coerce(this.name,tt(e,r))}}])&&Je(r.prototype,n),i&&Je(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(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,ot(n.key),n)}}function ot(e){var t=function(e,t){if("object"!=nt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nt(t)?t:t+""}function at(e,t,r){return t=st(t),function(e,t){if(t&&("object"==nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],st(e).constructor):t.apply(e,r))}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ut=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),at(this,t,["bool","bool",e,!1])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}])&&it(r.prototype,n),i&&it(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(){return(lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ht(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function ht(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=yt(e)););return e}function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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,gt(n.key),n)}}function pt(e,t,r){return t&&At(e.prototype,t),r&&At(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gt(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:t+""}function bt(e,t,r){return t=yt(t),function(e,t){if(t&&("object"==ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],yt(e).constructor):t.apply(e,r))}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wt=function(e){function t(e,r){return dt(this,t),bt(this,t,[e,e,r,!0])}return vt(t,e),pt(t,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){t=Object(u.a)(t);var r=e.writeValue(t.length);return r+=e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}])}(z),It=function(e){function t(e){return dt(this,t),bt(this,t,["bytes",e])}return vt(t,e),pt(t,[{key:"decode",value:function(e){return e.coerce(this.name,Object(u.i)(lt(yt(t.prototype),"decode",this).call(this,e)))}}])}(wt);function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bt(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,Ct(n.key),n)}}function Ct(e){var t=function(e,t){if("object"!=Et(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Et(t)?t:t+""}function _t(e,t,r){return t=kt(t),function(e,t){if(t&&("object"==Et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],kt(e).constructor):t.apply(e,r))}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qt=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i="bytes"+String(e);return(n=_t(this,t,[i,i,r,!1])).size=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var r=Object(u.a)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}},{key:"decode",value:function(e){return e.coerce(this.name,Object(u.i)(e.readBytes(this.size)))}}])&&Bt(r.prototype,n),i&&Bt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(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,Ot(n.key),n)}}function Ot(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xt(t)?t:t+""}function Dt(e,t,r){return t=jt(t),function(e,t){if(t&&("object"==xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],jt(e).constructor):t.apply(e,r))}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pt(e,t){return(Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Mt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(this,t,["null","",e,!1])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pt(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}])&&Rt(r.prototype,n),i&&Rt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z),Nt=m.from(-1),Tt=m.from(0),Lt=m.from(1),Ft=m.from(2),Ut=m.from("1000000000000000000"),Gt=m.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ht=m.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),qt=m.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Kt(e){return(Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(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,Jt(n.key),n)}}function Jt(e){var t=function(e,t){if("object"!=Kt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kt(t)?t:t+""}function zt(e,t,r){return t=Wt(t),function(e,t){if(t&&("object"==Kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Wt(e).constructor):t.apply(e,r))}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vt(e,t){return(Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Zt=function(e){function t(e,r,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(r?"int":"uint")+8*e;return(i=zt(this,t,[o,o,n,!1])).size=e,i.signed=r,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var r=m.from(t),n=Gt.mask(8*e.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(Lt).mul(Nt)))&&this._throwError("value out-of-bounds",t)}else(r.lt(Tt)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}])&&Yt(r.prototype,n),i&&Yt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(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,er(n.key),n)}}function er(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xt(t)?t:t+""}function tr(e,t,r){return t=ir(t),function(e,t){if(t&&("object"==Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ir(e).constructor):t.apply(e,r))}function rr(){return(rr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=nr(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function nr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ir(e)););return e}function ir(e){return(ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function or(e,t){return(or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ar=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tr(this,t,["string",e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,r){return rr(ir(t.prototype),"encode",this).call(this,e,_e(r))}},{key:"decode",value:function(e){return xe(rr(ir(t.prototype),"decode",this).call(this,e))}}])&&$t(r.prototype,n),i&&$t(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(wt);function sr(e){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(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,ur(n.key),n)}}function ur(e){var t=function(e,t){if("object"!=sr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sr(t)?t:t+""}function fr(e,t,r){return t=lr(t),function(e,t){if(t&&("object"==sr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],lr(e).constructor):t.apply(e,r))}function lr(e){return(lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hr(e,t){return(hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var dr=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=!1,o=[];return e.forEach((function(e){e.dynamic&&(i=!0),o.push(e.type)})),(n=fr(this,t,["tuple","tuple("+o.join(",")+")",r,i])).coders=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hr(e,t)}(t,e),r=t,(n=[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach((function(r,n){var i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return et(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,tt(e,this.coders))}}])&&cr(r.prototype,n),i&&cr(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(z);function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(e,t,r){return t=gr(t),function(e,t){if(t&&("object"==Ar(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],gr(e).constructor):t.apply(e,r))}function gr(e){return(gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function br(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yr(e,t)}function yr(e,t){return(yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mr(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,Ir(n.key),n)}}function wr(e,t,r){return t&&mr(e.prototype,t),r&&mr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ir(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:t+""}var Er=new h.b("abi/5.7.0"),Br={},Cr={calldata:!0,memory:!0,storage:!0},_r={calldata:!0,memory:!0};function kr(e,t){if("bytes"===e||"string"===e){if(Cr[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&_r[t])return!0;return(Cr[t]||"payable"===t)&&Er.throwArgumentError("invalid modifier","name",t),!1}function Sr(e,t){for(var r in t)O(e,r,t[r])}var Qr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),xr=new RegExp(/^(.*)\[([0-9]*)\]$/),Rr=function(){function e(t,r){vr(this,e),t!==Br&&Er.throwError("use fromString",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Sr(this,r);var n=this.type.match(xr);Sr(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return wr(e,[{key:"format",value:function(e){if(e||(e=Qr.sighash),Qr[e]||Er.throwArgumentError("invalid format type","format",e),e===Qr.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==Qr.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===Qr.full?", ":",")+")"):r+=this.type,e!==Qr.sighash&&(!0===this.indexed&&(r+=" indexed"),e===Qr.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(Br,{name:t.name||null,type:Gr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e;function n(t){Er.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<e.length;s++){var c=e[s];switch(c){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=Gr(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),kr(a.type,a.name)&&(a.name=""),a.type=Gr(a.type);var u=a;(a=a.parent)||n(s),delete u.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),kr(a.type,a.name)&&(a.name=""),a.type=Gr(a.type);var f=i(a.parent);a.parent.components.push(f),delete a.parent,a=f;break;case" ":a.state.allowType&&""!==a.type&&(a.type=Gr(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):kr(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=c,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=c,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=c,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=c,delete a.state.allowArray):a.state.readArray?a.type+=c:n(s)}}return a.parent&&Er.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):kr(a.type,a.name)&&(a.name=""),o.type=Gr(o.type),o}(t,!!r))}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}])}();function Or(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1===--n&&Er.throwArgumentError("unbalanced parenthesis","value",e))}r&&t.push(r);return t}(e).map((function(e){return Rr.fromString(e,t)}))}var Dr=function(){function e(t,r){vr(this,e),t!==Br&&Er.throwError("use a static from method",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Sr(this,r),this._isFragment=!0,Object.freeze(this)}return wr(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"==typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return Lr.fromObject(t);case"event":return jr.fromObject(t);case"constructor":return Tr.fromObject(t);case"error":return Ur.fromObject(t);case"fallback":case"receive":return null}return Er.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?jr.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Lr.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Tr.fromString(e.trim()):"error"===e.split(" ")[0]?Ur.fromString(e.substring(5).trim()):Er.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}])}(),jr=function(e){function t(){return vr(this,t),pr(this,t,arguments)}return br(t,e),wr(t,[{key:"format",value:function(e){if(e||(e=Qr.sighash),Qr[e]||Er.throwArgumentError("invalid format type","format",e),e===Qr.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Qr.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Qr.full?", ":",")+") ",e!==Qr.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)}},{key:"fromObject",value:function(e){if(t.isEventFragment(e))return e;"event"!==e.type&&Er.throwArgumentError("invalid event object","value",e);var r={name:qr(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Rr.fromObject):[],type:"event"};return new t(Br,r)}},{key:"fromString",value:function(e){var r=e.match(Kr);r||Er.throwArgumentError("invalid event string","value",e);var n=!1;return r[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:Er.warn("unknown modifier: "+e)}})),t.fromObject({name:r[1].trim(),anonymous:n,inputs:Or(r[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}])}(Dr);function Pr(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(r.length>2&&Er.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||Er.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=m.from(r[1]),r[0]):e}function Mr(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function Nr(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&Er.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&Er.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||Er.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&Er.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&Er.throwArgumentError("unable to determine stateMutability","value",e),t}var Tr=function(e){function t(){return vr(this,t),pr(this,t,arguments)}return br(t,e),wr(t,[{key:"format",value:function(e){if(e||(e=Qr.sighash),Qr[e]||Er.throwArgumentError("invalid format type","format",e),e===Qr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===Qr.sighash&&Er.throwError("cannot format a constructor for sighash",h.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===Qr.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)}},{key:"fromObject",value:function(e){if(t.isConstructorFragment(e))return e;"constructor"!==e.type&&Er.throwArgumentError("invalid constructor object","value",e);var r=Nr(e);r.constant&&Er.throwArgumentError("constructor cannot be constant","value",e);var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Rr.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?m.from(e.gas):null};return new t(Br,n)}},{key:"fromString",value:function(e){var r={type:"constructor"},n=(e=Pr(e,r)).match(Kr);return n&&"constructor"===n[1].trim()||Er.throwArgumentError("invalid constructor string","value",e),r.inputs=Or(n[2].trim(),!1),Mr(n[3].trim(),r),t.fromObject(r)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}])}(Dr),Lr=function(e){function t(){return vr(this,t),pr(this,t,arguments)}return br(t,e),wr(t,[{key:"format",value:function(e){if(e||(e=Qr.sighash),Qr[e]||Er.throwArgumentError("invalid format type","format",e),e===Qr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Qr.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Qr.full?", ":",")+") ",e!==Qr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)}},{key:"fromObject",value:function(e){if(t.isFunctionFragment(e))return e;"function"!==e.type&&Er.throwArgumentError("invalid function object","value",e);var r=Nr(e),n={type:e.type,name:qr(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(Rr.fromObject):[],outputs:e.outputs?e.outputs.map(Rr.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?m.from(e.gas):null};return new t(Br,n)}},{key:"fromString",value:function(e){var r={type:"function"},n=(e=Pr(e,r)).split(" returns ");n.length>2&&Er.throwArgumentError("invalid function string","value",e);var i=n[0].match(Kr);if(i||Er.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&qr(r.name),r.inputs=Or(i[2],!1),Mr(i[3].trim(),r),n.length>1){var o=n[1].match(Kr);""==o[1].trim()&&""==o[3].trim()||Er.throwArgumentError("unexpected tokens","value",e),r.outputs=Or(o[2],!1)}else r.outputs=[];return t.fromObject(r)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}])}(Tr);function Fr(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||Er.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var Ur=function(e){function t(){return vr(this,t),pr(this,t,arguments)}return br(t,e),wr(t,[{key:"format",value:function(e){if(e||(e=Qr.sighash),Qr[e]||Er.throwArgumentError("invalid format type","format",e),e===Qr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Qr.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Qr.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)}},{key:"fromObject",value:function(e){if(t.isErrorFragment(e))return e;"error"!==e.type&&Er.throwArgumentError("invalid error object","value",e);var r={type:e.type,name:qr(e.name),inputs:e.inputs?e.inputs.map(Rr.fromObject):[]};return Fr(new t(Br,r))}},{key:"fromString",value:function(e){var r={type:"error"},n=e.match(Kr);return n||Er.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&qr(r.name),r.inputs=Or(n[2],!1),Fr(t.fromObject(r))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}])}(Dr);function Gr(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var Hr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function qr(e){return e&&e.match(Hr)||Er.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var Kr=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jr(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,zr(n.key),n)}}function zr(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}var Wr=new h.b("abi/5.7.0"),Vr=new RegExp(/^bytes([0-9]*)$/),Zr=new RegExp(/^(u?int)([0-9]*)$/),Xr=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,"coerceFunc",t||null)},(t=[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new Le(e.name);case"bool":return new ut(e.name);case"string":return new ar(e.name);case"bytes":return new It(e.name);case"array":return new rt(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new dr((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new Mt(e.name)}var r=e.type.match(Zr);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!=0)&&Wr.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Zt(n/8,"int"===r[1],e.name)}if(r=e.type.match(Vr)){var i=parseInt(r[1]);return(0===i||i>32)&&Wr.throwArgumentError("invalid bytes length","param",e),new Qt(i,e.name)}return Wr.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new V(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new W(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(Rr.from(e))}));return new dr(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&Wr.throwError("types/values length mismatch",h.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(Rr.from(e))})),i=new dr(n,"_"),o=this._getWriter();return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(Rr.from(e))}));return new dr(i,"_").decode(this._getReader(Object(u.a)(t),r))}}])&&Jr(e.prototype,t),r&&Jr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),$r=new Xr;function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(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,nn(n.key),n)}}function rn(e,t,r){return t&&tn(e.prototype,t),r&&tn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nn(e){var t=function(e,t){if("object"!=en(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==en(t)?t:t+""}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t,r){return t=sn(t),function(e,t){if(t&&("object"==en(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],sn(e).constructor):t.apply(e,r))}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}function un(e,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fn=new h.b("abi/5.7.0"),ln=function(e){function t(){return on(this,t),an(this,t,arguments)}return cn(t,e),rn(t)}(F),hn=function(e){function t(){return on(this,t),an(this,t,arguments)}return cn(t,e),rn(t)}(F),dn=function(e){function t(){return on(this,t),an(this,t,arguments)}return cn(t,e),rn(t)}(F),An=function(e){function t(){return on(this,t),an(this,t,arguments)}return cn(t,e),rn(t,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}])}(F),pn={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function gn(e,t){var r=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return r.error=t,r}var bn=function(){return rn((function e(t){var r=this;on(this,e),O(this,"fragments",("string"==typeof t?JSON.parse(t):t).map((function(e){return Dr.from(e)})).filter((function(e){return null!=e}))),O(this,"_abiCoder",D(this instanceof e?this.constructor:void 0,"getAbiCoder")()),O(this,"functions",{}),O(this,"errors",{}),O(this,"events",{}),O(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return r.deploy?void fn.warn("duplicate definition - constructor"):void O(r,"deploy",e);case"function":t=r.functions;break;case"event":t=r.events;break;case"error":t=r.errors;break;default:return}var n=e.format();t[n]?fn.warn("duplicate definition - "+n):t[n]=e})),this.deploy||O(this,"deploy",Tr.from({payable:!1,type:"constructor"})),O(this,"_isInterface",!0)}),[{key:"format",value:function(e){e||(e=Qr.full),e===Qr.sighash&&fn.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===Qr.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if(Object(u.l)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];fn.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?fn.throwArgumentError("no matching function","name",r):n.length>1&&fn.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[Lr.fromString(e).format()];return i||fn.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(Object(u.l)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];fn.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?fn.throwArgumentError("no matching event","name",n):i.length>1&&fn.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[jr.fromString(e).format()];return o||fn.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if(Object(u.l)(e)){var t=D(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}fn.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?fn.throwArgumentError("no matching error","name",n):i.length>1&&fn.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[Lr.fromString(e).format()];return o||fn.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return D(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),D(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var r=Object(u.a)(t);return Object(u.i)(r.slice(0,4))!==this.getSighash(e)&&fn.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(u.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(u.i)(Object(u.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(u.a)(t);return Object(u.i)(r.slice(0,4))!==this.getSighash(e)&&fn.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(u.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(u.i)(Object(u.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(u.a)(t),n=null,i="",o=null,a=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(l){}break;case 4:var c=Object(u.i)(r.slice(0,4)),f=pn[c];if(f)o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.signature,f.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var l=this.getError(c);o=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,s=l.format()}catch(l){}}return fn.throwError("call revert exception"+i,h.b.errors.CALL_EXCEPTION,{method:e.format(),data:Object(u.i)(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(u.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&fn.throwError("too many arguments for "+e.format(),h.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var i=function(e,t){return"string"===e.type?Oe(t):"bytes"===e.type?$(Object(u.i)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=m.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(u.h)(Object(u.i)(t),32))};for(t.forEach((function(t,r){var o=e.inputs[r];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?fn.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(o,e)}))):n.push(i(o,t)):null!=t&&fn.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],i=[],o=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&fn.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a];if(e.indexed)if("string"===e.type)n.push(Oe(s));else if("bytes"===e.type)n.push($(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);Object(u.l)(r[0],32)&&r[0].toLowerCase()===n||fn.throwError("fragment/topic mismatch",h.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(Rr.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))}));var s=null!=r?this._abiCoder.decode(i,Object(u.b)(r)):null,c=this._abiCoder.decode(o,t,!0),f=[],l=0,d=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)f[t]=new An({_isIndexed:!0,hash:null});else if(a[t])f[t]=new An({_isIndexed:!0,hash:s[d++]});else try{f[t]=s[d++]}catch(e){f[t]=e}else try{f[t]=c[l++]}catch(e){f[t]=e}if(e.name&&null==f[e.name]){var r=f[t];r instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:function(){throw gn("property ".concat(JSON.stringify(e.name)),r)}}):f[e.name]=r}}));for(var A=function(e){var t=f[e];t instanceof Error&&Object.defineProperty(f,e,{enumerable:!0,get:function(){throw gn("index ".concat(e),t)}})},p=0;p<f.length;p++)A(p);return Object.freeze(f)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new hn({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:m.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new ln({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}},{key:"parseError",value:function(e){var t=Object(u.i)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new dn({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}}],[{key:"getAbiCoder",value:function(){return $r}},{key:"getAddress",value:function(e){return pe(e)}},{key:"getSighash",value:function(e){return Object(u.e)(Oe(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return Oe(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}])}();function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==yn(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(yn(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(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,En(n.key),n)}}function In(e,t,r){return t&&wn(e.prototype,t),r&&wn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function En(e){var t=function(e,t){if("object"!=yn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yn(t)?t:t+""}function Bn(e,t,r){return t=Cn(t),function(e,t){if(t&&("object"==yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Cn(e).constructor):t.apply(e,r))}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kn(e,t)}function kn(e,t){return(kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Sn=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Qn=new h.b("abstract-provider/5.7.0"),xn=function(e){function t(){return mn(this,t),Bn(this,t,arguments)}return _n(t,e),In(t,null,[{key:"isForkEvent",value:function(e){return!(!e||!e._isForkEvent)}}])}(F),Rn=function(){return In((function e(){mn(this,e),Qn.checkAbstract(this instanceof e?this.constructor:void 0,e),O(this,"_isProvider",!0)}),[{key:"getFeeData",value:function(){return Sn(this,void 0,void 0,vn().mark((function e(){var t,r,n,i,o,a;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(e){return null}))});case 2:return t=e.sent,r=t.block,n=t.gasPrice,i=null,o=null,a=null,r&&r.baseFeePerGas&&(i=r.baseFeePerGas,a=m.from("1500000000"),o=r.baseFeePerGas.mul(2).add(a)),e.abrupt("return",{lastBaseFeePerGas:i,maxFeePerGas:o,maxPriorityFeePerGas:a,gasPrice:n});case 8:case"end":return e.stop()}}),e,this)})))}},{key:"addListener",value:function(e,t){return this.on(e,t)}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"isProvider",value:function(e){return!(!e||!e._isProvider)}}])}();function On(e){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t,r){return t=jn(t),function(e,t){if(t&&("object"==On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],jn(e).constructor):t.apply(e,r))}function jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pn(e,t){return(Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Mn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==On(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(On(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(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,Fn(n.key),n)}}function Ln(e,t,r){return t&&Tn(e.prototype,t),r&&Tn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fn(e){var t=function(e,t){if("object"!=On(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=On(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==On(t)?t:t+""}var Un=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Gn=new h.b("abstract-signer/5.7.0"),Hn=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],qn=[h.b.errors.INSUFFICIENT_FUNDS,h.b.errors.NONCE_EXPIRED,h.b.errors.REPLACEMENT_UNDERPRICED],Kn=function(){return Ln((function e(){Nn(this,e),Gn.checkAbstract(this instanceof e?this.constructor:void 0,e),O(this,"_isSigner",!0)}),[{key:"getBalance",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){var r;return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,j(this.checkTransaction(e));case 3:return r=t.sent,t.next=6,this.provider.estimateGas(r);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return Un(this,void 0,void 0,Mn().mark((function r(){var n;return Mn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._checkProvider("call"),r.next=3,j(this.checkTransaction(e));case 3:return n=r.sent,r.next=6,this.provider.call(n,t);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"sendTransaction",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){var r,n;return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("sendTransaction"),t.next=3,this.populateTransaction(e);case 3:return r=t.sent,t.next=6,this.signTransaction(r);case 6:return n=t.sent,t.next=9,this.provider.sendTransaction(n);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getChainId",value:function(){return Un(this,void 0,void 0,Mn().mark((function e(){var t;return Mn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Un(this,void 0,void 0,Mn().mark((function e(){return Mn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getFeeData",value:function(){return Un(this,void 0,void 0,Mn().mark((function e(){return Mn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getFeeData"),e.next=3,this.provider.getFeeData();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===Hn.indexOf(t)&&Gn.throwArgumentError("invalid transaction key: "+t,"transaction",e);var r=M(e);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&Gn.throwArgumentError("from address mismatch","transaction",e),t[0]})),r}},{key:"populateTransaction",value:function(e){return Un(this,void 0,void 0,Mn().mark((function t(){var r,n,i,o,a=this;return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j(this.checkTransaction(e));case 2:if(null!=(r=t.sent).to&&(r.to=Promise.resolve(r.to).then((function(e){return Un(a,void 0,void 0,Mn().mark((function t(){var r;return Mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(r=t.sent)&&Gn.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))})),r.to.catch((function(e){}))),n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas,null==r.gasPrice||2!==r.type&&!n?0!==r.type&&1!==r.type||!n||Gn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):Gn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas){t.next=10;break}r.type=2,t.next=18;break;case 10:if(0!==r.type&&1!==r.type){t.next=14;break}null==r.gasPrice&&(r.gasPrice=this.getGasPrice()),t.next=18;break;case 14:return t.next=16,this.getFeeData();case 16:i=t.sent,null==r.type?null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas?(r.type=2,null!=r.gasPrice?(o=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o):(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):null!=i.gasPrice?(n&&Gn.throwError("network does not support EIP-1559",h.b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=i.gasPrice),r.type=0):Gn.throwError("failed to get consistent fee data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas));case 18:return null==r.nonce&&(r.nonce=this.getTransactionCount("pending")),null==r.gasLimit&&(r.gasLimit=this.estimateGas(r).catch((function(e){if(qn.indexOf(e.code)>=0)throw e;return Gn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&Gn.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,j(r);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||Gn.throwError("missing provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}])}(),Yn=function(e){function t(e,r){var n;return Nn(this,t),O(n=Dn(this,t),"address",e),O(n,"provider",r||null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pn(e,t)}(t,e),Ln(t,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){Gn.throwError(e,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new t(this.address,e)}}])}(Kn),Jn=r(189);function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(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,Vn(n.key),n)}}function Vn(e){var t=function(e,t){if("object"!=zn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zn(t)?t:t+""}var Zn=new h.b("signing-key/5.7.0"),Xn=null;function $n(){return Xn||(Xn=new Jn.a("secp256k1")),Xn}var ei=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,"curve","secp256k1"),O(this,"privateKey",Object(u.i)(t)),32!==Object(u.d)(this.privateKey)&&Zn.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=$n().keyFromPrivate(Object(u.a)(this.privateKey));O(this,"publicKey","0x"+r.getPublic(!1,"hex")),O(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),O(this,"_isSigningKey",!0)},r=[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}],(t=[{key:"_addPoint",value:function(e){var t=$n().keyFromPublic(Object(u.a)(this.publicKey)),r=$n().keyFromPublic(Object(u.a)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=$n().keyFromPrivate(Object(u.a)(this.privateKey)),r=Object(u.a)(e);32!==r.length&&Zn.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return Object(u.n)({recoveryParam:n.recoveryParam,r:Object(u.h)("0x"+n.r.toString(16),32),s:Object(u.h)("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=$n().keyFromPrivate(Object(u.a)(this.privateKey)),r=$n().keyFromPublic(Object(u.a)(ri(e)));return Object(u.h)("0x"+t.derive(r.getPublic()).toString(16),32)}}])&&Wn(e.prototype,t),r&&Wn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ti(e,t){var r=Object(u.n)(t),n={r:Object(u.a)(r.r),s:Object(u.a)(r.s)};return"0x"+$n().recoverPubKey(Object(u.a)(e),n,r.recoveryParam).encode("hex",!1)}function ri(e,t){var r=Object(u.a)(e);if(32===r.length){var n=new ei(r);return t?"0x"+$n().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?Object(u.i)(r):"0x"+$n().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+$n().keyFromPublic(r).getPublic(!0,"hex"):Object(u.i)(r):Zn.throwArgumentError("invalid public or private key","key","[REDACTED]")}var ni,ii=new h.b("transactions/5.7.0");function oi(e){return"0x"===e?null:pe(e)}function ai(e){return"0x"===e?Tt:m.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(ni||(ni={}));var si=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],ci={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function ui(e){var t=ri(e);return pe(Object(u.e)($(Object(u.e)(t,1)),12))}function fi(e,t){return ui(ti(Object(u.a)(e),t))}function li(e,t){var r=Object(u.o)(m.from(e).toHexString());return r.length>32&&ii.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function hi(e,t){return{address:pe(e),storageKeys:(t||[]).map((function(t,r){return 32!==Object(u.d)(t)&&ii.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function di(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&ii.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),hi(e[0],e[1])):hi(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return hi(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function Ai(e){return di(e).map((function(e){return[e.address,e.storageKeys]}))}function pi(e,t){if(null!=e.gasPrice){var r=m.from(e.gasPrice),n=m.from(e.maxFeePerGas||0);r.eq(n)||ii.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[li(e.chainId||0,"chainId"),li(e.nonce||0,"nonce"),li(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),li(e.maxFeePerGas||0,"maxFeePerGas"),li(e.gasLimit||0,"gasLimit"),null!=e.to?pe(e.to):"0x",li(e.value||0,"value"),e.data||"0x",Ai(e.accessList||[])];if(t){var o=Object(u.n)(t);i.push(li(o.recoveryParam,"recoveryParam")),i.push(Object(u.o)(o.r)),i.push(Object(u.o)(o.s))}return Object(u.c)(["0x02",ne(i)])}function gi(e,t){var r=[li(e.chainId||0,"chainId"),li(e.nonce||0,"nonce"),li(e.gasPrice||0,"gasPrice"),li(e.gasLimit||0,"gasLimit"),null!=e.to?pe(e.to):"0x",li(e.value||0,"value"),e.data||"0x",Ai(e.accessList||[])];if(t){var n=Object(u.n)(t);r.push(li(n.recoveryParam,"recoveryParam")),r.push(Object(u.o)(n.r)),r.push(Object(u.o)(n.s))}return Object(u.c)(["0x01",ne(r)])}function bi(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&ii.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){P(e,ci);var r=[];si.forEach((function(t){var n=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),n=Object(u.a)(Object(u.i)(n,i)),t.length&&n.length!==t.length&&n.length>0&&ii.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(u.o)(n)).length>t.maxLength&&ii.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push(Object(u.i)(n))}));var n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&ii.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(u.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(u.i)(n)),r.push("0x"),r.push("0x")),!t)return ne(r);var i=Object(u.n)(t),o=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&ii.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&ii.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(u.i)(o)),r.push(Object(u.o)(Object(u.a)(i.r))),r.push(Object(u.o)(Object(u.a)(i.s))),ne(r)}(e,t);switch(e.type){case 1:return gi(e,t);case 2:return pi(e,t)}return ii.throwError("unsupported transaction type: ".concat(e.type),h.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function yi(e,t,r){try{var n=ai(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){ii.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(u.h)(t[1],32),e.s=Object(u.h)(t[2],32);try{var i=$(r(e));e.from=fi(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function vi(e){var t=Object(u.a)(e);if(t[0]>127)return function(e){var t=ae(e);9!==t.length&&6!==t.length&&ii.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:ai(t[0]).toNumber(),gasPrice:ai(t[1]),gasLimit:ai(t[2]),to:oi(t[3]),value:ai(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=m.from(t[6]).toNumber()}catch(e){return r}if(r.r=Object(u.h)(t[7],32),r.s=Object(u.h)(t[8],32),m.from(r.r).isZero()&&m.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push(Object(u.i)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var o=$(ne(i));try{r.from=fi(o,{r:Object(u.i)(r.r),s:Object(u.i)(r.s),recoveryParam:n})}catch(e){}r.hash=$(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=ae(e.slice(1));8!==t.length&&11!==t.length&&ii.throwArgumentError("invalid component count for transaction type: 1","payload",Object(u.i)(e));var r={type:1,chainId:ai(t[0]).toNumber(),nonce:ai(t[1]).toNumber(),gasPrice:ai(t[2]),gasLimit:ai(t[3]),to:oi(t[4]),value:ai(t[5]),data:t[6],accessList:di(t[7])};return 8===t.length||(r.hash=$(e),yi(r,t.slice(8),gi)),r}(t);case 2:return function(e){var t=ae(e.slice(1));9!==t.length&&12!==t.length&&ii.throwArgumentError("invalid component count for transaction type: 2","payload",Object(u.i)(e));var r=ai(t[2]),n=ai(t[3]),i={type:2,chainId:ai(t[0]).toNumber(),nonce:ai(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:ai(t[4]),to:oi(t[5]),value:ai(t[6]),data:t[7],accessList:di(t[8])};return 9===t.length||(i.hash=$(e),yi(i,t.slice(9),pi)),i}(t)}return ii.throwError("unsupported transaction type: ".concat(t[0]),h.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function mi(e){return function(e){if(Array.isArray(e))return wi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return wi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ii(){return(Ii="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Ei(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function Ei(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ci(e)););return e}function Bi(e,t,r){return t=Ci(t),function(e,t){if(t&&("object"==Oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ci(e).constructor):t.apply(e,r))}function Ci(e){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}function ki(e,t){return(ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(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,Ri(n.key),n)}}function xi(e,t,r){return t&&Qi(e.prototype,t),r&&Qi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ri(e){var t=function(e,t){if("object"!=Oi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oi(t)?t:t+""}function Oi(e){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Di=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Oi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Oi(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}var ji=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Pi=new h.b("contracts/5.7.0"),Mi={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function Ni(e,t){return ji(this,void 0,void 0,Di().mark((function r(){var n,i;return Di().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t;case 2:return"string"!=typeof(n=r.sent)&&Pi.throwArgumentError("invalid address or ENS name","name",n),r.prev=4,r.abrupt("return",pe(n));case 8:r.prev=8,r.t0=r.catch(4);case 10:return e||Pi.throwError("a provider or signer is needed to resolve ENS names",h.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),r.next=13,e.resolveName(n);case 13:return null==(i=r.sent)&&Pi.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r.abrupt("return",i);case 16:case"end":return r.stop()}}),r,null,[[4,8]])})))}function Ti(e,t,r){return ji(this,void 0,void 0,Di().mark((function n(){return Di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=4;break}return n.next=3,Promise.all(r.map((function(r,n){return Ti(e,Array.isArray(t)?t[n]:t[r.name],r)})));case 3:return n.abrupt("return",n.sent);case 4:if("address"!==r.type){n.next=8;break}return n.next=7,Ni(e,t);case 7:return n.abrupt("return",n.sent);case 8:if("tuple"!==r.type){n.next=12;break}return n.next=11,Ti(e,t,r.components);case 11:return n.abrupt("return",n.sent);case 12:if("array"!==r.baseType){n.next=18;break}if(Array.isArray(t)){n.next=15;break}return n.abrupt("return",Promise.reject(Pi.makeError("invalid value for array",h.b.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return n.next=17,Promise.all(t.map((function(t){return Ti(e,t,r.arrayChildren)})));case 17:return n.abrupt("return",n.sent);case 18:return n.abrupt("return",t);case 19:case"end":return n.stop()}}),n)})))}function Li(e,t,r){return ji(this,void 0,void 0,Di().mark((function n(){var i,o,a,s,c,f,l,d,A,p,g=this;return Di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={},r.length===t.inputs.length+1&&"object"===Oi(r[r.length-1])&&(i=M(r.pop())),Pi.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=j({override:Ni(e.signer,i.from),signer:e.signer.getAddress()}).then((function(e){return ji(g,void 0,void 0,Di().mark((function t(){return Di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return pe(e.signer)!==e.override&&Pi.throwError("Contract with a Signer cannot override from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):i.from=e.signer.getAddress():i.from&&(i.from=Ni(e.provider,i.from)),n.next=6,j({args:Ti(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:j(i)||{}});case 6:if(o=n.sent,a=e.interface.encodeFunctionData(t,o.args),s={data:a,to:o.address},null!=(c=o.overrides).nonce&&(s.nonce=m.from(c.nonce).toNumber()),null!=c.gasLimit&&(s.gasLimit=m.from(c.gasLimit)),null!=c.gasPrice&&(s.gasPrice=m.from(c.gasPrice)),null!=c.maxFeePerGas&&(s.maxFeePerGas=m.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=m.from(c.maxPriorityFeePerGas)),null!=c.from&&(s.from=c.from),null!=c.type&&(s.type=c.type),null!=c.accessList&&(s.accessList=di(c.accessList)),null==s.gasLimit&&null!=t.gas){for(f=21e3,l=Object(u.a)(a),d=0;d<l.length;d++)f+=4,l[d]&&(f+=64);s.gasLimit=m.from(t.gas).add(f)}return c.value&&((A=m.from(c.value)).isZero()||t.payable||Pi.throwError("non-payable method cannot override value",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=A),c.customData&&(s.customData=M(c.customData)),c.ccipReadEnabled&&(s.ccipReadEnabled=!!c.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled,(p=Object.keys(i).filter((function(e){return null!=i[e]}))).length&&Pi.throwError("cannot override ".concat(p.map((function(e){return JSON.stringify(e)})).join(",")),h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:p}),n.abrupt("return",s);case 36:case"end":return n.stop()}}),n)})))}function Fi(e,t){var r=t.wait.bind(t);t.wait=function(t){return r(t).then((function(t){return t.events=t.logs.map((function(r){var n=L(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=function(t,r){return e.interface.decodeEventLog(i.eventFragment,t,r)},n.event=i.name,n.eventSignature=i.signature),n.removeListener=function(){return e.provider},n.getBlock=function(){return e.provider.getBlock(t.blockHash)},n.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(t)},n})),t}))}}function Ui(e,t,r){var n=e.signer||e.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ji(this,void 0,void 0,Di().mark((function i(){var a,s,c,u,f;return Di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=void 0,o.length!==t.inputs.length+1||"object"!==Oi(o[o.length-1])){i.next=9;break}if(null==(s=M(o.pop())).blockTag){i.next=7;break}return i.next=6,s.blockTag;case 6:a=i.sent;case 7:delete s.blockTag,o.push(s);case 9:if(null==e.deployTransaction){i.next=12;break}return i.next=12,e._deployed(a);case 12:return i.next=14,Li(e,t,o);case 14:return c=i.sent,i.next=17,n.call(c,a);case 17:return u=i.sent,i.prev=18,f=e.interface.decodeFunctionResult(t,u),r&&1===t.outputs.length&&(f=f[0]),i.abrupt("return",f);case 24:throw i.prev=24,i.t0=i.catch(18),i.t0.code===h.b.errors.CALL_EXCEPTION&&(i.t0.address=e.address,i.t0.args=o,i.t0.transaction=c),i.t0;case 28:case"end":return i.stop()}}),i,null,[[18,24]])})))}}function Gi(e,t,r){return t.constant?Ui(e,t,r):function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return ji(this,void 0,void 0,Di().mark((function r(){var i,o;return Di().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.signer||Pi.throwError("sending a transaction requires a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction){r.next=4;break}return r.next=4,e._deployed();case 4:return r.next=6,Li(e,t,n);case 6:return i=r.sent,r.next=9,e.signer.sendTransaction(i);case 9:return o=r.sent,Fi(e,o),r.abrupt("return",o);case 12:case"end":return r.stop()}}),r)})))}}(e,t)}function Hi(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var qi=function(){return xi((function e(t,r){Si(this,e),O(this,"tag",t),O(this,"filter",r),this._listeners=[]}),[{key:"addListener",value:function(e,t){this._listeners.push({listener:e,once:t})}},{key:"removeListener",value:function(e){var t=!1;this._listeners=this._listeners.filter((function(r){return!(!t&&r.listener===e)||(t=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(e){return e.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(e){var t=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=e.slice();return setTimeout((function(){r.listener.apply(t,n)}),0),!r.once})),r}},{key:"prepareEvent",value:function(e){}},{key:"getEmit",value:function(e){return[e]}}])}(),Ki=function(e){function t(){return Si(this,t),Bi(this,t,["error",null])}return _i(t,e),xi(t)}(qi),Yi=function(e){function t(e,r,n,i){var o;Si(this,t);var a={address:e},s=r.getEventTopic(n);return i?(s!==i[0]&&Pi.throwArgumentError("topic mismatch","topics",i),a.topics=i.slice()):a.topics=[s],O(o=Bi(this,t,[Hi(a),a]),"address",e),O(o,"interface",r),O(o,"fragment",n),o}return _i(t,e),xi(t,[{key:"prepareEvent",value:function(e){var r=this;Ii(Ci(t.prototype),"prepareEvent",this).call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(e,t){return r.interface.decodeEventLog(r.fragment,e,t)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}},{key:"getEmit",value:function(e){var t=J(e.args);if(t.length)throw t[0].error;var r=(e.args||[]).slice();return r.push(e),r}}])}(qi),Ji=function(e){function t(e,r){var n;return Si(this,t),O(n=Bi(this,t,["*",{address:e}]),"address",e),O(n,"interface",r),n}return _i(t,e),xi(t,[{key:"prepareEvent",value:function(e){var r=this;Ii(Ci(t.prototype),"prepareEvent",this).call(this,e);try{var n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=function(e,t){return r.interface.decodeEventLog(n.eventFragment,e,t)},e.args=n.args}catch(e){}}}])}(qi),zi=function(){return xi((function e(t,r,n){var i=this;Si(this,e),O(this,"interface",D(this instanceof e?this.constructor:void 0,"getInterface")(r)),null==n?(O(this,"provider",null),O(this,"signer",null)):Kn.isSigner(n)?(O(this,"provider",n.provider||null),O(this,"signer",n)):Rn.isProvider(n)?(O(this,"provider",n),O(this,"signer",null)):Pi.throwArgumentError("invalid signer or provider","signerOrProvider",n),O(this,"callStatic",{}),O(this,"estimateGas",{}),O(this,"functions",{}),O(this,"populateTransaction",{}),O(this,"filters",{});var o={};if(Object.keys(this.interface.events).forEach((function(e){var t=i.interface.events[e];O(i.filters,e,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return{address:i.address,topics:i.interface.encodeFilterTopics(t,r)}})),o[t.name]||(o[t.name]=[]),o[t.name].push(e)})),Object.keys(o).forEach((function(e){var t=o[e];1===t.length?O(i.filters,e,i.filters[t[0]]):Pi.warn("Duplicate definition of ".concat(e," (").concat(t.join(", "),")"))})),O(this,"_runningEvents",{}),O(this,"_wrappedEmits",{}),null==t&&Pi.throwArgumentError("invalid contract address or ENS name","addressOrName",t),O(this,"address",t),this.provider)O(this,"resolvedAddress",Ni(this.provider,t));else try{O(this,"resolvedAddress",Promise.resolve(pe(t)))}catch(e){Pi.throwError("provider is required to use ENS name as contract address",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((function(e){}));var a={},s={};Object.keys(this.interface.functions).forEach((function(e){var t=i.interface.functions[e];if(s[e])Pi.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{s[e]=!0;var r=t.name;a["%".concat(r)]||(a["%".concat(r)]=[]),a["%".concat(r)].push(e),null==i[e]&&O(i,e,Gi(i,t,!0)),null==i.functions[e]&&O(i.functions,e,Gi(i,t,!1)),null==i.callStatic[e]&&O(i.callStatic,e,Ui(i,t,!0)),null==i.populateTransaction[e]&&O(i.populateTransaction,e,function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Li(e,t,n)}}(i,t)),null==i.estimateGas[e]&&O(i.estimateGas,e,function(e,t){var r=e.signer||e.provider;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return ji(this,void 0,void 0,Di().mark((function n(){var o;return Di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r||Pi.throwError("estimate require a provider or signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),n.next=3,Li(e,t,i);case 3:return o=n.sent,n.next=6,r.estimateGas(o);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}}(i,t))}})),Object.keys(a).forEach((function(e){var t=a[e];if(!(t.length>1)){e=e.substring(1);var r=t[0];try{null==i[e]&&O(i,e,i[r])}catch(e){}null==i.functions[e]&&O(i.functions,e,i.functions[r]),null==i.callStatic[e]&&O(i.callStatic,e,i.callStatic[r]),null==i.populateTransaction[e]&&O(i.populateTransaction,e,i.populateTransaction[r]),null==i.estimateGas[e]&&O(i.estimateGas,e,i.estimateGas[r])}}))}),[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&Pi.throwError("contract not deployed",h.b.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||Pi.throwError("sending a transactions require a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=M(e||{});return["from","to"].forEach((function(e){null!=r[e]&&Pi.throwError("cannot override "+e,h.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new Yn(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&O(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new Ki);if("event"===e)return this._normalizeRunningEvent(new qi("event",null));if("*"===e)return this._normalizeRunningEvent(new Ji(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Yi(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0];if("string"!=typeof r)throw new Error("invalid topic");var n=this.interface.getEvent(r);return this._normalizeRunningEvent(new Yi(this.address,this.interface,n,e.topics))}catch(e){}var i={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new qi(Hi(i),i))}return this._normalizeRunningEvent(new Ji(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,i=L(t);return i.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},i.getBlock=function(){return n.provider.getBlock(t.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,r){var n=this;if(this.provider||Pi.throwError("events require a provider or a signer with a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(r){var i=n._wrapEvent(e,r,t);if(null==i.decodeError)try{var o=e.getEmit(i);n.emit.apply(n,[e.filter].concat(mi(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,r){var n=this,i=this._getRunningEvent(e),o=M(i.filter);return"string"==typeof t&&Object(u.l)(t,32)?(null!=r&&Pi.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return n._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=t.run(n)>0;return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){if(!this.provider)return[];if(null==e){var t=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return ye(e)}},{key:"getInterface",value:function(e){return bn.isInterface(e)?e:new bn(e)}},{key:"isIndexed",value:function(e){return An.isIndexed(e)}}])}(),Wi=function(e){function t(){return Si(this,t),Bi(this,t,arguments)}return _i(t,e),xi(t)}(zi),Vi=function(){return xi((function e(t,r,n){Si(this,e);var i=null;"0x"!==(i="string"==typeof r?r:Object(u.j)(r)?Object(u.i)(r):r&&"string"==typeof r.object?r.object:"!").substring(0,2)&&(i="0x"+i),(!Object(u.l)(i)||i.length%2)&&Pi.throwArgumentError("invalid bytecode","bytecode",r),n&&!Kn.isSigner(n)&&Pi.throwArgumentError("invalid signer","signer",n),O(this,"bytecode",i),O(this,"interface",D(this instanceof e?this.constructor:void 0,"getInterface")(t)),O(this,"signer",n||null)}),[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===this.interface.deploy.inputs.length+1&&"object"===Oi(r[r.length-1]))for(var i in e=M(r.pop()))if(!Mi[i])throw new Error("unknown transaction override "+i);if(["data","from","to"].forEach((function(t){null!=e[t]&&Pi.throwError("cannot override "+t,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){var o=m.from(e.value);o.isZero()||this.interface.deploy.payable||Pi.throwError("non-payable constructor cannot override value",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return Pi.checkArgumentCount(r.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(u.i)(Object(u.b)([this.bytecode,this.interface.encodeDeploy(r)])),e}},{key:"deploy",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ji(this,void 0,void 0,Di().mark((function e(){var r,n,i,o,a,s;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},t.length===this.interface.deploy.inputs.length+1&&(r=t.pop()),Pi.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.next=5,Ti(this.signer,t,this.interface.deploy.inputs);case 5:return(n=e.sent).push(r),i=this.getDeployTransaction.apply(this,mi(n)),e.next=10,this.signer.sendTransaction(i);case 10:return o=e.sent,a=D(this.constructor,"getContractAddress")(o),Fi(s=D(this.constructor,"getContract")(a,this.interface,this.signer),o),O(s,"deployTransaction",o),e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"attach",value:function(e){return this.constructor.getContract(e,this.interface,this.signer)}},{key:"connect",value:function(e){return new this.constructor(this.interface,this.bytecode,e)}}],[{key:"fromSolidity",value:function(e,t){null==e&&Pi.throwError("missing compiler output",h.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));var r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}},{key:"getInterface",value:function(e){return Wi.getInterface(e)}},{key:"getContractAddress",value:function(e){return ye(e)}},{key:"getContract",value:function(e,t,r){return new Wi(e,t,r)}}])}();function Zi(e){return(Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(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,to(n.key),n)}}function eo(e,t,r){return t&&$i(e.prototype,t),r&&$i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function to(e){var t=function(e,t){if("object"!=Zi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zi(t)?t:t+""}var ro=new h.b("bignumber/5.7.0"),no={},io=m.from(0),oo=m.from(-1);function ao(e,t,r,n){var i={fault:t,operation:r};return void 0!==n&&(i.value=n),ro.throwError(e,h.b.errors.NUMERIC_FAULT,i)}for(var so="0";so.length<256;)so+=so;function co(e){if("number"!=typeof e)try{e=m.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+so.substring(0,e):ro.throwArgumentError("invalid decimal size","decimals",e)}function uo(e,t){null==t&&(t=0);var r=co(t),n=(e=m.from(e)).lt(io);n&&(e=e.mul(oo));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function fo(e,t){null==t&&(t=0);var r=co(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||ro.throwArgumentError("invalid decimal value","value",e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&ro.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&ro.throwArgumentError("too many decimal points","value",e);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&ao("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";var s=m.from(o),c=m.from(a),u=s.mul(r).add(c);return n&&(u=u.mul(oo)),u}var lo=function(){function e(t,r,n,i){Xi(this,e),t!==no&&ro.throwError("cannot use FixedFormat constructor; use FixedFormat.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=co(i),Object.freeze(this)}return eo(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;"number"==typeof t&&(t="fixed128x".concat(t));var r=!0,n=128,i=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)r=!1;else{var o=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||ro.throwArgumentError("invalid fixed format","format",t),r="u"!==o[1],n=parseInt(o[2]),i=parseInt(o[3])}else if(t){var a=function(e,r,n){return null==t[e]?n:(Zi(t[e])!==r&&ro.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e])};r=a("signed","boolean",r),n=a("width","number",n),i=a("decimals","number",i)}return n%8&&ro.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&ro.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(no,r,n,i)}}])}(),ho=function(){function e(t,r,n,i){Xi(this,e),t!==no&&ro.throwError("cannot use FixedNumber constructor; use FixedNumber.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return eo(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&ro.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var r=fo(this._value,this.format.decimals),n=fo(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var r=fo(this._value,this.format.decimals),n=fo(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var r=fo(this._value,this.format.decimals),n=fo(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var r=fo(this._value,this.format.decimals),n=fo(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Ao.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Ao.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&ro.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+so.substring(0,t),this.format),i=po.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&ro.throwArgumentError("invalid byte width","width",e);var t=m.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Object(u.h)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(m.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(u.l)(e)||"bigint"==typeof e||Object(u.j)(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(uo(t,r),lo.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed");var n=lo.from(r),i=fo(t,n.decimals);!n.signed&&i.lt(io)&&ao("unsigned value cannot be negative","overflow","value",t);var o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Object(u.h)(o,n.width/8));var a=uo(i,n.decimals);return new e(no,o,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed");var n=lo.from(r);if(Object(u.a)(t).length>n.width/8)throw new Error("overflow");var i=m.from(t);n.signed&&(i=i.fromTwos(n.width));var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=uo(i,n.decimals);return new e(no,o,a,n)}},{key:"from",value:function(t,r){if("string"==typeof t)return e.fromString(t,r);if(Object(u.j)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(e){if(e.code!==h.b.errors.INVALID_ARGUMENT)throw e}return ro.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}])}(),Ao=ho.from(1),po=ho.from("0.5");function go(e){return"string"==typeof e&&(e=_e(e)),$(Object(u.b)([_e("Ethereum Signed Message:\n"),_e(String(e.length)),e]))}function bo(e){return(bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yo=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==bo(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(bo(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function vo(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,mo(n.key),n)}}function mo(e){var t=function(e,t){if("object"!=bo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bo(t)?t:t+""}var wo=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Io=new h.b("hash/5.7.0"),Eo=new Uint8Array(32);Eo.fill(0);var Bo=m.from(-1),Co=m.from(0),_o=m.from(1),ko=m.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var So=Object(u.h)(_o.toHexString(),32),Qo=Object(u.h)(Co.toHexString(),32),xo={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ro=["name","version","chainId","verifyingContract","salt"];function Oo(e){return function(t){return"string"!=typeof t&&Io.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var Do={name:Oo("name"),version:Oo("version"),chainId:function(e){try{return m.from(e).toString()}catch(e){}return Io.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return pe(e).toLowerCase()}catch(e){}return Io.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=Object(u.a)(e);if(32!==t.length)throw new Error("bad length");return Object(u.i)(t)}catch(e){}return Io.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function jo(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&Io.throwArgumentError("invalid numeric width","type",e);var i=ko.mask(r?n-1:n),o=r?i.add(_o).mul(Bo):Co;return function(t){var r=m.from(t);return(r.lt(o)||r.gt(i))&&Io.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(u.h)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/);if(a){var s=parseInt(a[1]);return(0===s||s>32||a[1]!==String(s))&&Io.throwArgumentError("invalid bytes width","type",e),function(t){return Object(u.a)(t).length!==s&&Io.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(u.a)(e),r=t.length%32;return r?Object(u.c)([t,Eo.slice(r)]):Object(u.i)(t)}(t)}}switch(e){case"address":return function(e){return Object(u.h)(pe(e),32)};case"bool":return function(e){return e?So:Qo};case"bytes":return function(e){return $(e)};case"string":return function(e){return Oe(e)}}return null}function Po(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var Mo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,"types",Object.freeze(L(t))),O(this,"_encoderCache",{}),O(this,"_types",{});var r={},n={},i={};Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}}));var o=function(e){var i={};t[e].forEach((function(o){i[o.name]&&Io.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===e&&Io.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),jo(a)||(n[a]||Io.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))};for(var a in t)o(a);var s=Object.keys(n).filter((function(e){return 0===n[e].length}));for(var c in 0===s.length?Io.throwArgumentError("missing primary type","types",t):s.length>1&&Io.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),O(this,"primaryType",s[0]),function e(o,a){a[o]&&Io.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(r[o]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var u=Object.keys(i[c]);u.sort(),this._types[c]=Po(c,t[c])+u.map((function(e){return Po(e,t[e])})).join("")}}return t=e,n=[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[];for(var n in t){var i=xo[n];i||Io.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return Ro.indexOf(e.name)-Ro.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return Object(u.c)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return $(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,i){return wo(this,void 0,void 0,yo().mark((function o(){var a,s,c;return yo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=M(t),a={},t.verifyingContract&&!Object(u.l)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),(s=e.from(r)).visit(n,(function(e,t){return"address"!==e||Object(u.l)(t,20)||(a[t]="0x"),t})),o.t0=yo().keys(a);case 6:if((o.t1=o.t0()).done){o.next=13;break}return c=o.t1.value,o.next=10,i(c);case 10:a[c]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=s.visit(n,(function(e,t){return"address"===e&&a[t]?a[t]:t})),o.abrupt("return",{domain:t,value:n});case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t);var i={},o=[];Ro.forEach((function(e){var r=t[e];null!=r&&(i[e]=Do[e](r),o.push({name:e,type:xo[e]}))}));var a=e.from(r),s=M(r);return s.EIP712Domain?Io.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(u.i)(Object(u.a)(t));if(e.match(/^u?int/))return m.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&Io.throwArgumentError("invalid string","value",t),t}return Io.throwArgumentError("unsupported type","type",e)}))}}}],(r=[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=jo(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]);return function(e){a>=0&&e.length!==a&&Io.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(o);return t._types[i]&&(r=r.map($)),$(Object(u.c)(r))}}var s=this.types[e];if(s){var c=Oe(this._types[e]);return function(e){var r=s.map((function(r){var n=r.name,i=r.type,o=t.getEncoder(i)(e[n]);return t._types[i]?$(o):o}));return r.unshift(c),Object(u.c)(r)}}return Io.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||Io.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return $(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this;if(jo(e))return r(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&t.length!==a&&Io.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(o,e,r)}))}var s=this.types[e];return s?s.reduce((function(e,i){var o=i.name,a=i.type;return e[o]=n._visit(a,t[o],r),e}),{}):Io.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}])&&vo(t.prototype,r),n&&vo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function No(e){return(No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function To(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,Lo(n.key),n)}}function Lo(e){var t=function(e,t){if("object"!=No(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=No(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==No(t)?t:t+""}var Fo,Uo=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,"alphabet",t),O(this,"base",t.length),O(this,"_alphabetMap",{}),O(this,"_leader",t.charAt(0));for(var r=0;r<t.length;r++)this._alphabetMap[t.charAt(r)]=r},(t=[{key:"encode",value:function(e){var t=Object(u.a)(e);if(0===t.length)return"";for(var r=[0],n=0;n<t.length;++n){for(var i=t[n],o=0;o<r.length;++o)i+=r[o]<<8,r[o]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}for(var a="",s=0;0===t[s]&&s<t.length-1;++s)a+=this._leader;for(var c=r.length-1;c>=0;--c)a+=this.alphabet[r[c]];return a}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var r=0;r<e.length;r++){var n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");for(var i=n,o=0;o<t.length;++o)i+=t[o]*this.base,t[o]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(var a=0;e[a]===this._leader&&a<e.length-1;++a)t.push(0);return Object(u.a)(new Uint8Array(t.reverse()))}}])&&To(e.prototype,t),r&&To(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Go=(new Uo("abcdefghijklmnopqrstuvwxyz234567"),new Uo("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),Ho=r(8),qo=r.n(Ho);!function(e){e.sha256="sha256",e.sha512="sha512"}(Fo||(Fo={}));var Ko=new h.b("sha2/5.7.0");function Yo(e){return"0x"+qo.a.ripemd160().update(Object(u.a)(e)).digest("hex")}function Jo(e){return"0x"+qo.a.sha256().update(Object(u.a)(e)).digest("hex")}function zo(e){return"0x"+qo.a.sha512().update(Object(u.a)(e)).digest("hex")}function Wo(e,t,r){return Fo[e]||Ko.throwError("unsupported algorithm "+e,h.b.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+qo.a.hmac(qo.a[e],Object(u.a)(t)).update(Object(u.a)(r)).digest("hex")}function Vo(e,t,r,n,i){var o;e=Object(u.a)(e),t=Object(u.a)(t);var a,s,c=1,f=new Uint8Array(n),l=new Uint8Array(t.length+4);l.set(t);for(var h=1;h<=c;h++){l[t.length]=h>>24&255,l[t.length+1]=h>>16&255,l[t.length+2]=h>>8&255,l[t.length+3]=255&h;var d=Object(u.a)(Wo(i,e,l));o||(o=d.length,s=new Uint8Array(o),a=n-((c=Math.ceil(n/o))-1)*o),s.set(d);for(var A=1;A<r;A++){d=Object(u.a)(Wo(i,e,d));for(var p=0;p<o;p++)s[p]^=d[p]}var g=(h-1)*o,b=h===c?a:o;f.set(Object(u.a)(s).slice(0,b),g)}return Object(u.i)(f)}function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(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,$o(n.key),n)}}function $o(e){var t=function(e,t){if("object"!=Zo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zo(t)?t:t+""}var ea=new h.b("wordlists/5.7.0"),ta=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ea.checkAbstract(this instanceof e?this.constructor:void 0,e),O(this,"locale",t)},r=[{key:"check",value:function(e){for(var t=[],r=0;r<2048;r++){var n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return Oe(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}],(t=[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}])&&Xo(e.prototype,t),r&&Xo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ra(e){return(ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(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,ia(n.key),n)}}function ia(e){var t=function(e,t){if("object"!=ra(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ra(t)?t:t+""}function oa(e,t,r){return t=aa(t),function(e,t){if(t&&("object"==ra(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function aa(e){return(aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sa(e,t){return(sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ca=null;function ua(e){if(null==ca&&(ca="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==ta.check(e)))throw ca=null,new Error("BIP39 Wordlist for en (English) FAILED")}var fa=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oa(this,t,["en"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sa(e,t)}(t,e),r=t,(n=[{key:"getWord",value:function(e){return ua(this),ca[e]}},{key:"getWordIndex",value:function(e){return ua(this),ca.indexOf(e)}}])&&na(r.prototype,n),i&&na(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(ta));ta.register(fa);var la={en:fa};function ha(e){return(ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(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,Aa(n.key),n)}}function Aa(e){var t=function(e,t){if("object"!=ha(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ha(t)?t:t+""}var pa=new h.b("hdnode/5.7.0"),ga=m.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ba=_e("Bitcoin seed");function ya(e){return(1<<e)-1<<8-e}function va(e){return Object(u.h)(Object(u.i)(e),32)}function ma(e){return Go.encode(Object(u.b)([e,Object(u.e)(Jo(Jo(e)),0,4)]))}function wa(e){if(null==e)return la.en;if("string"==typeof e){var t=la[e];return null==t&&pa.throwArgumentError("unknown locale","wordlist",e),t}return e}var Ia={},Ea="m/44'/60'/0'/0/0",Ba=function(){function e(t,r,n,i,o,a,s,c){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==Ia)throw new Error("HDNode constructor cannot be called directly");if(r){var f=new ei(r);O(this,"privateKey",f.privateKey),O(this,"publicKey",f.compressedPublicKey)}else O(this,"privateKey",null),O(this,"publicKey",Object(u.i)(n));O(this,"parentFingerprint",i),O(this,"fingerprint",Object(u.e)(Yo(Jo(this.publicKey)),0,4)),O(this,"address",ui(this.publicKey)),O(this,"chainCode",o),O(this,"index",a),O(this,"depth",s),null==c?(O(this,"mnemonic",null),O(this,"path",null)):"string"==typeof c?(O(this,"mnemonic",null),O(this,"path",c)):(O(this,"mnemonic",c),O(this,"path",c.path))}return t=e,n=[{key:"_fromSeed",value:function(t,r){var n=Object(u.a)(t);if(n.length<16||n.length>64)throw new Error("invalid seed");var i=Object(u.a)(Wo(Fo.sha512,ba,n));return new e(Ia,va(i.slice(0,32)),null,"0x00000000",va(i.slice(32)),0,0,r)}},{key:"fromMnemonic",value:function(t,r,n){return t=ka(_a(t,n=wa(n)),n),e._fromSeed(Ca(t,r),{phrase:t,path:"m",locale:n.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var r=Go.decode(t);82===r.length&&ma(r.slice(0,78))===t||pa.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=r[4],i=Object(u.i)(r.slice(5,9)),o=parseInt(Object(u.i)(r.slice(9,13)).substring(2),16),a=Object(u.i)(r.slice(13,45)),s=r.slice(45,78);switch(Object(u.i)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(Ia,null,Object(u.i)(s),i,a,o,n,null);case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break;return new e(Ia,Object(u.i)(s.slice(1)),null,i,a,o,n,null)}return pa.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}],(r=[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!");return ma(Object(u.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(u.i)(this.depth),this.parentFingerprint,Object(u.h)(Object(u.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(u.b)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(Ia,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var r=this.path;r&&(r+="/"+(2147483647&t));var n=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(Object(u.a)(this.privateKey),1),r&&(r+="'")}else n.set(Object(u.a)(this.publicKey));for(var i=24;i>=0;i-=8)n[33+(i>>3)]=t>>24-i&255;var o=Object(u.a)(Wo(Fo.sha512,this.chainCode,n)),a=o.slice(0,32),s=o.slice(32),c=null,f=null;this.privateKey?c=va(m.from(a).add(this.privateKey).mod(ga)):f=new ei(Object(u.i)(a))._addPoint(this.publicKey);var l=r,h=this.mnemonic;return h&&(l=Object.freeze({phrase:h.phrase,path:r,locale:h.locale||"en"})),new e(Ia,c,f,this.fingerprint,va(s),t,this.depth+1,l)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var r=this,n=0;n<t.length;n++){var i=t[n];if(i.match(/^[0-9]+'$/)){var o=parseInt(i.substring(0,i.length-1));if(o>=2147483648)throw new Error("invalid path index - "+i);r=r._derive(2147483648+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i);var a=parseInt(i);if(a>=2147483648)throw new Error("invalid path index - "+i);r=r._derive(a)}}return r}}])&&da(t.prototype,r),n&&da(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function Ca(e,t){t||(t="");var r=_e("mnemonic"+t,me.NFKD);return Vo(_e(e,me.NFKD),r,2048,64,"sha512")}function _a(e,t){t=wa(t),pa.checkNormalize();var r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");for(var n=Object(u.a)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,o=0;o<r.length;o++){var a=t.getWordIndex(r[o].normalize("NFKD"));if(-1===a)throw new Error("invalid mnemonic");for(var s=0;s<11;s++)a&1<<10-s&&(n[i>>3]|=1<<7-i%8),i++}var c=32*r.length/3,f=ya(r.length/3);if((Object(u.a)(Jo(n.slice(0,c/8)))[0]&f)!==(n[n.length-1]&f))throw new Error("invalid checksum");return Object(u.i)(n.slice(0,c/8))}function ka(e,t){if(t=wa(t),(e=Object(u.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,i=0;i<e.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3);var o=e.length/4,a=Object(u.a)(Jo(e))[0]&ya(o);return r[r.length-1]<<=o,r[r.length-1]|=a>>8-o,t.join(r.map((function(e){return t.getWord(e)})))}function Sa(e,t){try{return _a(e,t),!0}catch(e){}return!1}function Qa(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&pa.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}var xa=r(400),Ra=r(18),Oa=r.n(Ra),Da=r(70),ja=r.n(Da);function Pa(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(u.a)(e)}function Ma(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function Na(e){return"string"==typeof e?_e(e,me.NFKC):Object(u.a)(e)}function Ta(e,t){for(var r=e,n=t.toLowerCase().split("/"),i=0;i<n.length;i++){var o=null;for(var a in r)if(a.toLowerCase()===n[i]){o=r[a];break}if(null===o)return null;r=o}return r}function La(e){var t=Object(u.a)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;var r=Object(u.i)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}function Fa(e){return(Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ua(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ua=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Fa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Fa(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ha(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,qa(n.key),n)}}function qa(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}function Ka(e,t,r){return t=Ya(t),function(e,t){if(t&&("object"==Fa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function Ya(e){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ja(e,t){return(Ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var za=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Wa=new h.b("json-wallets/5.7.0");function Va(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}var Za=function(e){function t(){return Ga(this,t),Ka(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ja(e,t)}(t,e),r=t,(n=[{key:"isKeystoreAccount",value:function(e){return!(!e||!e._isKeystoreAccount)}}])&&Ha(r.prototype,n),i&&Ha(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(F);function Xa(e,t){var r=Pa(Ta(e,"crypto/ciphertext"));if(Object(u.i)($(Object(u.b)([t.slice(16,32),r]))).substring(2)!==Ta(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var n=function(e,t,r){if("aes-128-ctr"===Ta(e,"crypto/cipher")){var n=Pa(Ta(e,"crypto/cipherparams/iv")),i=new Oa.a.Counter(n),o=new Oa.a.ModeOfOperation.ctr(t,i);return Object(u.a)(o.decrypt(r))}return null}(e,t.slice(0,16),r);n||Wa.throwError("unsupported cipher",h.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var i=t.slice(32,64),o=ui(n);if(e.address){var a=e.address.toLowerCase();if("0x"!==a.substring(0,2)&&(a="0x"+a),pe(a)!==o)throw new Error("address mismatch")}var s={_isKeystoreAccount:!0,address:o,privateKey:Object(u.i)(n)};if("0.1"===Ta(e,"x-ethers/version")){var c=Pa(Ta(e,"x-ethers/mnemonicCiphertext")),f=Pa(Ta(e,"x-ethers/mnemonicCounter")),l=new Oa.a.Counter(f),d=new Oa.a.ModeOfOperation.ctr(i,l),A=Ta(e,"x-ethers/path")||Ea,p=Ta(e,"x-ethers/locale")||"en",g=Object(u.a)(d.decrypt(c));try{var b=ka(g,p),y=Ba.fromMnemonic(b,null,p).derivePath(A);if(y.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=y.mnemonic}catch(e){if(e.code!==h.b.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new Za(s)}function $a(e,t,r,n,i){return Object(u.a)(Vo(e,t,r,n,i))}function es(e,t,r,n,i){return Promise.resolve($a(e,t,r,n,i))}function ts(e,t,r,n,i){var o=Na(t),a=Ta(e,"crypto/kdf");if(a&&"string"==typeof a){var s=function(e,t){return Wa.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){var c=Pa(Ta(e,"crypto/kdfparams/salt")),u=parseInt(Ta(e,"crypto/kdfparams/n")),f=parseInt(Ta(e,"crypto/kdfparams/r")),l=parseInt(Ta(e,"crypto/kdfparams/p"));u&&f&&l||s("kdf",a),0!=(u&u-1)&&s("N",u);var h=parseInt(Ta(e,"crypto/kdfparams/dklen"));return 32!==h&&s("dklen",h),n(o,c,u,f,l,64,i)}if("pbkdf2"===a.toLowerCase()){var d=Pa(Ta(e,"crypto/kdfparams/salt")),A=null,p=Ta(e,"crypto/kdfparams/prf");"hmac-sha256"===p?A="sha256":"hmac-sha512"===p?A="sha512":s("prf",p);var g=parseInt(Ta(e,"crypto/kdfparams/c")),b=parseInt(Ta(e,"crypto/kdfparams/dklen"));return 32!==b&&s("dklen",b),r(o,d,g,b,A)}}return Wa.throwArgumentError("unsupported key-derivation function","kdf",a)}function rs(e){return(rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(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,os(n.key),n)}}function os(e){var t=function(e,t){if("object"!=rs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rs(t)?t:t+""}function as(e,t,r){return t=ss(t),function(e,t){if(t&&("object"==rs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ss(e).constructor):t.apply(e,r))}function ss(e){return(ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cs(e,t){return(cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var us=new h.b("json-wallets/5.7.0"),fs=function(e){function t(){return ns(this,t),as(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cs(e,t)}(t,e),r=t,(n=[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}])&&is(r.prototype,n),i&&is(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(F);function ls(e,t){var r=JSON.parse(e);t=Na(t);var n=pe(Ta(r,"ethaddr")),i=Pa(Ta(r,"encseed"));i&&i.length%16==0||us.throwArgumentError("invalid encseed","json",e);for(var o=Object(u.a)(Vo(t,t,2e3,32,"sha256")).slice(0,16),a=i.slice(0,16),s=i.slice(16),c=new Oa.a.ModeOfOperation.cbc(o,a),f=Oa.a.padding.pkcs7.strip(Object(u.a)(c.decrypt(s))),l="",h=0;h<f.length;h++)l+=String.fromCharCode(f[h]);var d=$(_e(l));return new fs({_isCrowdsaleAccount:!0,address:n,privateKey:d})}function hs(e){var t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function ds(e){var t=null;try{t=JSON.parse(e)}catch(e){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function As(e){if(hs(e))try{return pe(JSON.parse(e).ethaddr)}catch(e){return null}if(ds(e))try{return pe(JSON.parse(e).address)}catch(e){return null}return null}function ps(e,t,r){if(hs(e)){r&&r(0);var n=ls(e,t);return r&&r(1),Promise.resolve(n)}return ds(e)?function(e,t,r){return za(this,void 0,void 0,Ua().mark((function n(){var i,o;return Ua().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=JSON.parse(e),n.next=3,ts(i,t,es,ja.a.scrypt,r);case 3:return o=n.sent,n.abrupt("return",Xa(i,o));case 5:case"end":return n.stop()}}),n)})))}(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function gs(e,t){if(hs(e))return ls(e,t);if(ds(e))return function(e,t){var r=JSON.parse(e);return Xa(r,ts(r,t,$a,ja.a.syncScrypt))}(e,t);throw new Error("invalid JSON wallet")}function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ys(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ys=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==bs(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(bs(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function vs(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,ms(n.key),n)}}function ms(e){var t=function(e,t){if("object"!=bs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bs(t)?t:t+""}function ws(e,t,r){return t=Is(t),function(e,t){if(t&&("object"==bs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Is(e).constructor):t.apply(e,r))}function Is(e){return(Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Es(e,t){return(Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Bs=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Cs=new h.b("wallet/5.7.0");var _s=function(e){function t(e,r){var n,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ws(this,t),null!=(i=e)&&Object(u.l)(i.privateKey,32)&&null!=i.address){var o=new ei(e.privateKey);if(O(n,"_signingKey",(function(){return o})),O(n,"address",ui(n.publicKey)),n.address!==pe(e.address)&&Cs.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var a=e.mnemonic;O(n,"_mnemonic",(function(){return{phrase:a.phrase,path:a.path||Ea,locale:a.locale||"en"}}));var s=n.mnemonic;ui(Ba.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path).privateKey)!==n.address&&Cs.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else O(n,"_mnemonic",(function(){return null}))}else{if(ei.isSigningKey(e))"secp256k1"!==e.curve&&Cs.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),O(n,"_signingKey",(function(){return e}));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var c=new ei(e);O(n,"_signingKey",(function(){return c}))}O(n,"_mnemonic",(function(){return null})),O(n,"address",ui(n.publicKey))}return r&&!Rn.isProvider(r)&&Cs.throwArgumentError("invalid provider","provider",r),O(n,"provider",r||null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Es(e,t)}(t,e),r=t,i=[{key:"createRandom",value:function(e){var r=Object(xa.a)(16);e||(e={}),e.extraEntropy&&(r=Object(u.a)(Object(u.e)($(Object(u.b)([r,e.extraEntropy])),0,16)));var n=ka(r,e.locale);return t.fromMnemonic(n,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,r,n){return ps(e,r,n).then((function(e){return new t(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,r){return new t(gs(e,r))}},{key:"fromMnemonic",value:function(e,r,n){return r||(r=Ea),new t(Ba.fromMnemonic(e,null,n).derivePath(r))}}],(n=[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new t(this,e)}},{key:"signTransaction",value:function(e){var t=this;return j(e).then((function(r){null!=r.from&&(pe(r.from)!==t.address&&Cs.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);var n=t._signingKey().signDigest($(bi(r)));return bi(r,n)}))}},{key:"signMessage",value:function(e){return Bs(this,void 0,void 0,ys().mark((function t(){return ys().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(u.m)(this._signingKey().signDigest(go(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return Bs(this,void 0,void 0,ys().mark((function n(){var i,o=this;return ys().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mo.resolveNames(e,t,r,(function(e){return null==o.provider&&Cs.throwError("cannot resolve ENS names without a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}));case 2:return i=n.sent,n.abrupt("return",Object(u.m)(this._signingKey().signDigest(Mo.hash(i.domain,t,i.value))));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"encrypt",value:function(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if(pe(e.address)!==ui(e.privateKey))throw new Error("address/privateKey mismatch");if(Va(e)){var i=e.mnemonic;if(Ba.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||Ea).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||n||(n=r,r={}),r||(r={});var o=Object(u.a)(e.privateKey),a=Na(t),s=null,c=null,f=null;if(Va(e)){var l=e.mnemonic;s=Object(u.a)(_a(l.phrase,l.locale||"en")),c=l.path||Ea,f=l.locale||"en"}var h=r.client;h||(h="ethers.js");var d=null;d=r.salt?Object(u.a)(r.salt):Object(xa.a)(32);var A=null;if(r.iv){if(16!==(A=Object(u.a)(r.iv)).length)throw new Error("invalid iv")}else A=Object(xa.a)(16);var p=null;if(r.uuid){if(16!==(p=Object(u.a)(r.uuid)).length)throw new Error("invalid uuid")}else p=Object(xa.a)(16);var g=1<<17,b=8,y=1;return r.scrypt&&(r.scrypt.N&&(g=r.scrypt.N),r.scrypt.r&&(b=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),ja.a.scrypt(a,d,g,b,y,64,n).then((function(t){var r=(t=Object(u.a)(t)).slice(0,16),n=t.slice(16,32),i=t.slice(32,64),a=new Oa.a.Counter(A),l=new Oa.a.ModeOfOperation.ctr(r,a),v=Object(u.a)(l.encrypt(o)),m=$(Object(u.b)([n,v])),w={address:e.address.substring(2).toLowerCase(),id:La(p),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(u.i)(A).substring(2)},ciphertext:Object(u.i)(v).substring(2),kdf:"scrypt",kdfparams:{salt:Object(u.i)(d).substring(2),n:g,dklen:32,p:y,r:b},mac:m.substring(2)}};if(s){var I=Object(xa.a)(16),E=new Oa.a.Counter(I),B=new Oa.a.ModeOfOperation.ctr(i,E),C=Object(u.a)(B.encrypt(s)),_=new Date,k=_.getUTCFullYear()+"-"+Ma(_.getUTCMonth()+1,2)+"-"+Ma(_.getUTCDate(),2)+"T"+Ma(_.getUTCHours(),2)+"-"+Ma(_.getUTCMinutes(),2)+"-"+Ma(_.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:h,gethFilename:"UTC--"+k+"--"+w.address,mnemonicCounter:Object(u.i)(I).substring(2),mnemonicCiphertext:Object(u.i)(C).substring(2),path:c,locale:f,version:"0.1"}}return JSON.stringify(w)}))}(this,e,t,r)}}])&&vs(r.prototype,n),i&&vs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Kn);function ks(e,t){return fi(go(e),t)}function Ss(e,t,r,n){return fi(Mo.hash(e,t,r),n)}var Qs="0x0000000000000000000000000000000000000000",xs="0x0000000000000000000000000000000000000000000000000000000000000000",Rs="Ξ",Os=new h.b("networks/5.7.1");function Ds(e){var t=function(t,r){null==r&&(r={});var n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket){try{var i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(e){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{var o=new t.AnkrProvider(e,r.ankr);o.network&&-1===["ropsten"].indexOf(o.network.name)&&n.push(o)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){var a=1;return null!=r.quorum?a=r.quorum:"homestead"===e&&(a=2),new t.FallbackProvider(n,a)}return n[0]};return t.renetwork=function(e){return Ds(e)},t}function js(e,t){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return js(e,t)},r}var Ps={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Ds("homestead")},Ms={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Ds("ropsten")},Ns={chainId:63,name:"classicMordor",_defaultProvider:js("https://www.ethercluster.com/mordor","classicMordor")},Ts={unspecified:{chainId:0,name:"unspecified"},homestead:Ps,mainnet:Ps,morden:{chainId:2,name:"morden"},ropsten:Ms,testnet:Ms,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Ds("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Ds("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Ds("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Ds("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:js("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Ns,classicTestnet:Ns,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:js("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Ds("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Ds("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Ls(e){if(null==e)return null;if("number"==typeof e){for(var t in Ts){var r=Ts[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){var n=Ts[e];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var i=Ts[e.name];if(!i)return"number"!=typeof e.chainId&&Os.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==i.chainId&&Os.throwArgumentError("network chainId mismatch","network",e);var o,a=e._defaultProvider||null;return null==a&&i._defaultProvider&&(a=(o=i._defaultProvider)&&"function"==typeof o.renetwork?i._defaultProvider.renetwork(e):i._defaultProvider),{name:e.name,chainId:i.chainId,ensAddress:e.ensAddress||i.ensAddress||null,_defaultProvider:a}}function Fs(e){e=atob(e);for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return Object(u.a)(t)}function Us(e){e=Object(u.a)(e);for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Gs(e,t){null==t&&(t=1);var r=[],n=r.forEach;return function e(t,i){n.call(t,(function(t){i>0&&Array.isArray(t)?e(t,i-1):r.push(t)}))}(e,t),r}function Hs(e){return function(e){var t=0;return function(){return e[t++]}}(function(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),i=1,o=[0,1],a=1;a<n;a++)o.push(i+=r());var s=r(),c=t;t+=s;var u=0,f=0;function l(){return 0==u&&(f=f<<8|e[t++],u=8),f>>--u&1}for(var h=Math.pow(2,31),d=h>>>1,A=d>>1,p=h-1,g=0,b=0;b<31;b++)g=g<<1|l();for(var y=[],v=0,m=h;;){for(var w=Math.floor(((g-v+1)*i-1)/m),I=0,E=n;E-I>1;){var B=I+E>>>1;w<o[B]?E=B:I=B}if(0==I)break;y.push(I);for(var C=v+Math.floor(m*o[I]/i),_=v+Math.floor(m*o[I+1]/i)-1;0==((C^_)&d);)g=g<<1&p|l(),C=C<<1&p,_=_<<1&p|1;for(;C&~_&A;)g=g&d|g<<1&p>>>1|l(),C=C<<1^d,_=(_^d)<<1|d|1;v=C,m=1+_-C}var k=n-4;return y.map((function(t){switch(t-k){case 3:return k+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return k+256+(e[c++]<<8|e[c++]);case 1:return k+e[c++];default:return t-1}}))}(e))}function qs(e){return 1&e?~e>>1:e>>1}function Ks(e,t){for(var r=Array(e),n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function Ys(e,t){for(var r=Array(e),n=0,i=0;n<e;n++)r[n]=i+=qs(t());return r}function Js(e,t){for(var r=Ks(e(),e),n=e(),i=Ks(n,e),o=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}(n,e),a=0;a<n;a++)for(var s=0;s<o[a];s++)r.push(i[a]+s);return t?r.map((function(e){return t[e]})):r}function zs(e,t,r){for(var n=Array(e).fill(void 0).map((function(){return[]})),i=0;i<t;i++)Ys(e,r).forEach((function(e,t){return n[t].push(e)}));return n}function Ws(e,t){var r=1+t(),n=t(),i=function(e){for(var t=[];;){var r=e();if(0==r)break;t.push(r)}return t}(t);return Gs(zs(i.length,1+e,t).map((function(e,t){var o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map((function(e,t){var i=t*n;return[o+t*r,a.map((function(e){return e+i}))]}))})))}function Vs(e,t){return zs(1+t(),1+e,t).map((function(e){return[e[0],e.slice(1)]}))}function Zs(e){return function(e){if(Array.isArray(e))return $s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xs(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xs(e,t){if(e){if("string"==typeof e)return $s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$s(e,t):void 0}}function $s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ec,tc,rc=Hs(Fs("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")),nc=new Set(Js(rc)),ic=new Set(Js(rc)),oc=function(e){for(var t=[];;){var r=e();if(0==r)break;t.push(Ws(r,e))}for(;;){var n=e()-1;if(n<0)break;t.push(Vs(n,e))}return function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}(Gs(t))}(rc),ac=(tc=Js(ec=rc).sort((function(e,t){return e-t})),function e(){for(var t=[];;){var r=Js(ec,tc);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((function(e,t){return t.set.size-e.set.size}));var n=ec();return{branches:t,valid:n%3,fe0f:!!(1&(n=n/3|0)),save:1==(n>>=1),check:2==n}}());function sc(e){return Re(e)}function cc(e){return e.filter((function(e){return 65039!=e}))}function uc(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xs(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e.split("."));try{for(r.s();!(t=r.n()).done;){var n=t.value,i=sc(n);try{for(var o=i.lastIndexOf(95)-1;o>=0;o--)if(95!==i[o])throw new Error("underscore only allowed at start");if(i.length>=4&&i.every((function(e){return e<128}))&&45===i[2]&&45===i[3])throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'.concat(n,'": ').concat(e.message))}}}catch(e){r.e(e)}finally{r.f()}return e}function fc(e){return uc(function(e,t){var r=sc(e).reverse(),n=[];for(;r.length;){var i=lc(r);if(i)n.push.apply(n,Zs(t(i)));else{var o=r.pop();if(nc.has(o))n.push(o);else if(!ic.has(o)){var a=oc[o];if(!a)throw new Error("Disallowed codepoint: 0x".concat(o.toString(16).toUpperCase()));n.push.apply(n,Zs(a))}}}return uc((s=String.fromCodePoint.apply(String,n),s.normalize("NFC")));var s}(e,cc))}function lc(e,t){var r,n,i,o=ac,a=[],s=e.length;t&&(t.length=0);for(var c=function(){var c=e[--s];if(!(o=null===(r=o.branches.find((function(e){return e.set.has(c)})))||void 0===r?void 0:r.node))return 0;if(o.save)i=c;else if(o.check&&c===i)return 0;a.push(c),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(n=a.slice(),2==o.valid&&n.splice(1,1),t&&t.push.apply(t,Zs(e.slice(s).reverse())),e.length=s)};s&&0!==c(););return n}var hc=new h.b("hash/5.7.0"),dc=new Uint8Array(32);function Ac(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function pc(e){var t=_e(fc(e)),r=[];if(0===e.length)return r;for(var n=0,i=0;i<t.length;i++){46===t[i]&&(r.push(Ac(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(Ac(t.slice(n))),r}function gc(e){try{return 0!==pc(e).length}catch(e){}return!1}function bc(e){"string"!=typeof e&&hc.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=dc,r=pc(e);r.length;)t=$(Object(u.b)([t,$(r.pop())]));return Object(u.i)(t)}function yc(e){return Object(u.i)(Object(u.b)(pc(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}dc.fill(0);function vc(e){return(vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mc=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==vc(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(vc(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}var wc=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};function Ic(e,t){return wc(this,void 0,void 0,mc().mark((function r(){var n,i,o,a,s;return mc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t={}),n={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),null!=t.fetchOptions&&((i=t.fetchOptions).mode&&(n.mode=i.mode),i.cache&&(n.cache=i.cache),i.credentials&&(n.credentials=i.credentials),i.redirect&&(n.redirect=i.redirect),i.referrer&&(n.referrer=i.referrer)),r.next=7,fetch(e,n);case 7:return o=r.sent,r.next=10,o.arrayBuffer();case 10:return a=r.sent,s={},o.headers.forEach?o.headers.forEach((function(e,t){s[t.toLowerCase()]=e})):o.headers.keys().forEach((function(e){s[e.toLowerCase()]=o.headers.get(e)})),r.abrupt("return",{headers:s,statusCode:o.status,statusMessage:o.statusText,body:Object(u.a)(new Uint8Array(a))});case 14:case"end":return r.stop()}}),r)})))}function Ec(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ec=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Bc(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Bc(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Bc(e){return(Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Cc=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},_c=new h.b("web/5.7.1");function kc(e){return new Promise((function(t){setTimeout(t,e)}))}function Sc(e,t){if(null==e)return null;if("string"==typeof e)return e;if(Object(u.k)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return xe(e)}catch(e){}return Object(u.i)(e)}return e}function Qc(e,t,r){var n="object"===Bc(e)&&null!=e.throttleLimit?e.throttleLimit:12;_c.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);var i="object"===Bc(e)?e.throttleCallback:null,o="object"===Bc(e)&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;_c.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);var a="object"===Bc(e)&&!!e.errorPassThrough,s={},c=null,u={method:"GET"},f=!1,l=12e4;if("string"==typeof e)c=e;else if("object"===Bc(e)){if(null!=e&&null!=e.url||_c.throwArgumentError("missing URL","connection.url",e),c=e.url,"number"==typeof e.timeout&&e.timeout>0&&(l=e.timeout),e.headers)for(var d in e.headers)s[d.toLowerCase()]={key:d,value:String(e.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(f=!0);if(u.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==c.substring(0,6)&&!0!==e.allowInsecureAuthentication&&_c.throwError("basic authentication requires a secure https url",h.b.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:e.user,password:"[REDACTED]"});var A=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+Us(_e(A))}}null!=e.skipFetchSetup&&(u.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(u.fetchOptions=M(e.fetchOptions))}var p,g=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),b=c?c.match(g):null;if(b)try{var y={statusCode:200,statusMessage:"OK",headers:{"content-type":b[1]||"text/plain"},body:b[2]?Fs(b[3]):(p=b[3],_e(p.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},v=y.body;return r&&(v=r(y.body,y)),Promise.resolve(v)}catch(e){_c.throwError("processing response error",h.b.errors.SERVER_ERROR,{body:Sc(b[1],b[2]),error:e,requestBody:null,requestMethod:"GET",url:c})}t&&(u.method="POST",u.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));var m={};Object.keys(s).forEach((function(e){var t=s[e];m[t.key]=t.value})),u.headers=m;var w,I=(w=null,{promise:new Promise((function(e,t){l&&(w=setTimeout((function(){null!=w&&(w=null,t(_c.makeError("timeout",h.b.errors.TIMEOUT,{requestBody:Sc(u.body,m["content-type"]),requestMethod:u.method,timeout:l,url:c})))}),l))})),cancel:function(){null!=w&&(clearTimeout(w),w=null)}}),E=function(){return Cc(this,void 0,void 0,Ec().mark((function e(){var t,s,l,d,A,p,g,b,y,v;return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<n)){e.next=65;break}return s=null,e.prev=3,e.next=6,Ic(c,u);case 6:if(s=e.sent,!(t<n)){e.next=28;break}if(301!==s.statusCode&&302!==s.statusCode){e.next=15;break}if(l=s.headers.location||"","GET"!==u.method||!l.match(/^https:/)){e.next=13;break}return c=s.headers.location,e.abrupt("continue",62);case 13:e.next=28;break;case 15:if(429!==s.statusCode){e.next=28;break}if(d=!0,!i){e.next=21;break}return e.next=20,i(t,c);case 20:d=e.sent;case 21:if(!d){e.next=28;break}return A=0,p=s.headers["retry-after"],A="string"==typeof p&&p.match(/^[1-9][0-9]*$/)?1e3*parseInt(p):o*parseInt(String(Math.random()*Math.pow(2,t))),e.next=27,kc(A);case 27:return e.abrupt("continue",62);case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(3),null==(s=e.t0.response)&&(I.cancel(),_c.throwError("missing response",h.b.errors.SERVER_ERROR,{requestBody:Sc(u.body,m["content-type"]),requestMethod:u.method,serverError:e.t0,url:c}));case 34:if(g=s.body,f&&304===s.statusCode?g=null:!a&&(s.statusCode<200||s.statusCode>=300)&&(I.cancel(),_c.throwError("bad response",h.b.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:Sc(g,s.headers?s.headers["content-type"]:null),requestBody:Sc(u.body,m["content-type"]),requestMethod:u.method,url:c})),!r){e.next=60;break}return e.prev=37,e.next=40,r(g,s);case 40:return b=e.sent,I.cancel(),e.abrupt("return",b);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&t<n)){e.next=58;break}if(y=!0,!i){e.next=53;break}return e.next=52,i(t,c);case 52:y=e.sent;case 53:if(!y){e.next=58;break}return v=o*parseInt(String(Math.random()*Math.pow(2,t))),e.next=57,kc(v);case 57:return e.abrupt("continue",62);case 58:I.cancel(),_c.throwError("processing response error",h.b.errors.SERVER_ERROR,{body:Sc(g,s.headers?s.headers["content-type"]:null),error:e.t1,requestBody:Sc(u.body,m["content-type"]),requestMethod:u.method,url:c});case 60:return I.cancel(),e.abrupt("return",g);case 62:t++,e.next=1;break;case 65:return e.abrupt("return",_c.throwError("failed response",h.b.errors.SERVER_ERROR,{requestBody:Sc(u.body,m["content-type"]),requestMethod:u.method,url:c}));case 66:case"end":return e.stop()}}),e,null,[[3,30],[37,45]])})))}();return Promise.race([I.promise,E])}function xc(e,t,r){var n=null;if(null!=t){n=_e(t);var i="string"==typeof e?{url:e}:M(e);if(i.headers)0!==Object.keys(i.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(i.headers=M(i.headers),i.headers["content-type"]="application/json");else i.headers={"content-type":"application/json"};e=i}return Qc(e,n,(function(e,t){var n=null;if(null!=e)try{n=JSON.parse(xe(e))}catch(t){_c.throwError("invalid JSON",h.b.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))}function Rc(e,t){return t||(t={}),null==(t=M(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){var i=null,o=!1,a=function(){return!o&&(o=!0,i&&clearTimeout(i),!0)};t.timeout&&(i=setTimeout((function(){a()&&n(new Error("timeout"))}),t.timeout));var s=t.retryLimit,c=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(++c>s)return void(a()&&n(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));u<t.floor&&(u=t.floor),u>t.ceiling&&(u=t.ceiling),setTimeout(i,u)}return null}),(function(e){a()&&n(e)}))}()}))}var Oc=r(103),Dc=r.n(Oc);function jc(e){return(jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pc(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,Mc(n.key),n)}}function Mc(e){var t=function(e,t){if("object"!=jc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jc(t)?t:t+""}var Nc=new h.b("providers/5.7.2"),Tc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.formats=this.getDefaultFormats()}return t=e,n=[{key:"check",value:function(e,t){var r={};for(var n in e)try{var i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}},{key:"allowNull",value:function(e,t){return function(r){return null==r?t:e(r)}}},{key:"allowFalsish",value:function(e,t){return function(r){return r?e(r):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var r=[];return t.forEach((function(t){r.push(e(t))})),r}}}],(r=[{key:"getDefaultFormats",value:function(){var t=this,r={},n=this.address.bind(this),i=this.bigNumber.bind(this),o=this.blockTag.bind(this),a=this.data.bind(this),s=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),f=this.type.bind(this);return r.transaction={hash:s,type:f,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(s,null),blockNumber:e.allowNull(u,null),transactionIndex:e.allowNull(u,null),confirmations:e.allowNull(u,null),from:n,gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),gasLimit:i,to:e.allowNull(n,null),value:i,nonce:u,data:a,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(u),creates:e.allowNull(n,null),raw:e.allowNull(a)},r.transactionRequest={from:e.allowNull(n),nonce:e.allowNull(u),gasLimit:e.allowNull(i),gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),to:e.allowNull(n),value:e.allowNull(i),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(u),accessList:e.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:s,address:n,topics:e.arrayOf(s),data:a,logIndex:u,blockHash:s},r.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(n,null),transactionIndex:u,root:e.allowNull(c),gasUsed:i,logsBloom:e.allowNull(a),blockHash:s,transactionHash:s,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:e.allowNull(u,null),cumulativeGasUsed:i,effectiveGasPrice:e.allowNull(i),status:e.allowNull(u),type:f},r.block={hash:e.allowNull(s),parentHash:s,number:u,timestamp:u,nonce:e.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:e.allowNull(n),extraData:a,transactions:e.allowNull(e.arrayOf(s)),baseFeePerGas:e.allowNull(i)},r.blockWithTransactions=M(r.block),r.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:e.allowNull(o,void 0),toBlock:e.allowNull(o,void 0),blockHash:e.allowNull(s,void 0),address:e.allowNull(n,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},r.filterLog={blockNumber:e.allowNull(u),blockHash:e.allowNull(s),transactionIndex:u,removed:e.allowNull(this.boolean.bind(this)),address:n,data:e.allowFalsish(a,"0x"),topics:e.arrayOf(s),transactionHash:s,logIndex:u},r}},{key:"accessList",value:function(e){return di(e||[])}},{key:"number",value:function(e){return"0x"===e?0:m.from(e).toNumber()}},{key:"type",value:function(e){return"0x"===e||null==e?0:m.from(e).toNumber()}},{key:"bigNumber",value:function(e){return m.from(e)}},{key:"boolean",value:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Object(u.l)(e))?e.toLowerCase():Nc.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}},{key:"address",value:function(e){return pe(e)}},{key:"callAddress",value:function(e){if(!Object(u.l)(e,32))return null;var t=pe(Object(u.e)(e,12));return t===Qs?null:t}},{key:"contractAddress",value:function(e){return ye(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||Object(u.l)(e))return Object(u.g)(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var r=this.hex(e,t);return 32!==Object(u.d)(r)?Nc.throwArgumentError("invalid hash","value",e):r}},{key:"difficulty",value:function(e){if(null==e)return null;var t=m.from(e);try{return t.toNumber()}catch(e){}return null}},{key:"uint256",value:function(e){if(!Object(u.l)(e))throw new Error("invalid uint256");return Object(u.h)(e,32)}},{key:"_block",value:function(t,r){null!=t.author&&null==t.miner&&(t.miner=t.author);var n=null!=t._difficulty?t._difficulty:t.difficulty,i=e.check(r,t);return i._difficulty=null==n?null:m.from(n),i}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&m.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var r=e.check(this.formats.transaction,t);if(null!=t.chainId){var n=t.chainId;Object(u.l)(n)&&(n=m.from(n).toNumber()),r.chainId=n}else{var i=t.networkId;null==i&&null==r.v&&(i=t.chainId),Object(u.l)(i)&&(i=m.from(i).toNumber()),"number"!=typeof i&&null!=r.v&&((i=(r.v-35)/2)<0&&(i=0),i=parseInt(i)),"number"!=typeof i&&(i=0),r.chainId=i}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}},{key:"transaction",value:function(e){return vi(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var r=e.check(this.formats.receipt,t);if(null!=r.root)if(r.root.length<=4){var n=m.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&Nc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Nc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&Nc.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}])&&Pc(t.prototype,r),n&&Pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function Lc(e){return e&&"function"==typeof e.isCommunityResource}function Fc(e){return Lc(e)&&e.isCommunityResource()}var Uc=!1;function Gc(){Uc||(Uc=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}function Hc(e,t,r){return t=qc(t),function(e,t){if(t&&("object"==Zc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],qc(e).constructor):t.apply(e,r))}function qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kc(e,t){return(Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Yc=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Zc(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Zc(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zc(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,Vc(n.key),n)}}function Wc(e,t,r){return t&&zc(e.prototype,t),r&&zc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vc(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zc(t)?t:t+""}function Zc(e){return(Zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Xc=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},$c=new h.b("providers/5.7.2");function eu(e){return null==e?"null":(32!==Object(u.d)(e)&&$c.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function tu(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[eu(e)]=!0}));var r=Object.keys(t);return r.sort(),r.join("|")}return eu(e)})).join("&")}function ru(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(u.d)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+tu(e);if(xn.isForkEvent(e))throw $c.warn("not implemented"),new Error("not implemented");if(e&&"object"===Zc(e))return"filter:"+(e.address||"*")+":"+tu(e.topics||[])}throw new Error("invalid event - "+e)}function nu(){return(new Date).getTime()}function iu(e){return new Promise((function(t){setTimeout(t,e)}))}var ou=["block","network","pending","poll"],au=function(){return Wc((function e(t,r,n){Jc(this,e),O(this,"tag",t),O(this,"listener",r),O(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}),[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||ou.indexOf(this.tag)>=0}}])}(),su={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function cu(e){return Object(u.h)(m.from(e).toHexString(),32)}function uu(e){return Go.encode(Object(u.b)([e,Object(u.e)(Jo(Jo(e)),0,4)]))}var fu=new RegExp("^(ipfs)://(.*)$","i"),lu=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),fu,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function hu(e,t){try{return xe(du(e,t))}catch(e){}return null}function du(e,t){if("0x"===e)return null;var r=m.from(Object(u.e)(e,t,t+32)).toNumber(),n=m.from(Object(u.e)(e,r,r+32)).toNumber();return Object(u.e)(e,r+32,r+32+n)}function Au(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):$c.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function pu(e){var t=Object(u.a)(e);if(t.length>32)throw new Error("internal; should not happen");var r=new Uint8Array(32);return r.set(t,32-t.length),r}function gu(e){if(e.length%32==0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function bu(e){for(var t=[],r=0,n=0;n<e.length;n++)t.push(null),r+=32;for(var i=0;i<e.length;i++){var o=Object(u.a)(e[i]);t[i]=pu(r),t.push(pu(o.length)),t.push(gu(o)),r+=32+32*Math.ceil(o.length/32)}return Object(u.c)(t)}var yu=function(){return Wc((function e(t,r,n,i){Jc(this,e),O(this,"provider",t),O(this,"name",n),O(this,"address",t.formatter.address(r)),O(this,"_resolvedAddress",i)}),[{key:"supportsWildcard",value:function(){var e=this;return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((function(e){return m.from(e).eq(1)})).catch((function(t){if(t.code===h.b.errors.CALL_EXCEPTION)return!1;throw e._supportsEip2544=null,t}))),this._supportsEip2544}},{key:"_fetch",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i,o;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={to:this.address,ccipReadEnabled:!0,data:Object(u.c)([e,bc(this.name),t||"0x"])},i=!1,r.next=4,this.supportsWildcard();case 4:if(!r.sent){r.next=7;break}i=!0,n.data=Object(u.c)(["0x9061b923",bu([yc(this.name),n.data])]);case 7:return r.prev=7,r.next=10,this.provider.call(n);case 10:return o=r.sent,Object(u.a)(o).length%32==4&&$c.throwError("resolver threw error",h.b.errors.CALL_EXCEPTION,{transaction:n,data:o}),i&&(o=du(o,0)),r.abrupt("return",o);case 16:if(r.prev=16,r.t0=r.catch(7),r.t0.code!==h.b.errors.CALL_EXCEPTION){r.next=20;break}return r.abrupt("return",null);case 20:throw r.t0;case 21:case"end":return r.stop()}}),r,this,[[7,16]])})))}},{key:"_fetchBytes",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._fetch(e,t);case 2:if(null==(n=r.sent)){r.next=5;break}return r.abrupt("return",du(n,0));case 5:return r.abrupt("return",null);case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_getAddress",value:function(e,t){var r=su[String(e)];if(null==r&&$c.throwError("unsupported coin type: ".concat(e),h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===r.ilk)return this.provider.formatter.address(t);var n=Object(u.a)(t);if(null!=r.p2pkh){var i=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var o=parseInt(i[1],16);if(i[2].length===2*o&&o>=1&&o<=75)return uu(Object(u.b)([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var s=parseInt(a[1],16);if(a[2].length===2*s&&s>=1&&s<=75)return uu(Object(u.b)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var c=n[1],f=n[0];if(0===f?20!==c&&32!==c&&(f=-1):f=-1,f>=0&&n.length===2+c&&c>=1&&c<=75){var l=Dc.a.toWords(n.slice(2));return l.unshift(f),Dc.a.encode(r.prefix,l)}}return null}},{key:"getAddress",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(r=t.sent)&&r!==xs){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(r));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==h.b.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",cu(e));case 18:if(null!=(n=t.sent)&&"0x"!==n){t.next=21;break}return t.abrupt("return",null);case 21:return null==(i=this._getAddress(e,n))&&$c.throwError("invalid or unsupported coin data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:n}),t.abrupt("return",i);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t,r,n,i,o,a,s,c,f,l,h,d,A,p,g,b;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(r=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:n=0;case 8:if(!(n<lu.length)){e.next=91;break}if(null!=(i=r.match(lu[n]))){e.next=12;break}return e.abrupt("continue",88);case 12:o=i[1].toLowerCase(),e.t0=o,e.next="https"===e.t0?16:"data"===e.t0?18:"ipfs"===e.t0?20:"erc721"===e.t0||"erc1155"===e.t0?22:88;break;case 16:return t.push({type:"url",content:r}),e.abrupt("return",{linkage:t,url:r});case 18:return t.push({type:"data",content:r}),e.abrupt("return",{linkage:t,url:r});case 20:return t.push({type:"ipfs",content:r}),e.abrupt("return",{linkage:t,url:Au(r)});case 22:if(a="erc721"===o?"0xc87b56dd":"0x0e89341c",t.push({type:o,content:r}),e.t1=this._resolvedAddress,e.t1){e.next=29;break}return e.next=28,this.getAddress();case 28:e.t1=e.sent;case 29:if(s=e.t1,2===(c=(i[2]||"").split("/")).length){e.next=33;break}return e.abrupt("return",null);case 33:return e.next=35,this.provider.formatter.address(c[0]);case 35:if(f=e.sent,l=Object(u.h)(m.from(c[1]).toHexString(),32),"erc721"!==o){e.next=48;break}return e.t2=this.provider.formatter,e.next=41,this.provider.call({to:f,data:Object(u.c)(["0x6352211e",l])});case 41:if(e.t3=e.sent,h=e.t2.callAddress.call(e.t2,e.t3),s===h){e.next=45;break}return e.abrupt("return",null);case 45:t.push({type:"owner",content:h}),e.next=57;break;case 48:if("erc1155"!==o){e.next=57;break}return e.t4=m,e.next=52,this.provider.call({to:f,data:Object(u.c)(["0x00fdd58e",Object(u.h)(s,32),l])});case 52:if(e.t5=e.sent,!(d=e.t4.from.call(e.t4,e.t5)).isZero()){e.next=56;break}return e.abrupt("return",null);case 56:t.push({type:"balance",content:d.toString()});case 57:return A={to:this.provider.formatter.address(c[0]),data:Object(u.c)([a,l])},e.t6=hu,e.next=61,this.provider.call(A);case 61:if(e.t7=e.sent,null!=(p=(0,e.t6)(e.t7,0))){e.next=65;break}return e.abrupt("return",null);case 65:return t.push({type:"metadata-url-base",content:p}),"erc1155"===o&&(p=p.replace("{id}",l.substring(2)),t.push({type:"metadata-url-expanded",content:p})),p.match(/^ipfs:/i)&&(p=Au(p)),t.push({type:"metadata-url",content:p}),e.next=71,xc(p);case 71:if(g=e.sent){e.next=74;break}return e.abrupt("return",null);case 74:if(t.push({type:"metadata",content:JSON.stringify(g)}),"string"==typeof(b=g.image)){e.next=78;break}return e.abrupt("return",null);case 78:if(!b.match(/^(https:\/\/|data:)/i)){e.next=81;break}e.next=86;break;case 81:if(null!=b.match(fu)){e.next=84;break}return e.abrupt("return",null);case 84:t.push({type:"url-ipfs",content:b}),b=Au(b);case 86:return t.push({type:"url",content:b}),e.abrupt("return",{linkage:t,url:b});case 88:n++,e.next=8;break;case 91:e.next=95;break;case 93:e.prev=93,e.t8=e.catch(1);case 95:return e.abrupt("return",null);case 96:case"end":return e.stop()}}),e,this,[[1,93]])})))}},{key:"getContentHash",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t,r,n,i,o,a,s,c,u;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(t=e.sent)&&"0x"!==t){e.next=5;break}return e.abrupt("return",null);case 5:if(!(r=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=10;break}if(n=parseInt(r[3],16),r[4].length!==2*n){e.next=10;break}return e.abrupt("return","ipfs://"+Go.encode("0x"+r[1]));case 10:if(!(i=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=15;break}if(o=parseInt(i[3],16),i[4].length!==2*o){e.next=15;break}return e.abrupt("return","ipns://"+Go.encode("0x"+i[1]));case 15:if(!(a=t.match(/^0xe40101fa011b20([0-9a-f]*)$/))){e.next=19;break}if(64!==a[1].length){e.next=19;break}return e.abrupt("return","bzz://"+a[1]);case 19:if(!(s=t.match(/^0x90b2c605([0-9a-f]*)$/))){e.next=25;break}if(68!==s[1].length){e.next=25;break}return c={"=":"","+":"-","/":"_"},u=Us("0x"+s[1]).replace(/[=+\/]/g,(function(e){return c[e]})),e.abrupt("return","sia://"+u);case 25:return e.abrupt("return",$c.throwError("invalid or unsupported content hash data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t}));case 26:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=_e(e),(r=Object(u.b)([cu(64),cu(r.length),r])).length%32!=0&&(r=Object(u.b)([r,Object(u.h)("0x",32-e.length%32)])),t.next=5,this._fetchBytes("0x59d1d43c",Object(u.i)(r));case 5:if(null!=(n=t.sent)&&"0x"!==n){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",xe(n));case 9:case"end":return t.stop()}}),t,this)})))}}])}(),vu=null,mu=1,wu=function(e){function t(e){var r;if(Jc(this,t),(r=Hc(this,t))._events=[],r._emitted={block:-2},r.disableCcipRead=!1,r.formatter=(this instanceof t?this.constructor:void 0).getFormatter(),O(r,"anyNetwork","any"===e),r.anyNetwork&&(e=r.detectNetwork()),e instanceof Promise)r._networkPromise=e,e.catch((function(e){})),r._ready().catch((function(e){}));else{var n=D(this instanceof t?this.constructor:void 0,"getNetwork")(e);n?(O(r,"_network",n),r.emit("network",n,null)):$c.throwArgumentError("invalid network","network",e)}return r._maxInternalBlockNumber=-1024,r._lastBlockNumber=-2,r._maxFilterBlockRange=10,r._pollingInterval=4e3,r._fastQueryDate=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kc(e,t)}(t,e),Wc(t,[{key:"_ready",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17;break}if(t=null,!this._networkPromise){e.next=11;break}return e.prev=3,e.next=6,this._networkPromise;case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(null!=t){e.next=15;break}return e.next=14,this.detectNetwork();case 14:t=e.sent;case 15:t||$c.throwError("no network detected",h.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:O(this,"_network",t),this.emit("network",t,null));case 17:return e.abrupt("return",this._network);case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this;return Rc((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==h.b.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"ccipReadFetch",value:function(e,t,r){return Xc(this,void 0,void 0,Yc().mark((function n(){var i,o,a,s,c,u,f,l,d;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.disableCcipRead&&0!==r.length){n.next=2;break}return n.abrupt("return",null);case 2:i=e.to.toLowerCase(),o=t.toLowerCase(),a=[],s=0;case 6:if(!(s<r.length)){n.next=22;break}return c=r[s],u=c.replace("{sender}",i).replace("{data}",o),f=c.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:i}),n.next=12,xc({url:u,errorPassThrough:!0},f,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(l=n.sent).data){n.next=15;break}return n.abrupt("return",l.data);case 15:if(d=l.message||"unknown error",!(l.status>=400&&l.status<500)){n.next=18;break}return n.abrupt("return",$c.throwError("response not found during CCIP fetch: ".concat(d),h.b.errors.SERVER_ERROR,{url:c,errorMessage:d}));case 18:a.push(d);case 19:s++,n.next=6;break;case 22:return n.abrupt("return",$c.throwError("error encountered during CCIP fetch: ".concat(a.map((function(e){return JSON.stringify(e)})).join(", ")),h.b.errors.SERVER_ERROR,{urls:r,errorMessages:a}));case 23:case"end":return n.stop()}}),n,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i,o,a=this;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r;case 8:if(n=t.sent,!(nu()-n.respTime<=e)){t.next=11;break}return t.abrupt("return",n.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return i=nu(),o=j({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError;if(r)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),r;var n=nu();return(t=m.from(t).toNumber())<a._maxInternalBlockNumber&&(t=a._maxInternalBlockNumber),a._maxInternalBlockNumber=t,a._setFastBlockNumber(t),{blockNumber:t,reqTime:i,respTime:n}})),this._internalBlockNumber=o,o.catch((function(e){a._internalBlockNumber===o&&(a._internalBlockNumber=null)})),t.next=26,o;case 26:return t.abrupt("return",t.sent.blockNumber);case 27:case"end":return t.stop()}}),t,this,[[5,14]])})))}},{key:"poll",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t,r,n,i,o=this;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=mu++,r=[],n=null,e.prev=3,e.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:n=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),this.emit("error",e.t0),e.abrupt("return");case 13:if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){e.next=18;break}return this.emit("didPoll",t),e.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)$c.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",$c.makeError("network block skew detected",h.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i);return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e];"pending"!==t&&n-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)}));r.push(i);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=n-1);var a=e.filter;a.fromBlock=e._lastBlockNumber+1,a.toBlock=n;var s=a.toBlock-o._maxFilterBlockRange;s>a.fromBlock&&(a.fromBlock=s),a.fromBlock<0&&(a.fromBlock=0);var c=o.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}))})).catch((function(t){o.emit("error",t),e._inflight=!1}));r.push(c)}}})),this._lastBlockNumber=n,Promise.all(r).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",$c.throwError("provider does not support network detection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t,r,n;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),e.next=19,iu(0);case 19:return e.abrupt("return",this._network);case 20:throw n=$c.makeError("underlying network changed",h.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=nu();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=nu(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Xc(this,void 0,void 0,Yc().mark((function n(){return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Xc(this,void 0,void 0,Yc().mark((function i(){var o,a=this;return Yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e);case 2:if(!(((o=i.sent)?o.confirmations:0)>=t)){i.next=5;break}return i.abrupt("return",o);case 5:return i.abrupt("return",new Promise((function(i,o){var s=[],c=!1,u=function(){return!!c||(c=!0,s.forEach((function(e){e()})),!1)},f=function(e){e.confirmations<t||u()||i(e)};if(a.on(e,f),s.push((function(){a.removeListener(e,f)})),n){var l=n.startBlock,d=null,A=function r(i){return Xc(a,void 0,void 0,Yc().mark((function a(){var s=this;return Yc().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,iu(1e3);case 4:this.getTransactionCount(n.from).then((function(a){return Xc(s,void 0,void 0,Yc().mark((function s(){var f,A,p,g,b,y;return Yc().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!c){s.next=2;break}return s.abrupt("return");case 2:if(!(a<=n.nonce)){s.next=6;break}l=i,s.next=41;break;case 6:return s.next=8,this.getTransaction(e);case 8:if(!(f=s.sent)||null==f.blockNumber){s.next=11;break}return s.abrupt("return");case 11:null==d&&(d=l-3)<n.startBlock&&(d=n.startBlock);case 12:if(!(d<=i)){s.next=41;break}if(!c){s.next=15;break}return s.abrupt("return");case 15:return s.next=17,this.getBlockWithTransactions(d);case 17:A=s.sent,p=0;case 19:if(!(p<A.transactions.length)){s.next=38;break}if((g=A.transactions[p]).hash!==e){s.next=23;break}return s.abrupt("return");case 23:if(g.from!==n.from||g.nonce!==n.nonce){s.next=35;break}if(!c){s.next=26;break}return s.abrupt("return");case 26:return s.next=28,this.waitForTransaction(g.hash,t);case 28:if(b=s.sent,!u()){s.next=31;break}return s.abrupt("return");case 31:return y="replaced",g.data===n.data&&g.to===n.to&&g.value.eq(n.value)?y="repriced":"0x"===g.data&&g.from===g.to&&g.value.isZero()&&(y="cancelled"),o($c.makeError("transaction was replaced",h.b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===y||"cancelled"===y,reason:y,replacement:this._wrapTransaction(g),hash:e,receipt:b})),s.abrupt("return");case 35:p++,s.next=19;break;case 38:d++,s.next=12;break;case 41:if(!c){s.next=43;break}return s.abrupt("return");case 43:this.once("block",r);case 44:case"end":return s.stop()}}),s,this)})))}),(function(e){c||s.once("block",r)}));case 5:case"end":return a.stop()}}),a,this)})))};if(c)return;a.once("block",A),s.push((function(){a.removeListener("block",A)}))}if("number"==typeof r&&r>0){var p=setTimeout((function(){u()||o($c.makeError("timeout exceeded",h.b.errors.TIMEOUT,{timeout:r}))}),r);p.unref&&p.unref(),s.push((function(){clearTimeout(p)}))}})));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){var t;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",m.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getBalance",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",m.from(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",m.from(i).toNumber());case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getCode",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",Object(u.i)(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Xc(this,void 0,void 0,Yc().mark((function n(){var i,o;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return Object(u.g)(e)}))});case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i);case 7:return o=n.sent,n.prev=8,n.abrupt("return",Object(u.i)(o));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this;if(null!=t&&32!==Object(u.d)(t))throw new Error("invalid response - sendTransaction");var i=e;return null!=t&&e.hash!==t&&$c.throwError("Transaction hash mismatch from Provider.sendTransaction.",h.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return Xc(n,void 0,void 0,Yc().mark((function n(){var o,a;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==i&&(i=0),o=void 0,0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,i,o);case 6:if(null!=(a=n.sent)||0!==t){n.next=9;break}return n.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&$c.throwError("transaction failed",h.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),n.abrupt("return",a);case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i,o;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(u.i)(e)}));case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r});case 13:return o=t.sent,t.abrupt("return",this._wrapTransaction(n,o,i));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i=this;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?m.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?Object(u.i)(e):null})))})),t.t0=this.formatter,t.next=12,j(n);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n=this;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,j(r);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,r){return Xc(this,void 0,void 0,Yc().mark((function n(){var i,o,a,s,c,f,l,d,A,p,g,b,y,v,w;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r>=10&&$c.throwError("CCIP read exceeded maximum redirections",h.b.errors.SERVER_ERROR,{redirects:r,transaction:e}),i=e.to,n.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(o=n.sent,!(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&Object(u.d)(o)%32==4)){n.next=31;break}for(n.prev=6,a=Object(u.e)(o,4),s=Object(u.e)(a,0,32),m.from(s).eq(i)||$c.throwError("CCIP Read sender did not match",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),c=[],f=m.from(Object(u.e)(a,32,64)).toNumber(),l=m.from(Object(u.e)(a,f,f+32)).toNumber(),d=Object(u.e)(a,f+32),A=0;A<l;A++)null==(p=hu(d,32*A))&&$c.throwError("CCIP Read contained corrupt URL string",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),c.push(p);return g=du(a,64),m.from(Object(u.e)(a,100,128)).isZero()||$c.throwError("CCIP Read callback selector included junk",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),b=Object(u.e)(a,96,100),y=du(a,128),n.next=21,this.ccipReadFetch(e,g,c);case 21:return null==(v=n.sent)&&$c.throwError("CCIP Read disabled or provided no URLs",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),w={to:i,data:Object(u.c)([b,bu([v,y])])},n.abrupt("return",this._call(w,t,r+1));case 27:if(n.prev=27,n.t0=n.catch(6),n.t0.code!==h.b.errors.SERVER_ERROR){n.next=31;break}throw n.t0;case 31:return n.prev=31,n.abrupt("return",Object(u.i)(o));case 35:return n.prev=35,n.t1=n.catch(31),n.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:o,error:n.t1}));case 38:case"end":return n.stop()}}),n,this,[[6,27],[31,35]])})))}},{key:"call",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});case 4:return n=r.sent,r.abrupt("return",this._call(n.transaction,n.blockTag,n.ccipReadEnabled?0:-1));case 6:case"end":return r.stop()}}),r,this)})))}},{key:"estimateGas",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,j({transaction:this._getTransactionRequest(e)});case 4:return r=t.sent,t.next=7,this.perform("estimateGas",r);case 7:return n=t.sent,t.prev=8,t.abrupt("return",m.from(n));case 12:return t.prev=12,t.t0=t.catch(8),t.abrupt("return",$c.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:t.t0}));case 15:case"end":return t.stop()}}),t,this,[[8,12]])})))}},{key:"_getAddress",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return"string"!=typeof(e=t.sent)&&$c.throwArgumentError("invalid address or ENS name","name",e),t.next=6,this.resolveName(e);case 6:return null==(r=t.sent)&&$c.throwError("ENS name not configured",h.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlock",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i,o=this;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,e;case 4:if(e=r.sent,n=-128,i={includeTransactions:!!t},!Object(u.l)(e,32)){r.next=11;break}i.blockHash=e,r.next=21;break;case 11:return r.prev=11,r.next=14,this._getBlockTag(e);case 14:i.blockTag=r.sent,Object(u.l)(i.blockTag)&&(n=parseInt(i.blockTag.substring(2),16)),r.next=21;break;case 18:r.prev=18,r.t0=r.catch(11),$c.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e);case 21:return r.abrupt("return",Rc((function(){return Xc(o,void 0,void 0,Yc().mark((function e(){var r,o,a,s,c,u,f=this;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getBlock",i);case 2:if(null!=(r=e.sent)){e.next=11;break}if(null==i.blockHash){e.next=7;break}if(null!=this._emitted["b:"+i.blockHash]){e.next=7;break}return e.abrupt("return",null);case 7:if(null==i.blockTag){e.next=10;break}if(!(n>this._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}o=null,a=0;case 14:if(!(a<r.transactions.length)){e.next=31;break}if(null!=(s=r.transactions[a]).blockNumber){e.next=20;break}s.confirmations=0,e.next=28;break;case 20:if(null!=s.confirmations){e.next=28;break}if(null!=o){e.next=25;break}return e.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:o=e.sent;case 25:(c=o-s.blockNumber+1)<=0&&(c=1),s.confirmations=c;case 28:a++,e.next=14;break;case 31:return(u=this.formatter.blockWithTransactions(r)).transactions=u.transactions.map((function(e){return f._wrapTransaction(e)})),e.abrupt("return",u);case 34:return e.abrupt("return",this.formatter.block(r));case 35:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 22:case"end":return r.stop()}}),r,this,[[11,18]])})))}},{key:"getBlock",value:function(e){return this._getBlock(e,!1)}},{key:"getBlockWithTransactions",value:function(e){return this._getBlock(e,!0)}},{key:"getTransaction",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n=this;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Rc((function(){return Xc(n,void 0,void 0,Yc().mark((function t(){var n,i,o,a;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransaction",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=(i=this.formatter.transactionResponse(n)).blockNumber){t.next=12;break}i.confirmations=0,t.next=19;break;case 12:if(null!=i.confirmations){t.next=19;break}return t.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:o=t.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 19:return t.abrupt("return",this._wrapTransaction(i));case 20:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionReceipt",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n=this;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Rc((function(){return Xc(n,void 0,void 0,Yc().mark((function t(){var n,i,o,a;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransactionReceipt",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=n.blockHash){t.next=9;break}return t.abrupt("return",void 0);case 9:if(null!=(i=this.formatter.receipt(n)).blockNumber){t.next=14;break}i.confirmations=0,t.next=21;break;case 14:if(null!=i.confirmations){t.next=21;break}return t.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:o=t.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 21:return t.abrupt("return",i);case 22:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getLogs",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,j({filter:this._getFilter(e)});case 4:return r=t.sent,t.next=7,this.perform("getLogs",r);case 7:return(n=t.sent).forEach((function(e){null==e.removed&&(e.removed=!1)})),t.abrupt("return",Tc.arrayOf(this.formatter.filterLog.bind(this.formatter))(n));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getEtherPrice",value:function(){return Xc(this,void 0,void 0,Yc().mark((function e(){return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlockTag",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(!("number"==typeof(e=t.sent)&&e<0)){t.next=11;break}return e%1&&$c.throwArgumentError("invalid BlockTag","blockTag",e),t.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return r=t.sent,(r+=e)<0&&(r=0),t.abrupt("return",this.formatter.blockTag(r));case 11:return t.abrupt("return",this.formatter.blockTag(e));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"getResolver",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e;case 1:if(""!==r&&"."!==r){t.next=4;break}return t.abrupt("return",null);case 4:if("eth"===e||"eth"!==r){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,this._getResolver(r,"getResolver");case 8:if(null==(n=t.sent)){t.next=19;break}if(i=new yu(this,n,e),t.t0=r!==e,!t.t0){t.next=16;break}return t.next=15,i.supportsWildcard();case 15:t.t0=!t.sent;case 16:if(!t.t0){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",i);case 19:r=r.split(".").slice(1).join("."),t.next=1;break;case 22:case"end":return t.stop()}}),t,this)})))}},{key:"_getResolver",value:function(e,t){return Xc(this,void 0,void 0,Yc().mark((function r(){var n,i;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t="ENS"),r.next=3,this.getNetwork();case 3:return(n=r.sent).ensAddress||$c.throwError("network does not support ENS",h.b.errors.UNSUPPORTED_OPERATION,{operation:t,network:n.name}),r.prev=5,r.next=8,this.call({to:n.ensAddress,data:"0x0178b8bf"+bc(e).substring(2)});case 8:return i=r.sent,r.abrupt("return",this.formatter.callAddress(i));case 12:r.prev=12,r.t0=r.catch(5);case 14:return r.abrupt("return",null);case 15:case"end":return r.stop()}}),r,this,[[5,12]])})))}},{key:"resolveName",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,t.prev=3,t.abrupt("return",Promise.resolve(this.formatter.address(e)));case 7:if(t.prev=7,t.t0=t.catch(3),!Object(u.l)(e)){t.next=11;break}throw t.t0;case 11:return"string"!=typeof e&&$c.throwArgumentError("invalid ENS name","name",e),t.next=14,this.getResolver(e);case 14:if(r=t.sent){t.next=17;break}return t.abrupt("return",null);case 17:return t.next=19,r.getAddress();case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t,this,[[3,7]])})))}},{key:"lookupAddress",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,e=this.formatter.address(e),r=e.substring(2).toLowerCase()+".addr.reverse",t.next=7,this._getResolver(r,"lookupAddress");case 7:if(null!=(n=t.sent)){t.next=10;break}return t.abrupt("return",null);case 10:return t.t0=hu,t.next=13,this.call({to:n,data:"0x691f3431"+bc(r).substring(2)});case 13:return t.t1=t.sent,i=(0,t.t0)(t.t1,0),t.next=17,this.resolveName(i);case 17:if(t.sent==e){t.next=20;break}return t.abrupt("return",null);case 20:return t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)})))}},{key:"getAvatar",value:function(e){return Xc(this,void 0,void 0,Yc().mark((function t(){var r,n,i,o,a,s,c;return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null,!Object(u.l)(e)){t.next=40;break}return n=this.formatter.address(e),i=n.substring(2).toLowerCase()+".addr.reverse",t.next=6,this._getResolver(i,"getAvatar");case 6:if(o=t.sent){t.next=9;break}return t.abrupt("return",null);case 9:return r=new yu(this,o,i),t.prev=10,t.next=13,r.getAvatar();case 13:if(!(a=t.sent)){t.next=16;break}return t.abrupt("return",a.url);case 16:t.next=22;break;case 18:if(t.prev=18,t.t0=t.catch(10),t.t0.code===h.b.errors.CALL_EXCEPTION){t.next=22;break}throw t.t0;case 22:return t.prev=22,t.t1=hu,t.next=26,this.call({to:o,data:"0x691f3431"+bc(i).substring(2)});case 26:return t.t2=t.sent,s=(0,t.t1)(t.t2,0),t.next=30,this.getResolver(s);case 30:r=t.sent,t.next=38;break;case 33:if(t.prev=33,t.t3=t.catch(22),t.t3.code===h.b.errors.CALL_EXCEPTION){t.next=37;break}throw t.t3;case 37:return t.abrupt("return",null);case 38:t.next=45;break;case 40:return t.next=42,this.getResolver(e);case 42:if(r=t.sent){t.next=45;break}return t.abrupt("return",null);case 45:return t.next=47,r.getAvatar();case 47:if(null!=(c=t.sent)){t.next=50;break}return t.abrupt("return",null);case 50:return t.abrupt("return",c.url);case 51:case"end":return t.stop()}}),t,this,[[10,18],[22,33]])})))}},{key:"perform",value:function(e,t){return $c.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new au(ru(e),t,r);return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=!1,a=[],s=ru(e);return this._events=this._events.filter((function(e){return e.tag!==s||(setTimeout((function(){e.listener.apply(t,n)}),0),o=!0,!e.once||(a.push(e),!1))})),a.forEach((function(e){t._stopEvent(e)})),o}},{key:"listenerCount",value:function(e){if(!e)return this._events.length;var t=ru(e);return this._events.filter((function(e){return e.tag===t})).length}},{key:"listeners",value:function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=ru(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))}},{key:"off",value:function(e,t){var r=this;if(null==t)return this.removeAllListeners(e);var n=[],i=!1,o=ru(e);return this._events=this._events.filter((function(e){return e.tag!==o||e.listener!=t||(!!i||(i=!0,n.push(e),!1))})),n.forEach((function(e){r._stopEvent(e)})),this}},{key:"removeAllListeners",value:function(e){var t=this,r=[];if(null==e)r=this._events,this._events=[];else{var n=ru(e);this._events=this._events.filter((function(e){return e.tag!==n||(r.push(e),!1)}))}return r.forEach((function(e){t._stopEvent(e)})),this}}],[{key:"getFormatter",value:function(){return null==vu&&(vu=new Tc),vu}},{key:"getNetwork",value:function(e){return Ls(null==e?"homestead":e)}}])}(Rn);function Iu(){return(Iu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Eu(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function Eu(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=xu(e)););return e}function Bu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Bu=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Du(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Du(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _u(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,Su(n.key),n)}}function ku(e,t,r){return t&&_u(e.prototype,t),r&&_u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Su(e){var t=function(e,t){if("object"!=Du(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Du(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Du(t)?t:t+""}function Qu(e,t,r){return t=xu(t),function(e,t){if(t&&("object"==Du(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],xu(e).constructor):t.apply(e,r))}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ru(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ou(e,t)}function Ou(e,t){return(Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Du(e){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ju=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Pu=new h.b("providers/5.7.2"),Mu=["call","estimateGas"];function Nu(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){var r=Object(u.l)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"===Du(e)){for(var n in e){var i=Nu(e[n],t);if(i)return i}return null}if("string"==typeof e)try{return Nu(JSON.parse(e),t)}catch(e){}return null}function Tu(e,t,r){var n=r.transaction||r.signedTransaction;if("call"===e){var i=Nu(t,!0);if(i)return i.data;Pu.throwError("missing revert data in call exception; Transaction reverted without a reason string",h.b.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){var o=Nu(t.body,!1);null==o&&(o=Nu(t,!1)),o&&Pu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:e,transaction:n,error:t})}var a=t.message;throw t.code===h.b.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?a=t.error.message:"string"==typeof t.body?a=t.body:"string"==typeof t.responseText&&(a=t.responseText),(a=(a||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Pu.throwError("insufficient funds for intrinsic transaction cost",h.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),a.match(/nonce (is )?too low/i)&&Pu.throwError("nonce has already been used",h.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Pu.throwError("replacement fee too low",h.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),a.match(/only replay-protected/i)&&Pu.throwError("legacy pre-eip-155 transactions not supported",h.b.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),Mu.indexOf(e)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Pu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function Lu(e){return new Promise((function(t){setTimeout(t,e)}))}function Fu(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function Uu(e){return e?e.toLowerCase():e}var Gu={},Hu=function(e){function t(e,r,n){var i;if(Cu(this,t),i=Qu(this,t),e!==Gu)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return O(i,"provider",r),null==n&&(n=0),"string"==typeof n?(O(i,"_address",i.provider.formatter.address(n)),O(i,"_index",null)):"number"==typeof n?(O(i,"_index",n),O(i,"_address",null)):Pu.throwArgumentError("invalid address or index","addressOrIndex",n),i}return Ru(t,e),ku(t,[{key:"connect",value:function(e){return Pu.throwError("cannot alter JSON-RPC Signer connection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new qu(Gu,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&Pu.throwError("unknown account #"+e._index,h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=M(e);var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var n=M(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return ju(t,void 0,void 0,Bu().mark((function t(){var r;return Bu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(r=t.sent)&&Pu.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))}))),j({tx:j(e),sender:r}).then((function(r){var n=r.tx,i=r.sender;null!=n.from?n.from.toLowerCase()!==i&&Pu.throwArgumentError("from address mismatch","transaction",e):n.from=i;var o=t.provider.constructor.hexlifyTransaction(n,{from:!0});return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&Pu.throwError("user rejected transaction",h.b.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),Tu("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return Pu.throwError("signing transactions is unsupported",h.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return ju(this,void 0,void 0,Bu().mark((function t(){var r,n,i=this;return Bu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return n=t.sent,t.prev=6,t.next=9,Rc((function(){return ju(i,void 0,void 0,Bu().mark((function e(){var t;return Bu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return ju(this,void 0,void 0,Bu().mark((function t(){var r,n;return Bu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?_e(e):e,t.next=3,this.getAddress();case 3:return n=t.sent,t.prev=4,t.next=7,this.provider.send("personal_sign",[Object(u.i)(r),n.toLowerCase()]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Pu.throwError("user rejected signing",h.b.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_legacySignMessage",value:function(e){return ju(this,void 0,void 0,Bu().mark((function t(){var r,n;return Bu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?_e(e):e,t.next=3,this.getAddress();case 3:return n=t.sent,t.prev=4,t.next=7,this.provider.send("eth_sign",[n.toLowerCase(),Object(u.i)(r)]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Pu.throwError("user rejected signing",h.b.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_signTypedData",value:function(e,t,r){return ju(this,void 0,void 0,Bu().mark((function n(){var i,o,a=this;return Bu().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Mo.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)}));case 2:return i=n.sent,n.next=5,this.getAddress();case 5:return o=n.sent,n.prev=6,n.next=9,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(Mo.getPayload(i.domain,t,i.value))]);case 9:return n.abrupt("return",n.sent);case 12:throw n.prev=12,n.t0=n.catch(6),"string"==typeof n.t0.message&&n.t0.message.match(/user denied/i)&&Pu.throwError("user rejected signing",h.b.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:i.domain,types:t,value:i.value}}),n.t0;case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"unlock",value:function(e){return ju(this,void 0,void 0,Bu().mark((function t(){var r,n;return Bu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress();case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}])}(Kn),qu=function(e){function t(){return Cu(this,t),Qu(this,t,arguments)}return Ru(t,e),ku(t,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}])}(Hu),Ku={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},Yu=function(e){function t(e,r){var n;Cu(this,t);var i=r;return null==i&&(i=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),n=Qu(this,t,[i]),e||(e=D(n.constructor,"defaultUrl")()),O(n,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(M(e))),n._nextId=42,n}return Ru(t,e),ku(t,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return ju(this,void 0,void 0,Bu().mark((function e(){var t,r;return Bu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lu(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return r=D(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(m.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",Pu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",Pu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new Hu(Gu,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:L(n),provider:this});var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];var o=xc(this.connection,JSON.stringify(n),Fu).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e}));return i&&(this._cache[e]=o,setTimeout((function(){r._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Uu(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Uu(t.address),t.blockTag]];case"getCode":return["eth_getCode",[Uu(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Uu(t.address),Object(u.h)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[D(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[D(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=Uu(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return ju(this,void 0,void 0,Bu().mark((function r(){var n,i,o;return Bu().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8;break}if(!(n=t.transaction)||null==n.type||!m.from(n.type).isZero()){r.next=8;break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8;break}return r.next=6,this.getFeeData();case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=M(t)).transaction=M(n),delete t.transaction.type);case 8:return null==(o=this.prepareRequest(e,t))&&Pu.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(o[0],o[1]);case 13:return r.abrupt("return",r.sent);case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",Tu(e,r.t0,t));case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),Iu(xu(t.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;var n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return Lu(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),Iu(xu(t.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r=M(Ku);if(t)for(var n in t)t[n]&&(r[n]=!0);P(e,r);var i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=Object(u.g)(m.from(e[t]));"gasLimit"===t&&(t="gas"),i[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=Object(u.i)(e[t]))})),e.accessList&&(i.accessList=di(e.accessList)),i}}])}(wu),Ju=null;try{if(null==(Ju=WebSocket))throw new Error("inject please")}catch(e){var zu=new h.b("providers/5.7.2");Ju=function(){zu.throwError("WebSockets not supported in this environment",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}function Wu(e){return(Wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vu=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Wu(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Wu(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Zu(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,Xu(n.key),n)}}function Xu(e){var t=function(e,t){if("object"!=Wu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wu(t)?t:t+""}function $u(e,t,r){return t=of(t),function(e,t){if(t&&("object"==Wu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ef(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],of(e).constructor):t.apply(e,r))}function ef(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tf(e,t){return(tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rf(){return(rf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=nf(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function nf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=of(e)););return e}function of(e){return(of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var af=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},sf=new h.b("providers/5.7.2"),cf=1,uf=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"any"===r&&sf.throwError("WebSocketProvider does not support 'any' network yet",h.b.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(n=$u(this,t,"string"==typeof e?[e,r]:["_websocket",r]))._pollingInterval=-1,n._wsReady=!1,O(ef(n),"_websocket","string"==typeof e?new Ju(n.connection.url):e),O(ef(n),"_requests",{}),O(ef(n),"_subs",{}),O(ef(n),"_subIds",{}),O(ef(n),"_detectNetwork",rf((ef(n),of(t.prototype)),"detectNetwork",ef(n)).call(ef(n))),n.websocket.onopen=function(){n._wsReady=!0,Object.keys(n._requests).forEach((function(e){n.websocket.send(n._requests[e].payload)}))},n.websocket.onmessage=function(e){var t=e.data,r=JSON.parse(t);if(null!=r.id){var i=String(r.id),o=n._requests[i];if(delete n._requests[i],void 0!==r.result)o.callback(null,r.result),n.emit("debug",{action:"response",request:JSON.parse(o.payload),response:r.result,provider:ef(n)});else{var a=null;r.error?(O(a=new Error(r.error.message||"unknown error"),"code",r.error.code||null),O(a,"response",t)):a=new Error("unknown error"),o.callback(a,void 0),n.emit("debug",{action:"response",error:a,request:JSON.parse(o.payload),provider:ef(n)})}}else if("eth_subscription"===r.method){var s=n._subs[r.params.subscription];s&&s.processFunc(r.params.result)}else console.warn("this should not happen")};var i=setInterval((function(){n.emit("poll")}),1e3);return i.unref&&i.unref(),ef(n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tf(e,t)}(t,e),r=t,i=[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}],(n=[{key:"websocket",get:function(){return this._websocket}},{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){sf.throwError("cannot set polling interval on WebSocketProvider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){sf.throwError("cannot reset events block on WebSocketProvider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return af(this,void 0,void 0,Vu().mark((function e(){return Vu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&sf.throwError("cannot set polling on WebSocketProvider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var r=this,n=cf++;return new Promise((function(i,o){var a=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});r.emit("debug",{action:"request",request:JSON.parse(a),provider:r}),r._requests[String(n)]={callback:function(e,t){return e?o(e):i(t)},payload:a},r._wsReady&&r.websocket.send(a)}))}},{key:"_subscribe",value:function(e,t,r){return af(this,void 0,void 0,Vu().mark((function n(){var i,o,a=this;return Vu().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==(i=this._subIds[e])&&(i=Promise.all(t).then((function(e){return a.send("eth_subscribe",e)})),this._subIds[e]=i),n.next=4,i;case 4:o=n.sent,this._subs[o]={tag:e,processFunc:r};case 6:case"end":return n.stop()}}),n,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var r=m.from(e.number).toNumber();t._emitted.block=r,t.emit("block",r)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(r){null==r.removed&&(r.removed=!1),t.emit(e.filter,t.formatter.filterLog(r))}));break;case"tx":var r=function(e){var r=e.hash;t.getTransactionReceipt(r).then((function(e){e&&t.emit(r,e)}))};r(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(r)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,r=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;r="tx"}else if(this.listenerCount(e.event))return;var n=this._subIds[r];n&&(delete this._subIds[r],n.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return af(this,void 0,void 0,Vu().mark((function e(){var t=this;return Vu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.websocket.readyState!==Ju.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t.websocket.onopen=function(){e(!0)},t.websocket.onerror=function(){e(!1)}}));case 3:this.websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}])&&Zu(r.prototype,n),i&&Zu(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Yu);function ff(e){return(ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lf=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ff(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ff(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function df(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,pf(n.key),n)}}function Af(e,t,r){return t&&df(e.prototype,t),r&&df(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pf(e){var t=function(e,t){if("object"!=ff(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ff(t)?t:t+""}function gf(e,t,r){return t=vf(t),function(e,t){if(t&&("object"==ff(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],vf(e).constructor):t.apply(e,r))}function bf(){return(bf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=yf(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function yf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vf(e)););return e}function vf(e){return(vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wf(e,t)}function wf(e,t){return(wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var If=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Ef=new h.b("providers/5.7.2"),Bf=function(e){function t(){return hf(this,t),gf(this,t,arguments)}return mf(t,e),Af(t,[{key:"detectNetwork",value:function(){var e=this,r=Object.create(null,{detectNetwork:{get:function(){return bf(vf(t.prototype),"detectNetwork",e)}}});return If(this,void 0,void 0,lf().mark((function e(){var t;return lf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(t=this.network)){e.next=7;break}return e.next=4,r.detectNetwork.call(this);case 4:(t=e.sent)||Ef.throwError("no network detected",h.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(O(this,"_network",t),this.emit("network",t,null));case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)})))}}])}(Yu),Cf=function(e){function t(e,r){var n;hf(this,t),Ef.checkAbstract(this instanceof t?this.constructor:void 0,t),e=D(this instanceof t?this.constructor:void 0,"getNetwork")(e),r=D(this instanceof t?this.constructor:void 0,"getApiKey")(r);var i=D(this instanceof t?this.constructor:void 0,"getUrl")(e,r);return n=gf(this,t,[i,e]),"string"==typeof r?O(n,"apiKey",r):null!=r&&Object.keys(r).forEach((function(e){O(n,e,r[e])})),n}return mf(t,e),Af(t,[{key:"_startPending",value:function(){Ef.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return Ef.throwError("API provider does not support signing",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return Ef.throwError("not implemented; sub-classes must override getUrl",h.b.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}])}(Bf);function _f(e){return(_f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sf(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,xf(n.key),n)}}function Qf(e,t,r){return t&&Sf(e.prototype,t),r&&Sf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xf(e){var t=function(e,t){if("object"!=_f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_f(t)?t:t+""}function Rf(e,t,r){return t=Of(t),function(e,t){if(t&&("object"==_f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Of(e).constructor):t.apply(e,r))}function Of(e){return(Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Df(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}function jf(e,t){return(jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Pf=new h.b("providers/5.7.2"),Mf="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",Nf=function(e){function t(e,r){var n;kf(this,t);var i=new Tf(e,r);return O(n=Rf(this,t,[i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),i.network]),"apiKey",i.apiKey),n}return Df(t,e),Qf(t,[{key:"isCommunityResource",value:function(){return this.apiKey===Mf}}])}(uf),Tf=function(e){function t(){return kf(this,t),Rf(this,t,arguments)}return Df(t,e),Qf(t,[{key:"isCommunityResource",value:function(){return this.apiKey===Mf}}],[{key:"getWebSocketProvider",value:function(e,t){return new Nf(e,t)}},{key:"getApiKey",value:function(e){return null==e?Mf:(e&&"string"!=typeof e&&Pf.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:Pf.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:function(e,r){return t===Mf&&Gc(),Promise.resolve(!0)}}}}])}(Cf);function Lf(e){return(Lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uf(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,Gf(n.key),n)}}function Gf(e){var t=function(e,t){if("object"!=Lf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lf(t)?t:t+""}function Hf(e,t,r){return t=qf(t),function(e,t){if(t&&("object"==Lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],qf(e).constructor):t.apply(e,r))}function qf(e){return(qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kf(e,t){return(Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Yf=new h.b("providers/5.7.2"),Jf="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function zf(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Yf.throwArgumentError("unsupported network","name",e)}var Wf=function(e){function t(){return Ff(this,t),Hf(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kf(e,t)}(t,e),r=t,i=[{key:"getApiKey",value:function(e){return null==e?Jf:e}},{key:"getUrl",value:function(e,t){null==t&&(t=Jf);var r={allowGzip:!0,url:"https://"+zf(e.name)+t,throttleCallback:function(e,r){return t.apiKey===Jf&&Gc(),Promise.resolve(!0)}};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}],(n=[{key:"isCommunityResource",value:function(){return this.apiKey===Jf}}])&&Uf(r.prototype,n),i&&Uf(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Cf);function Vf(e){return(Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zf=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Vf(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Vf(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $f(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,el(n.key),n)}}function el(e){var t=function(e,t){if("object"!=Vf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vf(t)?t:t+""}function tl(e,t,r){return t=il(t),function(e,t){if(t&&("object"==Vf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],il(e).constructor):t.apply(e,r))}function rl(){return(rl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=nl(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function nl(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=il(e)););return e}function il(e){return(il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ol(e,t){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var al=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},sl=new h.b("providers/5.7.2"),cl=function(e){function t(){return Xf(this,t),tl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}(t,e),r=t,i=[{key:"getApiKey",value:function(e){return null!=e&&sl.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var r=null;switch(e.name){case"homestead":r="https://cloudflare-eth.com/";break;default:sl.throwArgumentError("unsupported network","network",arguments[0])}return r}}],(n=[{key:"perform",value:function(e,r){var n=this,i=Object.create(null,{perform:{get:function(){return rl(il(t.prototype),"perform",n)}}});return al(this,void 0,void 0,Zf().mark((function t(){var n;return Zf().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("getBlockNumber"!==e){t.next=5;break}return t.next=3,i.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return n=t.sent,t.abrupt("return",n.number);case 5:return t.abrupt("return",i.perform.call(this,e,r));case 6:case"end":return t.stop()}}),t,this)})))}}])&&$f(r.prototype,n),i&&$f(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Cf);function ul(e){return(ul="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ul(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ul(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function ll(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,hl(n.key),n)}}function hl(e){var t=function(e,t){if("object"!=ul(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ul(t)?t:t+""}function dl(e,t,r){return t=gl(t),function(e,t){if(t&&("object"==ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],gl(e).constructor):t.apply(e,r))}function Al(){return(Al="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=pl(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function pl(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=gl(e)););return e}function gl(e){return(gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bl(e,t){return(bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yl=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},vl=new h.b("providers/5.7.2");function ml(e){var t={};for(var r in e)if(null!=e[r]){var n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?Object(u.g)(Object(u.i)(n)):"accessList"===r?"["+di(n).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]":Object(u.i)(n),t[r]=n)}return t}function wl(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Il(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var r=new Error("invalid response");throw r.result=JSON.stringify(e),r}if(e.error){var n=new Error(e.error.message||"unknown error");throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function El(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function Bl(e,t,r){if("call"===e&&t.code===h.b.errors.SERVER_ERROR){var n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var i=n.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Object(u.l)(i))return i;vl.throwError("missing revert data in call exception",h.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var o=t.message;throw t.code===h.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),(o=(o||"").toLowerCase()).match(/insufficient funds/)&&vl.throwError("insufficient funds for intrinsic transaction cost",h.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&vl.throwError("nonce has already been used",h.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),o.match(/another transaction with same nonce/)&&vl.throwError("replacement fee too low",h.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),o.match(/execution failed due to an exception|execution reverted/)&&vl.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var Cl=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),O(n=dl(this,t,[e]),"baseUrl",n.getBaseUrl()),O(n,"apiKey",r||null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bl(e,t)}(t,e),r=t,(n=[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return vl.throwArgumentError("unsupported network","network",this.network.name)}},{key:"getUrl",value:function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e+="&".concat(r,"=").concat(n)),e}),""),n=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(r).concat(n)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,r){return yl(this,void 0,void 0,fl().mark((function n(){var i,o,a,s,c,u,f=this;return fl().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,a="proxy"===e?Il:wl,this.emit("debug",{action:"request",request:i,provider:this}),s={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return f.isCommunityResource()&&Gc(),Promise.resolve(!0)}},c=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(o).map((function(e){return"".concat(e,"=").concat(o[e])})).join("&")),n.next=9,xc(s,c,a||Il);case 9:return u=n.sent,this.emit("debug",{action:"response",request:i,response:L(u),provider:this}),n.abrupt("return",u);case 12:case"end":return n.stop()}}),n,this)})))}},{key:"detectNetwork",value:function(){return yl(this,void 0,void 0,fl().mark((function e(){return fl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,r){var n=this,i=Object.create(null,{perform:{get:function(){return Al(gl(t.prototype),"perform",n)}}});return yl(this,void 0,void 0,fl().mark((function t(){var n,o,a,s,c,u,f,l,d;return fl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e,t.next="getBlockNumber"===t.t0?3:"getGasPrice"===t.t0?4:"getBalance"===t.t0?5:"getTransactionCount"===t.t0?6:"getCode"===t.t0?7:"getStorageAt"===t.t0?8:"sendTransaction"===t.t0?9:"getBlock"===t.t0?10:"getTransaction"===t.t0?13:"getTransactionReceipt"===t.t0?14:"call"===t.t0?15:"estimateGas"===t.t0?29:"getLogs"===t.t0?41:"getEtherPrice"===t.t0?65:72;break;case 3:return t.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return t.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return t.abrupt("return",this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag}));case 6:return t.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag}));case 7:return t.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag}));case 8:return t.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag}));case 9:return t.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch((function(e){return Bl("sendTransaction",e,r.signedTransaction)})));case 10:if(!r.blockTag){t.next=12;break}return t.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return t.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.transactionHash}));case 14:return t.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.transactionHash}));case 15:if("latest"===r.blockTag){t.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(n=ml(r.transaction)).module="proxy",n.action="eth_call",t.prev=20,t.next=23,this.fetch("proxy",n,!0);case 23:return t.abrupt("return",t.sent);case 26:return t.prev=26,t.t1=t.catch(20),t.abrupt("return",Bl("call",t.t1,r.transaction));case 29:return(o=ml(r.transaction)).module="proxy",o.action="eth_estimateGas",t.prev=32,t.next=35,this.fetch("proxy",o,!0);case 35:return t.abrupt("return",t.sent);case 38:return t.prev=38,t.t2=t.catch(32),t.abrupt("return",Bl("estimateGas",t.t2,r.transaction));case 41:return a={action:"getLogs"},r.filter.fromBlock&&(a.fromBlock=El(r.filter.fromBlock)),r.filter.toBlock&&(a.toBlock=El(r.filter.toBlock)),r.filter.address&&(a.address=r.filter.address),r.filter.topics&&r.filter.topics.length>0&&(r.filter.topics.length>1&&vl.throwError("unsupported topic count",h.b.errors.UNSUPPORTED_OPERATION,{topics:r.filter.topics}),1===r.filter.topics.length&&("string"==typeof(s=r.filter.topics[0])&&66===s.length||vl.throwError("unsupported topic format",h.b.errors.UNSUPPORTED_OPERATION,{topic0:s}),a.topic0=s)),t.next=48,this.fetch("logs",a);case 48:c=t.sent,u={},f=0;case 51:if(!(f<c.length)){t.next=64;break}if(null==(l=c[f]).blockHash){t.next=55;break}return t.abrupt("continue",61);case 55:if(null!=u[l.blockNumber]){t.next=60;break}return t.next=58,this.getBlock(l.blockNumber);case 58:(d=t.sent)&&(u[l.blockNumber]=d.hash);case 60:l.blockHash=u[l.blockNumber];case 61:f++,t.next=51;break;case 64:return t.abrupt("return",c);case 65:if("homestead"===this.network.name){t.next=67;break}return t.abrupt("return",0);case 67:return t.t3=parseFloat,t.next=70,this.fetch("stats",{action:"ethprice"});case 70:return t.t4=t.sent.ethusd,t.abrupt("return",(0,t.t3)(t.t4));case 72:return t.abrupt("break",73);case 73:return t.abrupt("return",i.perform.call(this,e,r));case 74:case"end":return t.stop()}}),t,this,[[20,26],[32,38]])})))}},{key:"getHistory",value:function(e,t,r){return yl(this,void 0,void 0,fl().mark((function n(){var i,o,a=this;return fl().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.resolveName(e);case 2:return n.t0=n.sent,n.t1=null==t?0:t,n.t2=null==r?99999999:r,i={action:"txlist",address:n.t0,startblock:n.t1,endblock:n.t2,sort:"asc"},n.next=8,this.fetch("account",i);case 8:return o=n.sent,n.abrupt("return",o.map((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var t=a.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})));case 10:case"end":return n.stop()}}),n,this)})))}},{key:"isCommunityResource",value:function(){return null==this.apiKey}}])&&ll(r.prototype,n),i&&ll(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(wu);function _l(e){for(var t=(e=e.slice()).length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function kl(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,Sl(n.key),n)}}function Sl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dl(t)?t:t+""}function Ql(e,t,r){return t=xl(t),function(e,t){if(t&&("object"==Dl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],xl(e).constructor):t.apply(e,r))}function xl(e){return(xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rl(e,t){return(Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ol(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ol=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new Q(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",A="completed",p={};function g(){}function b(){}function y(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(x([])));w&&w!==r&&n.call(w,a)&&(v=w);var I=y.prototype=g.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,t){function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Dl(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=_(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=A,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(t,r,n);if("normal"===u.type){if(i=n.done?A:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=A,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=l(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Dl(t)+" is not iterable")}return b.prototype=y,i(I,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(B.prototype),u(B.prototype,s,(function(){return this})),t.AsyncIterator=B,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new B(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,Q.prototype={constructor:Q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:x(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function Dl(e){return(Dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var jl=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Pl=new h.b("providers/5.7.2");function Ml(){return(new Date).getTime()}function Nl(e){for(var t=null,r=0;r<e.length;r++){var n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||Pl.throwArgumentError("provider mismatch","networks",e):t=n}return t}function Tl(e,t){e=e.slice().sort();var r=Math.floor(e.length/2);if(e.length%2)return e[r];var n=e[r-1],i=e[r];return null!=t&&Math.abs(n-i)>t?null:(n+i)/2}function Ll(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(m.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return Ll(e)})));if("object"===Dl(e)){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var r=e[t];return r="function"==typeof r?"[function]":Ll(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+Dl(e))}var Fl=1;function Ul(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var Gl=[h.b.errors.CALL_EXCEPTION,h.b.errors.INSUFFICIENT_FUNDS,h.b.errors.NONCE_EXPIRED,h.b.errors.REPLACEMENT_UNDERPRICED,h.b.errors.UNPREDICTABLE_GAS_LIMIT],Hl=["address","args","errorArgs","errorSignature","method","transaction"];function ql(e,t){var r={weight:e.weight};return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function Kl(e,t,r){var n=Ll;switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=Tl(t.map((function(e){return e.result})),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Tl(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=M(e)).confirmations=-1,Ll(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=M(e)).transactions=e.transactions.map((function(e){return(e=M(e)).confirmations=-1,e})),Ll(e))}:function(e){return null==e?null:Ll(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={};r.forEach((function(t){var r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));for(var i=Object.keys(n),o=0;o<i.length;o++){var a=n[i[o]];if(a.count>=t)return a.result}}}(n,e.quorum)}function Yl(e,t){return jl(this,void 0,void 0,Ol().mark((function r(){var n;return Ol().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t)){r.next=3;break}return r.abrupt("return",n);case 3:return r.abrupt("return",Rc((function(){return new Promise((function(r,i){setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))}),{oncePoll:n}));case 4:case"end":return r.stop()}}),r)})))}function Jl(e,t,r,n){return jl(this,void 0,void 0,Ol().mark((function i(){var o,a;return Ol().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=r,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?30:"getLogs"===i.t0?31:37;break;case 4:return i.abrupt("return",o[r]());case 5:if(!o.getEtherPrice){i.next=7;break}return i.abrupt("return",o.getEtherPrice());case 7:return i.abrupt("break",37);case 8:if(!n.blockTag||!Object(u.l)(n.blockTag)){i.next=12;break}return i.next=11,Yl(e,t);case 11:o=i.sent;case 12:return i.abrupt("return",o[r](n.address,n.blockTag||"latest"));case 13:if(!n.blockTag||!Object(u.l)(n.blockTag)){i.next=17;break}return i.next=16,Yl(e,t);case 16:o=i.sent;case 17:return i.abrupt("return",o.getStorageAt(n.address,n.position,n.blockTag||"latest"));case 18:if(!n.blockTag||!Object(u.l)(n.blockTag)){i.next=22;break}return i.next=21,Yl(e,t);case 21:o=i.sent;case 22:return i.abrupt("return",o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash));case 23:if(!n.blockTag||!Object(u.l)(n.blockTag)){i.next=27;break}return i.next=26,Yl(e,t);case 26:o=i.sent;case 27:if("call"!==r||!n.blockTag){i.next=29;break}return i.abrupt("return",o[r](n.transaction,n.blockTag));case 29:return i.abrupt("return",o[r](n.transaction));case 30:return i.abrupt("return",o[r](n.transactionHash));case 31:if(!((a=n.filter).fromBlock&&Object(u.l)(a.fromBlock)||a.toBlock&&Object(u.l)(a.toBlock))){i.next=36;break}return i.next=35,Yl(e,t);case 35:o=i.sent;case 36:return i.abrupt("return",o.getLogs(a));case 37:return i.abrupt("return",Pl.throwError("unknown method error",h.b.errors.UNKNOWN_ERROR,{method:r,params:n}));case 38:case"end":return i.stop()}}),i)})))}var zl=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),0===e.length&&Pl.throwArgumentError("missing providers","providers",e);var i=e.map((function(e,t){if(Rn.isProvider(e)){var r=Fc(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:r,priority:1})}var n=M(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=Fc(e)?2e3:750),null==n.weight&&(n.weight=1);var i=n.weight;return(i%1||i>512||i<1)&&Pl.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(n)})),o=i.reduce((function(e,t){return e+t.weight}),0);null==r?r=o/2:r>o&&Pl.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);var a=Nl(i.map((function(e){return e.provider.network})));return null==a&&(a=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then(e,t)}),0)}))),O(n=Ql(this,t,[a]),"providerConfigs",Object.freeze(i)),O(n,"quorum",r),n._highestBlockNumber=-1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rl(e,t)}(t,e),r=t,(n=[{key:"detectNetwork",value:function(){return jl(this,void 0,void 0,Ol().mark((function e(){var t;return Ol().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",Nl(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return jl(this,void 0,void 0,Ol().mark((function r(){var n,i,o,a,s,c,u,f,l,d,A=this;return Ol().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("sendTransaction"!==e){r.next=13;break}return r.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:n=r.sent,i=0;case 5:if(!(i<n.length)){r.next=12;break}if("string"!=typeof(o=n[i])){r.next=9;break}return r.abrupt("return",o);case 9:i++,r.next=5;break;case 12:throw n[0];case 13:if(-1!==this._highestBlockNumber||"getBlockNumber"===e){r.next=16;break}return r.next=16,this.getBlockNumber();case 16:a=Kl(this,e,t),(s=_l(this.providerConfigs.map(M))).sort((function(e,t){return e.priority-t.priority})),c=this._highestBlockNumber,u=0,f=!0,l=Ol().mark((function r(){var n,i,o,l,h,d,p;return Ol().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Ml(),i=s.filter((function(e){return e.runner&&n-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),o=Ol().mark((function r(){var n,o;return Ol().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=s[u++],o=Fl++,n.start=Ml(),n.staller=Ul(n.stallTimeout),n.staller.wait((function(){n.staller=null})),n.runner=Jl(n,c,e,t).then((function(r){n.done=!0,n.result=r,A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:ql(n,Ml()),request:{method:e,params:L(t)},provider:A})}),(function(r){n.done=!0,n.error=r,A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:ql(n,Ml()),request:{method:e,params:L(t)},provider:A})})),A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:ql(n,null),request:{method:e,params:L(t)},provider:A}),i+=n.weight;case 8:case"end":return r.stop()}}),r)}));case 3:if(!(i<A.quorum&&u<s.length)){r.next=7;break}return r.delegateYield(o(),"t0",5);case 5:r.next=3;break;case 7:if(l=[],s.forEach((function(e){!e.done&&e.runner&&(l.push(e.runner),e.staller&&l.push(e.staller.getPromise()))})),!l.length){r.next=12;break}return r.next=12,Promise.race(l);case 12:if(!((h=s.filter((function(e){return e.done&&null==e.error}))).length>=A.quorum)){r.next=22;break}if(void 0===(d=a(h))){r.next=18;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",{v:d});case 18:if(f){r.next=21;break}return r.next=21,Ul(100).getPromise();case 21:f=!1;case 22:if(p=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var r=t.error.code;return Gl.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(p).forEach((function(e){var t=p[e];if(!(t.weight<A.quorum)){s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var r=t.error,n={};Hl.forEach((function(e){null!=r[e]&&(n[e]=r[e])})),Pl.throwError(r.reason||r.message,e,n)}})),0!==s.filter((function(e){return!e.done})).length){r.next=26;break}return r.abrupt("return",0);case 26:case"end":return r.stop()}}),r)}));case 23:return r.delegateYield(l(),"t0",25);case 25:if(0!==(d=r.t0)){r.next=28;break}return r.abrupt("break",32);case 28:if(!d){r.next=30;break}return r.abrupt("return",d.v);case 30:r.next=23;break;case 32:return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",Pl.throwError("failed to meet quorum",h.b.errors.SERVER_ERROR,{method:e,params:t,results:s.map((function(e){return ql(e)})),provider:this}));case 34:case"end":return r.stop()}}),r,this)})))}}])&&kl(r.prototype,n),i&&kl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(wu),Wl=null;function Vl(e){return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(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,eh(n.key),n)}}function $l(e,t,r){return t&&Xl(e.prototype,t),r&&Xl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eh(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:t+""}function th(e,t,r){return t=rh(t),function(e,t){if(t&&("object"==Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],rh(e).constructor):t.apply(e,r))}function rh(e){return(rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ih(e,t)}function ih(e,t){return(ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var oh=new h.b("providers/5.7.2"),ah="84842078b09946638c03157f83405213",sh=function(e){function t(e,r){var n;Zl(this,t);var i=new ch(e,r),o=i.connection;return o.password&&oh.throwError("INFURA WebSocket project secrets unsupported",h.b.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),O(n=th(this,t,[o.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e]),"apiKey",i.projectId),O(n,"projectId",i.projectId),O(n,"projectSecret",i.projectSecret),n}return nh(t,e),$l(t,[{key:"isCommunityResource",value:function(){return this.projectId===ah}}])}(uf),ch=function(e){function t(){return Zl(this,t),th(this,t,arguments)}return nh(t,e),$l(t,[{key:"isCommunityResource",value:function(){return this.projectId===ah}}],[{key:"getWebSocketProvider",value:function(e,t){return new sh(e,t)}},{key:"getApiKey",value:function(e){var t={apiKey:ah,projectId:ah,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(oh.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),oh.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}},{key:"getUrl",value:function(e,t){var r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:oh.throwError("unsupported network",h.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===ah&&Gc(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}])}(Cf);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lh(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,hh(n.key),n)}}function hh(e){var t=function(e,t){if("object"!=uh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uh(t)?t:t+""}function dh(e,t,r){return t=Ah(t),function(e,t){if(t&&("object"==uh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ah(e).constructor):t.apply(e,r))}function Ah(e){return(Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ph(e,t){return(ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var gh=function(e){function t(){return fh(this,t),dh(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ph(e,t)}(t,e),r=t,(n=[{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var i={request:n,resolve:null,reject:null},o=new Promise((function(e,t){i.resolve=e,i.reject=t}));return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=r._pendingBatch;r._pendingBatch=null,r._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return r.emit("debug",{action:"requestBatch",request:L(t),provider:r}),xc(r.connection,JSON.stringify(t)).then((function(n){r.emit("debug",{action:"response",request:t,response:n,provider:r}),e.forEach((function(e,t){var r=n[t];if(r.error){var i=new Error(r.error.message);i.code=r.error.code,i.data=r.error.data,e.reject(i)}else e.resolve(r.result)}))}),(function(n){r.emit("debug",{action:"response",error:n,request:t,provider:r}),e.forEach((function(e){e.reject(n)}))}))}),10)),o}}])&&lh(r.prototype,n),i&&lh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Yu);function bh(e){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vh(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,mh(n.key),n)}}function mh(e){var t=function(e,t){if("object"!=bh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bh(t)?t:t+""}function wh(e,t,r){return t=Ih(t),function(e,t){if(t&&("object"==bh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ih(e).constructor):t.apply(e,r))}function Ih(e){return(Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eh(e,t){return(Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Bh=new h.b("providers/5.7.2"),Ch=function(e){function t(){return yh(this,t),wh(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eh(e,t)}(t,e),r=t,i=[{key:"getApiKey",value:function(e){return e&&"string"!=typeof e&&Bh.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}},{key:"getUrl",value:function(e,t){Bh.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Bh.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}],(n=null)&&vh(r.prototype,n),i&&vh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Cf);function _h(e){return(_h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sh(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,Qh(n.key),n)}}function Qh(e){var t=function(e,t){if("object"!=_h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_h(t)?t:t+""}function xh(e,t,r){return t=Rh(t),function(e,t){if(t&&("object"==_h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Rh(e).constructor):t.apply(e,r))}function Rh(e){return(Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oh(e,t){return(Oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Dh=new h.b("providers/5.7.2"),jh=function(e){function t(){return kh(this,t),xh(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oh(e,t)}(t,e),r=t,i=[{key:"getApiKey",value:function(e){var t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId="62e1ad51b37b8e00394bda3b":"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:Dh.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}},{key:"getUrl",value:function(e,t){var r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:Dh.throwError("unsupported network",h.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={headers:{},url:"https://".concat(r,"/v1/lb/").concat(t.applicationId)};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}}],(n=[{key:"isCommunityResource",value:function(){return"62e1ad51b37b8e00394bda3b"===this.applicationId}}])&&Sh(r.prototype,n),i&&Sh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Cf);function Ph(e){return(Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mh(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,Nh(n.key),n)}}function Nh(e){var t=function(e,t){if("object"!=Ph(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ph(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ph(t)?t:t+""}function Th(e,t,r){return t=Lh(t),function(e,t){if(t&&("object"==Ph(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Lh(e).constructor):t.apply(e,r))}function Lh(e){return(Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fh(e,t){return(Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Uh=new h.b("providers/5.7.2"),Gh=1;function Hh(e,t){var r="Web3LegacyFetcher";return function(e,n){var i=this,o={method:e,params:n,id:Gh++,jsonrpc:"2.0"};return new Promise((function(e,n){i.emit("debug",{action:"request",fetcher:r,request:L(o),provider:i}),t(o,(function(t,a){if(t)return i.emit("debug",{action:"response",fetcher:r,error:t,request:o,provider:i}),n(t);if(i.emit("debug",{action:"response",fetcher:r,request:o,response:a,provider:i}),a.error){var s=new Error(a.error.message);return s.code=a.error.code,s.data=a.error.data,n(s)}e(a.result)}))}))}}var qh=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),null==e&&Uh.throwArgumentError("missing provider","provider",e);var i=null,o=null,a=null;return"function"==typeof e?(i="unknown:",o=e):(!(i=e.host||e.path||"")&&e.isMetaMask&&(i="metamask"),a=e,e.request?(""===i&&(i="eip-1193:"),o=function(e){return function(t,r){var n=this;null==r&&(r=[]);var i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:L(i),provider:this}),e.request(i).then((function(e){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:n}),e}))}}(e)):e.sendAsync?o=Hh(0,e.sendAsync.bind(e)):e.send?o=Hh(0,e.send.bind(e)):Uh.throwArgumentError("unsupported provider","provider",e),i||(i="unknown:")),O(n=Th(this,t,[i,r]),"jsonRpcFetchFunc",o),O(n,"provider",a),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fh(e,t)}(t,e),r=t,(n=[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}])&&Mh(r.prototype,n),i&&Mh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Yu),Kh=new h.b("providers/5.7.2");function Yh(e,t){if(null==e&&(e="homestead"),"string"==typeof e){var r=e.match(/^(ws|http)s?:/i);if(r)switch(r[1].toLowerCase()){case"http":case"https":return new Yu(e);case"ws":case"wss":return new uf(e);default:Kh.throwArgumentError("unsupported URL scheme","network",e)}}var n=Ls(e);return n&&n._defaultProvider||Kh.throwError("unsupported getDefaultProvider network",h.b.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:zl,AlchemyProvider:Tf,AnkrProvider:Wf,CloudflareProvider:cl,EtherscanProvider:Cl,InfuraProvider:ch,JsonRpcProvider:Yu,NodesmithProvider:Ch,PocketProvider:jh,Web3Provider:qh,IpcProvider:Wl},t)}var Jh=new RegExp("^bytes([0-9]+)$"),zh=new RegExp("^(u?int)([0-9]*)$"),Wh=new RegExp("^(.*)\\[([0-9]*)\\]$"),Vh=new h.b("solidity/5.7.0");function Zh(e,t){e.length!=t.length&&Vh.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var r=[];return e.forEach((function(e,n){r.push(function e(t,r,n){switch(t){case"address":return n?Object(u.p)(r,32):Object(u.a)(r);case"string":return _e(r);case"bytes":return Object(u.a)(r);case"bool":return r=r?"0x01":"0x00",n?Object(u.p)(r,32):Object(u.a)(r)}var i=t.match(zh);if(i){var o=parseInt(i[2]||"256");return(i[2]&&String(o)!==i[2]||o%8!=0||0===o||o>256)&&Vh.throwArgumentError("invalid number type","type",t),n&&(o=256),r=m.from(r).toTwos(o),Object(u.p)(r,o/8)}if(i=t.match(Jh)){var a=parseInt(i[1]);return(String(a)!==i[1]||0===a||a>32)&&Vh.throwArgumentError("invalid bytes type","type",t),Object(u.a)(r).byteLength!==a&&Vh.throwArgumentError("invalid value for ".concat(t),"value",r),n?Object(u.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(Wh))&&Array.isArray(r)){var s=i[1];parseInt(i[2]||String(r.length))!=r.length&&Vh.throwArgumentError("invalid array length for ".concat(t),"value",r);var c=[];return r.forEach((function(t){c.push(e(s,t,!0))})),Object(u.b)(c)}return Vh.throwArgumentError("invalid type","type",t)}(e,t[n]))})),Object(u.i)(Object(u.b)(r))}function Xh(e,t){return $(Zh(e,t))}function $h(e,t){return Jo(Zh(e,t))}function ed(e,t){t||(t=function(e){return[parseInt(e,16)]});var r=0,n={};return e.split(",").forEach((function(e){var i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function td(e){var t=0;return e.split(",").map((function(e){var r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}}))}function rd(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n];if(e>=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}var nd=td("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),id="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),od=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],ad=ed("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),sd=ed("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),cd=ed("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),ud=td("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function fd(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,r=Re(e);t=r.map((function(e){if(id.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=rd(e,od);if(t)return[e+t.s];var r=ad[e];if(r)return r;var n=sd[e];if(n)return[e+n[0]];var i=cd[e];return i||null}(e);return t||[e]})),(r=Re(Qe(r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[])),me.NFKC)).forEach((function(e){if(rd(e,ud))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(rd(e,nd))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var n=Qe(r);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}function ld(e){var t=_e(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(u.i)(Object(u.b)([t,xs]).slice(0,32))}function hd(e){var t=Object(u.a)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return xe(t.slice(0,r))}var dd=new h.b("units/5.7.0"),Ad=["wei","kwei","mwei","gwei","szabo","finney","ether"];function pd(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&dd.throwArgumentError("invalid value","value",e);var r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");var i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);for(var o=[];r.length;){if(r.length<=3){o.unshift(r);break}var a=r.length-3;o.unshift(r.substring(a)),r=r.substring(0,a)}return n+o.join(",")+i}function gd(e,t){if("string"==typeof t){var r=Ad.indexOf(t);-1!==r&&(t=3*r)}return uo(e,null!=t?t:18)}function bd(e,t){if("string"!=typeof e&&dd.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=Ad.indexOf(t);-1!==r&&(t=3*r)}return fo(e,null!=t?t:18)}function yd(e){return gd(e,18)}function vd(e){return bd(e,18)}var md="ethers/5.7.2",wd=new h.b(md);try{var Id=window;null==Id._ethers&&(Id._ethers=c)}catch(e){}},function(e,t,r){"use strict";var n;r.r(t),r.d(t,"v1",(function(){return p})),r.d(t,"v3",(function(){return C})),r.d(t,"v4",(function(){return _})),r.d(t,"v5",(function(){return Q})),r.d(t,"NIL",(function(){return x})),r.d(t,"version",(function(){return R})),r.d(t,"validate",(function(){return s})),r.d(t,"stringify",(function(){return h})),r.d(t,"parse",(function(){return g}));var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var f,l,h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r},d=0,A=0;var p=function(e,t,r){var n=t&&r||0,i=t||new Array(16),a=(e=e||{}).node||f,s=void 0!==e.clockseq?e.clockseq:l;if(null==a||null==s){var c=e.random||(e.rng||o)();null==a&&(a=f=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(s=l=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:A+1,g=u-d+(p-A)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||u>d)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=u,A=p,l=s;var b=(1e4*(268435455&(u+=122192928e5))+p)%4294967296;i[n++]=b>>>24&255,i[n++]=b>>>16&255,i[n++]=b>>>8&255,i[n++]=255&b;var y=u/4294967296*1e4&268435455;i[n++]=y>>>8&255,i[n++]=255&y,i[n++]=y>>>24&15|16,i[n++]=y>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var v=0;v<6;++v)i[n+v]=a[v];return t||h(i)};var g=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};var b=function(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return h(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n};function y(e){return 14+(e+64>>>9<<4)+1}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function m(e,t,r,n,i,o){return v((a=v(v(t,e),v(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function w(e,t,r,n,i,o,a){return m(t&r|~t&n,e,t,i,o,a)}function I(e,t,r,n,i,o,a){return m(t&n|r&~n,e,t,i,o,a)}function E(e,t,r,n,i,o,a){return m(t^r^n,e,t,i,o,a)}function B(e,t,r,n,i,o,a){return m(r^(t|~n),e,t,i,o,a)}var C=b("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n=0;n<r;n+=8){var i=e[n>>5]>>>n%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,c=n,u=i,f=o;r=w(r,n,i,o,e[a],7,-680876936),o=w(o,r,n,i,e[a+1],12,-389564586),i=w(i,o,r,n,e[a+2],17,606105819),n=w(n,i,o,r,e[a+3],22,-1044525330),r=w(r,n,i,o,e[a+4],7,-176418897),o=w(o,r,n,i,e[a+5],12,1200080426),i=w(i,o,r,n,e[a+6],17,-1473231341),n=w(n,i,o,r,e[a+7],22,-45705983),r=w(r,n,i,o,e[a+8],7,1770035416),o=w(o,r,n,i,e[a+9],12,-1958414417),i=w(i,o,r,n,e[a+10],17,-42063),n=w(n,i,o,r,e[a+11],22,-1990404162),r=w(r,n,i,o,e[a+12],7,1804603682),o=w(o,r,n,i,e[a+13],12,-40341101),i=w(i,o,r,n,e[a+14],17,-1502002290),n=w(n,i,o,r,e[a+15],22,1236535329),r=I(r,n,i,o,e[a+1],5,-165796510),o=I(o,r,n,i,e[a+6],9,-1069501632),i=I(i,o,r,n,e[a+11],14,643717713),n=I(n,i,o,r,e[a],20,-373897302),r=I(r,n,i,o,e[a+5],5,-701558691),o=I(o,r,n,i,e[a+10],9,38016083),i=I(i,o,r,n,e[a+15],14,-660478335),n=I(n,i,o,r,e[a+4],20,-405537848),r=I(r,n,i,o,e[a+9],5,568446438),o=I(o,r,n,i,e[a+14],9,-1019803690),i=I(i,o,r,n,e[a+3],14,-187363961),n=I(n,i,o,r,e[a+8],20,1163531501),r=I(r,n,i,o,e[a+13],5,-1444681467),o=I(o,r,n,i,e[a+2],9,-51403784),i=I(i,o,r,n,e[a+7],14,1735328473),n=I(n,i,o,r,e[a+12],20,-1926607734),r=E(r,n,i,o,e[a+5],4,-378558),o=E(o,r,n,i,e[a+8],11,-2022574463),i=E(i,o,r,n,e[a+11],16,1839030562),n=E(n,i,o,r,e[a+14],23,-35309556),r=E(r,n,i,o,e[a+1],4,-1530992060),o=E(o,r,n,i,e[a+4],11,1272893353),i=E(i,o,r,n,e[a+7],16,-155497632),n=E(n,i,o,r,e[a+10],23,-1094730640),r=E(r,n,i,o,e[a+13],4,681279174),o=E(o,r,n,i,e[a],11,-358537222),i=E(i,o,r,n,e[a+3],16,-722521979),n=E(n,i,o,r,e[a+6],23,76029189),r=E(r,n,i,o,e[a+9],4,-640364487),o=E(o,r,n,i,e[a+12],11,-421815835),i=E(i,o,r,n,e[a+15],16,530742520),n=E(n,i,o,r,e[a+2],23,-995338651),r=B(r,n,i,o,e[a],6,-198630844),o=B(o,r,n,i,e[a+7],10,1126891415),i=B(i,o,r,n,e[a+14],15,-1416354905),n=B(n,i,o,r,e[a+5],21,-57434055),r=B(r,n,i,o,e[a+12],6,1700485571),o=B(o,r,n,i,e[a+3],10,-1894986606),i=B(i,o,r,n,e[a+10],15,-1051523),n=B(n,i,o,r,e[a+1],21,-2054922799),r=B(r,n,i,o,e[a+8],6,1873313359),o=B(o,r,n,i,e[a+15],10,-30611744),i=B(i,o,r,n,e[a+6],15,-1560198380),n=B(n,i,o,r,e[a+13],21,1309151649),r=B(r,n,i,o,e[a+4],6,-145523070),o=B(o,r,n,i,e[a+11],10,-1120210379),i=B(i,o,r,n,e[a+2],15,718787259),n=B(n,i,o,r,e[a+9],21,-343485551),r=v(r,s),n=v(n,c),i=v(i,u),o=v(o,f)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(y(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}));var _=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return h(n)};function k(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function S(e,t){return e<<t|e>>>32-t}var Q=b("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),f=0;f<16;++f)u[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<a;++l){for(var h=new Uint32Array(80),d=0;d<16;++d)h[d]=s[l][d];for(var A=16;A<80;++A)h[A]=S(h[A-3]^h[A-8]^h[A-14]^h[A-16],1);for(var p=r[0],g=r[1],b=r[2],y=r[3],v=r[4],m=0;m<80;++m){var w=Math.floor(m/20),I=S(p,5)+k(w,g,b,y)+v+t[w]+h[m]>>>0;v=y,y=b,b=S(g,30)>>>0,g=p,p=I}r[0]=r[0]+p>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+b>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),x="00000000-0000-0000-0000-000000000000";var R=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u}));var n=r(0),i=r(1),o=r(191),a=new i.b(o.a);var s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}(),c=s.crypto||s.msCrypto;function u(e){(e<=0||e>1024||e%1||e!=e)&&a.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return c.getRandomValues(t),Object(n.a)(t)}c&&c.getRandomValues||(a.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(9))}])}));
|