@acedatacloud/nexior 3.30.3 → 3.30.4
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/assets/{Auth-C4dVHIKO.js → Auth-kGCys-gn.js} +1 -1
- package/dist/assets/{BotPlaceholder-Blzus1Ba.js → BotPlaceholder-DghltQML.js} +1 -1
- package/dist/assets/{Callback-CTYxeo8Z.js → Callback-DWSKlIl4.js} +1 -1
- package/dist/assets/{Console-BbGWMKKZ.js → Console-_IS1qii3.js} +1 -1
- package/dist/assets/{Conversation-DiVMGW94.js → Conversation-DuQtYVf4.js} +1 -1
- package/dist/assets/{CopyToClipboard-CmHXEPMr.js → CopyToClipboard-CEtp94k8.js} +1 -1
- package/dist/assets/{Detail-VDnCOUUU.js → Detail-t2hlFwRn.js} +2 -2
- package/dist/assets/{EditArray-OA-NVBZO.js → EditArray-cZSRSfyf.js} +1 -1
- package/dist/assets/{Extra-BY28y3mx.js → Extra-CbORdop1.js} +1 -1
- package/dist/assets/{FilePreview-DQpvzXs_.js → FilePreview-Cs6OrAfv.js} +1 -1
- package/dist/assets/{History-B1pKVuTR.js → History-gexbX9Zv.js} +1 -1
- package/dist/assets/{ImagePreview-DpdyaY-J.js → ImagePreview--cM1y0-F.js} +1 -1
- package/dist/assets/{ImageWrapper-D-q49c6z.js → ImageWrapper-CQl1PxLF.js} +1 -1
- package/dist/assets/{Index-D7GnQkM4.js → Index-Acpzatzh.js} +1 -1
- package/dist/assets/{Index-guHNQauE.js → Index-B0a5arSf.js} +1 -1
- package/dist/assets/Index-BCpgwdRH.js +1 -0
- package/dist/assets/{Index-Ba9yXMzu.js → Index-BJHZd94h.js} +1 -1
- package/dist/assets/{Index-Dia7Vi_r.js → Index-BNmeEQ_3.js} +1 -1
- package/dist/assets/{Index-DgsKsh3B.js → Index-Bb5DDJPy.js} +1 -1
- package/dist/assets/{Index-CCcF6hZ9.js → Index-BjRYYdFX.js} +1 -1
- package/dist/assets/{Index-O0SBFGmH.js → Index-BrxMTx-Y.js} +1 -1
- package/dist/assets/{Index-myIt_TK4.js → Index-C57ALtjZ.js} +1 -1
- package/dist/assets/{Index-C7LHJpMK.js → Index-C60cc38l.js} +1 -1
- package/dist/assets/{Index-dyBrOVOM.js → Index-C7BtYXwv.js} +1 -1
- package/dist/assets/{Index-D2oTY94j.js → Index-CfVhUM4U.js} +1 -1
- package/dist/assets/Index-D5sduOkc.js +1 -0
- package/dist/assets/{Index-xfpPqB6k.js → Index-D8nMB7dN.js} +1 -1
- package/dist/assets/Index-DXRd2oDS.css +1 -0
- package/dist/assets/Index-DY0jBLbu.css +1 -0
- package/dist/assets/{Index-DZT53ftk.js → Index-DZ-DbWl-.js} +1 -1
- package/dist/assets/{Index-BJGORTT2.js → Index-HQInAAfi.js} +1 -1
- package/dist/assets/{Index-DUJTbNQH.js → Index-aB38D9pu.js} +1 -1
- package/dist/assets/{Index-_Jl_BYAz.js → Index-lMyEH6f1.js} +1 -1
- package/dist/assets/{Index-D1Rz1tfd.js → Index-u8wK3QUd.js} +1 -1
- package/dist/assets/{Index-sDMWgguk.js → Index-zpannX8x.js} +1 -1
- package/dist/assets/{Invitees-DkWxP4e3.js → Invitees-CYP2iQv2.js} +1 -1
- package/dist/assets/{List-BxIMcYD8.js → List-CAfyfgl5.js} +1 -1
- package/dist/assets/{List-BqzG7ehZ.js → List-CdFnDuaR.js} +1 -1
- package/dist/assets/{List-CEq_u8D0.js → List-DSRVmKTe.js} +1 -1
- package/dist/assets/{Main-CQsNTqVL.js → Main-BIRiKmiG.js} +1 -1
- package/dist/assets/{Navigator-BrdQZd1b.js → Navigator-CjErsr21.js} +1 -1
- package/dist/assets/{NoTasks-BiOsXlaq.js → NoTasks-CSLShB84.js} +1 -1
- package/dist/assets/{Pagination-BbqydTat.js → Pagination-Dw29mJpo.js} +1 -1
- package/dist/assets/{ScrollList-DPLKBqBd.js → ScrollList-6wsUvcj6.js} +1 -1
- package/dist/assets/{Status-UWszJlPM.js → Status-CLz-FCw7.js} +1 -1
- package/dist/assets/{Subscribe-DUBYadQ1.js → Subscribe-CV4VHuLD.js} +1 -1
- package/dist/assets/{TransportWebHID-BEAZzcY0.js → TransportWebHID-CzVKn3HZ.js} +1 -1
- package/dist/assets/{VideoPlayer-DWTQSZjy.js → VideoPlayer-DMQFBZXN.js} +1 -1
- package/dist/assets/avatar-CN1uA8Po.js +1 -0
- package/dist/assets/avatar-Cfr3XS98.css +1 -0
- package/dist/assets/{bignumber-C1xKUtxX.js → bignumber-BLJFVpCv.js} +1 -1
- package/dist/assets/common-81UClLTs.js +1 -0
- package/dist/assets/common-J82jiJjj.js +1 -0
- package/dist/assets/{distribution-CJuee8y2.js → distribution-Bn30t-dJ.js} +1 -1
- package/dist/assets/{index-CJFrXZHu.css → index-BC2cccGJ.css} +1 -1
- package/dist/assets/{index-jeGnfJ_l.js → index-BtWLfZip.js} +1 -1
- package/dist/assets/{index-FyDryJF8.js → index-CCYW3AUY.js} +5 -5
- package/dist/assets/{index-DLiWuf1u.js → index-CZva-t16.js} +1 -1
- package/dist/assets/{index-D-6_CPHX.js → index-D5QRd2Da.js} +1 -1
- package/dist/assets/{index-D_w37A4E.js → index-DE_Wy0Gu.js} +1 -1
- package/dist/assets/{index-BfyfYtZm.js → index-DGZsu5Ph.js} +1 -1
- package/dist/assets/{index-C49kyaKg.js → index-DxHsOOmw.js} +1 -1
- package/dist/assets/{index-C1rwxuCG.js → index-qzP26Lh5.js} +1 -1
- package/dist/assets/{index.es-L8lIAtWn.js → index.es-mIRAKQ1A.js} +1 -1
- package/dist/assets/{order-DUXA8yqM.js → order-DrwwxsRb.js} +1 -1
- package/dist/assets/{price-BRDkc6EK.js → price-hx3Y1R4a.js} +1 -1
- package/dist/assets/{solana-wallets-o-Zvvwmq.js → solana-wallets-Cb3-7F7O.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-B2cUJHFV.js → solanaEmbed.esm-DHLMHDSC.js} +1 -1
- package/dist/assets/{string_decoder-BJaILowq.js → string_decoder-BDwfFX0y.js} +1 -1
- package/dist/assets/{vendor-web3-BWcfcUXi.js → vendor-web3-CZJ1DcWo.js} +4 -4
- package/dist/assets/{web-TogH-A1y.js → web-CwxjKiW2.js} +1 -1
- package/dist/assets/{web-D_YOPR7Z.js → web-DEeVFGiX.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/Index-BCkGN8zE.css +0 -1
- package/dist/assets/Index-DZMphueF.js +0 -1
- package/dist/assets/Index-Ds2oO7k1.js +0 -1
- package/dist/assets/Index-LTWS2Usl.css +0 -1
- package/dist/assets/avatar-D84fE3q6.js +0 -1
- package/dist/assets/common-Cg7wDjqw.js +0 -1
- package/dist/assets/common-DFpFqR7d.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{E as P,P as S,B as h,T,V as O}from"./vendor-web3-BWcfcUXi.js";import"./vendor-vue-1w_NBnjl.js";import"./vendor-dayjs-CzbnksQQ.js";var k=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),W=function(s){k(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o}(P),H=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),E=function(){return E=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},E.apply(this,arguments)},A=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},I=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},M=function(s,o){var r=typeof Symbol=="function"&&s[Symbol.iterator];if(!r)return s;var e=r.call(s),t,n=[],a;try{for(;(o===void 0||o-- >0)&&!(t=e.next()).done;)n.push(t.value)}catch(c){a={error:c}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(a)throw a.error}}return n},K=function(s){H(o,s);function o(r,e){var t=s.call(this)||this;if(t._handleMessage=function(n){if(t._injectedProvider&&n.source===window||n.origin===t._providerUrl.origin&&n.source===t._popup){if(n.data.method==="connected"){var a=new S(n.data.params.publicKey);(!t._publicKey||!t._publicKey.equals(a))&&(t._publicKey&&!t._publicKey.equals(a)&&t._handleDisconnect(),t._publicKey=a,t._autoApprove=!!n.data.params.autoApprove,t.emit("connect",t._publicKey))}else if(n.data.method==="disconnected")t._handleDisconnect();else if((n.data.result||n.data.error)&&t._responsePromises.has(n.data.id)){var c=M(t._responsePromises.get(n.data.id),2),u=c[0],i=c[1];n.data.result?u(n.data.result):i(new Error(n.data.error))}}},t._handleConnect=function(){return t._handlerAdded||(t._handlerAdded=!0,window.addEventListener("message",t._handleMessage),window.addEventListener("beforeunload",t.disconnect)),t._injectedProvider?new Promise(function(n){t._sendRequest("connect",{}),n()}):(window.name="parent",t._popup=window.open(t._providerUrl.toString(),"_blank","location,resizable,width=460,height=675"),new Promise(function(n){t.once("connect",n)}))},t._handleDisconnect=function(){t._handlerAdded&&(t._handlerAdded=!1,window.removeEventListener("message",t._handleMessage),window.removeEventListener("beforeunload",t.disconnect)),t._publicKey&&(t._publicKey=null,t.emit("disconnect")),t._responsePromises.forEach(function(n,a){var c=M(n,2);c[0];var u=c[1];t._responsePromises.delete(a),u("Wallet disconnected")})},t._sendRequest=function(n,a){return A(t,void 0,void 0,function(){var c,u=this;return I(this,function(i){if(n!=="connect"&&!this.connected)throw new Error("Wallet not connected");return c=this._nextRequestId,++this._nextRequestId,[2,new Promise(function(l,d){u._responsePromises.set(c,[l,d]),u._injectedProvider?u._injectedProvider.postMessage({jsonrpc:"2.0",id:c,method:n,params:E({network:u._network},a)}):(u._popup.postMessage({jsonrpc:"2.0",id:c,method:n,params:a},u._providerUrl.origin),u.autoApprove||u._popup.focus())})]})})},t.connect=function(){return t._popup&&t._popup.close(),t._handleConnect()},t.disconnect=function(){return A(t,void 0,void 0,function(){return I(this,function(n){switch(n.label){case 0:return this._injectedProvider?[4,this._sendRequest("disconnect",{})]:[3,2];case 1:n.sent(),n.label=2;case 2:return this._popup&&this._popup.close(),this._handleDisconnect(),[2]}})})},t.sign=function(n,a){return A(t,void 0,void 0,function(){var c,u,i;return I(this,function(l){switch(l.label){case 0:if(!(n instanceof Uint8Array))throw new Error("Data must be an instance of Uint8Array");return[4,this._sendRequest("sign",{data:n,display:a})];case 1:return c=l.sent(),u=h.decode(c.signature),i=new S(c.publicKey),[2,{signature:u,publicKey:i}]}})})},C(r))t._injectedProvider=r;else if(q(r))t._providerUrl=new URL(r),t._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:e}).toString();else throw new Error("provider parameter must be an injected provider or a URL string.");return t._network=e,t._publicKey=null,t._autoApprove=!1,t._popup=null,t._handlerAdded=!1,t._nextRequestId=1,t._responsePromises=new Map,t}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._publicKey},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return this._publicKey!==null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"autoApprove",{get:function(){return this._autoApprove},enumerable:!1,configurable:!0}),o}(P);function q(s){return typeof s=="string"}function C(s){return z(s)&&D(s.postMessage)}function z(s){return typeof s=="object"&&s!==null}function D(s){return typeof s=="function"}var F=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),v=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},y=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},L=function(s){F(o,s);function o(r,e,t){var n=s.call(this)||this;return n._instance=null,n.handleMessage=function(a){},n._sendRequest=function(a,c){return v(n,void 0,void 0,function(){var u,i;return y(this,function(l){switch(l.label){case 0:return!((u=this._instance)===null||u===void 0)&&u.sendRequest?[4,this._instance.sendRequest(a,c)]:[3,2];case 1:return[2,l.sent()];case 2:return!((i=this._instance)===null||i===void 0)&&i._sendRequest?[4,this._instance._sendRequest(a,c)]:[3,4];case 3:return[2,l.sent()];case 4:throw new Error("Unsupported version of `@project-serum/sol-wallet-adapter`")}})})},n._handleConnect=function(){n.emit("connect")},n._handleDisconnect=function(){window.clearInterval(n._pollTimer),n.emit("disconnect")},n._network=e,n._provider=t,n}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._instance.publicKey||null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return this._instance.connected||!1},enumerable:!1,configurable:!0}),o.prototype.connect=function(){return v(this,void 0,void 0,function(){var r=this;return y(this,function(e){switch(e.label){case 0:return this._instance=new K(this._provider,this._network),this._instance.on("connect",this._handleConnect),this._instance.on("disconnect",this._handleDisconnect),this._pollTimer=window.setInterval(function(){var t,n;((n=(t=r._instance)===null||t===void 0?void 0:t._popup)===null||n===void 0?void 0:n.closed)!==!1&&r._handleDisconnect()},200),[4,this._instance.connect()];case 1:return e.sent(),[2]}})})},o.prototype.disconnect=function(){return v(this,void 0,void 0,function(){return y(this,function(r){switch(r.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return this._instance.removeAllListeners("connect"),this._instance.removeAllListeners("disconnect"),[4,this._instance.disconnect()];case 1:return r.sent(),[2]}})})},o.prototype.signTransaction=function(r){return v(this,void 0,void 0,function(){var e;return y(this,function(t){switch(t.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signTransactionV2",{transaction:h.encode(r)})];case 1:return e=t.sent().transaction,[2,h.decode(e)]}})})},o.prototype.signAllTransactions=function(r){return v(this,void 0,void 0,function(){var e;return y(this,function(t){switch(t.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signAllTransactionsV2",{transactions:r.map(function(n){return h.encode(n)})})];case 1:return e=t.sent().transactions,[2,e.map(function(n){return h.decode(n)})]}})})},o.prototype.signAndSendTransaction=function(r,e){return v(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signAndSendTransaction",{transaction:h.encode(r),options:e})];case 1:return t=n.sent(),[2,t.signature]}})})},o.prototype.signMessage=function(r,e){return e===void 0&&(e="hex"),v(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._instance.sign(r,e)];case 1:return t=n.sent().signature,[2,Uint8Array.from(t)]}})})},o}(W);let x;const $=new Uint8Array(16);function V(){if(!x&&(x=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!x))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x($)}const f=[];for(let s=0;s<256;++s)f.push((s+256).toString(16).slice(1));function G(s,o=0){return f[s[o+0]]+f[s[o+1]]+f[s[o+2]]+f[s[o+3]]+"-"+f[s[o+4]]+f[s[o+5]]+"-"+f[s[o+6]]+f[s[o+7]]+"-"+f[s[o+8]]+f[s[o+9]]+"-"+f[s[o+10]]+f[s[o+11]]+f[s[o+12]]+f[s[o+13]]+f[s[o+14]]+f[s[o+15]]}const N=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),R={randomUUID:N};function B(s,o,r){if(R.randomUUID&&!s)return R.randomUUID();s=s||{};const e=s.random||(s.rng||V)();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,G(e)}var J=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),j=function(){return j=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},j.apply(this,arguments)},m=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},w=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},U=function(s){J(o,s);function o(r,e){var t=this,n;return t=s.call(this)||this,t._publicKey=null,t._messageHandlers={},t.handleMessage=function(a){if(t._messageHandlers[a.id]){var c=t._messageHandlers[a.id],u=c.resolve,i=c.reject;delete t._messageHandlers[a.id],a.error?i(a.error):u(a.result)}},t._sendMessage=function(a){if(!t.connected)throw new Error("Wallet not connected");return new Promise(function(c,u){var i,l,d=B();t._messageHandlers[d]={resolve:c,reject:u},(l=(i=t._iframe)===null||i===void 0?void 0:i.contentWindow)===null||l===void 0||l.postMessage({channel:"solflareWalletAdapterToIframe",data:j({id:d},a)},"*")})},t._iframe=r,t._publicKey=new S((n=e?.toString)===null||n===void 0?void 0:n.call(e)),t}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._publicKey||null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return!0},enumerable:!1,configurable:!0}),o.prototype.connect=function(){return m(this,void 0,void 0,function(){return w(this,function(r){return[2]})})},o.prototype.disconnect=function(){return m(this,void 0,void 0,function(){return w(this,function(r){switch(r.label){case 0:return[4,this._sendMessage({method:"disconnect"})];case 1:return r.sent(),[2]}})})},o.prototype.signTransaction=function(r){var e;return m(this,void 0,void 0,function(){var t,n;return w(this,function(a){switch(a.label){case 0:if(!this.connected)throw new Error("Wallet not connected");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendMessage({method:"signTransaction",params:{transaction:h.encode(r)}})];case 2:return t=a.sent(),[2,h.decode(t)];case 3:throw n=a.sent(),new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transaction");case 4:return[2]}})})},o.prototype.signAllTransactions=function(r){var e;return m(this,void 0,void 0,function(){var t,n;return w(this,function(a){switch(a.label){case 0:if(!this.connected)throw new Error("Wallet not connected");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendMessage({method:"signAllTransactions",params:{transactions:r.map(function(c){return h.encode(c)})}})];case 2:return t=a.sent(),[2,t.map(function(c){return h.decode(c)})];case 3:throw n=a.sent(),new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transactions");case 4:return[2]}})})},o.prototype.signAndSendTransaction=function(r,e){var t;return m(this,void 0,void 0,function(){var n,a;return w(this,function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._sendMessage({method:"signAndSendTransaction",params:{transaction:h.encode(r),options:e}})];case 2:return n=c.sent(),[2,n];case 3:throw a=c.sent(),new Error(((t=a?.toString)===null||t===void 0?void 0:t.call(a))||"Failed to sign and send transaction");case 4:return[2]}})})},o.prototype.signMessage=function(r,e){var t;return e===void 0&&(e="hex"),m(this,void 0,void 0,function(){var n,a;return w(this,function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._sendMessage({method:"signMessage",params:{data:r,display:e}})];case 2:return n=c.sent(),[2,Uint8Array.from(h.decode(n))];case 3:throw a=c.sent(),new Error(((t=a?.toString)===null||t===void 0?void 0:t.call(a))||"Failed to sign message");case 4:return[2]}})})},o}(W);function g(s){return s.version===void 0}var Q="1.4.2",X=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),b=function(){return b=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},b.apply(this,arguments)},p=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},_=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Y=function(s){var o=typeof Symbol=="function"&&Symbol.iterator,r=o&&s[o],e=0;if(r)return r.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&e>=s.length&&(s=void 0),{value:s&&s[e++],done:!s}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},te=function(s){X(o,s);function o(r){var e=s.call(this)||this;return e._network="mainnet-beta",e._provider=null,e._iframeParams={},e._adapterInstance=null,e._element=null,e._iframe=null,e._connectHandler=null,e._flutterHandlerInterval=null,e._handleEvent=function(t){var n,a,c,u;switch(t.type){case"connect_native_web":{e._collapseIframe(),e._adapterInstance=new L(e._iframe,e._network,((n=t.data)===null||n===void 0?void 0:n.provider)||e._provider||"https://solflare.com/provider"),e._adapterInstance.on("connect",e._webConnected),e._adapterInstance.on("disconnect",e._webDisconnected),e._adapterInstance.connect(),e._setPreferredAdapter("native_web");return}case"connect":{e._collapseIframe(),e._adapterInstance=new U(e._iframe,((a=t.data)===null||a===void 0?void 0:a.publicKey)||""),e._adapterInstance.connect(),e._setPreferredAdapter((c=t.data)===null||c===void 0?void 0:c.adapter),e._connectHandler&&(e._connectHandler.resolve(),e._connectHandler=null),e.emit("connect",e.publicKey);return}case"disconnect":{e._connectHandler&&(e._connectHandler.reject(),e._connectHandler=null),e._disconnected(),e.emit("disconnect");return}case"accountChanged":{!((u=t.data)===null||u===void 0)&&u.publicKey?(e._adapterInstance=new U(e._iframe,t.data.publicKey),e._adapterInstance.connect(),e.emit("accountChanged",e.publicKey)):e.emit("accountChanged",void 0);return}case"collapse":{e._collapseIframe();return}default:return}},e._handleResize=function(t){t.resizeMode==="full"?t.params.mode==="fullscreen"?e._expandIframe():t.params.mode==="hide"&&e._collapseIframe():t.resizeMode==="coordinates"&&e._iframe&&(e._iframe.style.top=isFinite(t.params.top)?"".concat(t.params.top,"px"):"",e._iframe.style.bottom=isFinite(t.params.bottom)?"".concat(t.params.bottom,"px"):"",e._iframe.style.left=isFinite(t.params.left)?"".concat(t.params.left,"px"):"",e._iframe.style.right=isFinite(t.params.right)?"".concat(t.params.right,"px"):"",e._iframe.style.width=isFinite(t.params.width)?"".concat(t.params.width,"px"):t.params.width,e._iframe.style.height=isFinite(t.params.height)?"".concat(t.params.height,"px"):t.params.height)},e._handleMessage=function(t){var n;if(((n=t.data)===null||n===void 0?void 0:n.channel)==="solflareIframeToWalletAdapter"){var a=t.data.data||{};a.type==="event"?e._handleEvent(a.event):a.type==="resize"?e._handleResize(a):a.type==="response"&&e._adapterInstance&&e._adapterInstance.handleMessage(a)}},e._removeElement=function(){e._flutterHandlerInterval!==null&&(clearInterval(e._flutterHandlerInterval),e._flutterHandlerInterval=null),e._element&&(e._element.remove(),e._element=null)},e._removeDanglingElements=function(){var t,n,a=document.getElementsByClassName("solflare-wallet-adapter-iframe");try{for(var c=Y(a),u=c.next();!u.done;u=c.next()){var i=u.value;i.parentElement&&i.remove()}}catch(l){t={error:l}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},e._injectElement=function(){e._removeElement(),e._removeDanglingElements();var t=b(b({},e._iframeParams),{cluster:e._network||"mainnet-beta",origin:window.location.origin||"",title:document.title||"",version:1,sdkVersion:Q}),n=e._getPreferredAdapter();n&&(t.adapter=n),e._provider&&(t.provider=e._provider);var a=Object.keys(t).map(function(u){return"".concat(u,"=").concat(encodeURIComponent(t[u]))}).join("&"),c="".concat(o.IFRAME_URL,"?").concat(a);e._element=document.createElement("div"),e._element.className="solflare-wallet-adapter-iframe",e._element.innerHTML=`
|
|
1
|
+
import{E as P,P as S,B as h,T,V as O}from"./vendor-web3-CZJ1DcWo.js";import"./vendor-vue-1w_NBnjl.js";import"./vendor-dayjs-CzbnksQQ.js";var k=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),W=function(s){k(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o}(P),H=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),E=function(){return E=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},E.apply(this,arguments)},A=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},I=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},M=function(s,o){var r=typeof Symbol=="function"&&s[Symbol.iterator];if(!r)return s;var e=r.call(s),t,n=[],a;try{for(;(o===void 0||o-- >0)&&!(t=e.next()).done;)n.push(t.value)}catch(c){a={error:c}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(a)throw a.error}}return n},K=function(s){H(o,s);function o(r,e){var t=s.call(this)||this;if(t._handleMessage=function(n){if(t._injectedProvider&&n.source===window||n.origin===t._providerUrl.origin&&n.source===t._popup){if(n.data.method==="connected"){var a=new S(n.data.params.publicKey);(!t._publicKey||!t._publicKey.equals(a))&&(t._publicKey&&!t._publicKey.equals(a)&&t._handleDisconnect(),t._publicKey=a,t._autoApprove=!!n.data.params.autoApprove,t.emit("connect",t._publicKey))}else if(n.data.method==="disconnected")t._handleDisconnect();else if((n.data.result||n.data.error)&&t._responsePromises.has(n.data.id)){var c=M(t._responsePromises.get(n.data.id),2),u=c[0],i=c[1];n.data.result?u(n.data.result):i(new Error(n.data.error))}}},t._handleConnect=function(){return t._handlerAdded||(t._handlerAdded=!0,window.addEventListener("message",t._handleMessage),window.addEventListener("beforeunload",t.disconnect)),t._injectedProvider?new Promise(function(n){t._sendRequest("connect",{}),n()}):(window.name="parent",t._popup=window.open(t._providerUrl.toString(),"_blank","location,resizable,width=460,height=675"),new Promise(function(n){t.once("connect",n)}))},t._handleDisconnect=function(){t._handlerAdded&&(t._handlerAdded=!1,window.removeEventListener("message",t._handleMessage),window.removeEventListener("beforeunload",t.disconnect)),t._publicKey&&(t._publicKey=null,t.emit("disconnect")),t._responsePromises.forEach(function(n,a){var c=M(n,2);c[0];var u=c[1];t._responsePromises.delete(a),u("Wallet disconnected")})},t._sendRequest=function(n,a){return A(t,void 0,void 0,function(){var c,u=this;return I(this,function(i){if(n!=="connect"&&!this.connected)throw new Error("Wallet not connected");return c=this._nextRequestId,++this._nextRequestId,[2,new Promise(function(l,d){u._responsePromises.set(c,[l,d]),u._injectedProvider?u._injectedProvider.postMessage({jsonrpc:"2.0",id:c,method:n,params:E({network:u._network},a)}):(u._popup.postMessage({jsonrpc:"2.0",id:c,method:n,params:a},u._providerUrl.origin),u.autoApprove||u._popup.focus())})]})})},t.connect=function(){return t._popup&&t._popup.close(),t._handleConnect()},t.disconnect=function(){return A(t,void 0,void 0,function(){return I(this,function(n){switch(n.label){case 0:return this._injectedProvider?[4,this._sendRequest("disconnect",{})]:[3,2];case 1:n.sent(),n.label=2;case 2:return this._popup&&this._popup.close(),this._handleDisconnect(),[2]}})})},t.sign=function(n,a){return A(t,void 0,void 0,function(){var c,u,i;return I(this,function(l){switch(l.label){case 0:if(!(n instanceof Uint8Array))throw new Error("Data must be an instance of Uint8Array");return[4,this._sendRequest("sign",{data:n,display:a})];case 1:return c=l.sent(),u=h.decode(c.signature),i=new S(c.publicKey),[2,{signature:u,publicKey:i}]}})})},C(r))t._injectedProvider=r;else if(q(r))t._providerUrl=new URL(r),t._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:e}).toString();else throw new Error("provider parameter must be an injected provider or a URL string.");return t._network=e,t._publicKey=null,t._autoApprove=!1,t._popup=null,t._handlerAdded=!1,t._nextRequestId=1,t._responsePromises=new Map,t}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._publicKey},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return this._publicKey!==null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"autoApprove",{get:function(){return this._autoApprove},enumerable:!1,configurable:!0}),o}(P);function q(s){return typeof s=="string"}function C(s){return z(s)&&D(s.postMessage)}function z(s){return typeof s=="object"&&s!==null}function D(s){return typeof s=="function"}var F=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),v=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},y=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},L=function(s){F(o,s);function o(r,e,t){var n=s.call(this)||this;return n._instance=null,n.handleMessage=function(a){},n._sendRequest=function(a,c){return v(n,void 0,void 0,function(){var u,i;return y(this,function(l){switch(l.label){case 0:return!((u=this._instance)===null||u===void 0)&&u.sendRequest?[4,this._instance.sendRequest(a,c)]:[3,2];case 1:return[2,l.sent()];case 2:return!((i=this._instance)===null||i===void 0)&&i._sendRequest?[4,this._instance._sendRequest(a,c)]:[3,4];case 3:return[2,l.sent()];case 4:throw new Error("Unsupported version of `@project-serum/sol-wallet-adapter`")}})})},n._handleConnect=function(){n.emit("connect")},n._handleDisconnect=function(){window.clearInterval(n._pollTimer),n.emit("disconnect")},n._network=e,n._provider=t,n}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._instance.publicKey||null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return this._instance.connected||!1},enumerable:!1,configurable:!0}),o.prototype.connect=function(){return v(this,void 0,void 0,function(){var r=this;return y(this,function(e){switch(e.label){case 0:return this._instance=new K(this._provider,this._network),this._instance.on("connect",this._handleConnect),this._instance.on("disconnect",this._handleDisconnect),this._pollTimer=window.setInterval(function(){var t,n;((n=(t=r._instance)===null||t===void 0?void 0:t._popup)===null||n===void 0?void 0:n.closed)!==!1&&r._handleDisconnect()},200),[4,this._instance.connect()];case 1:return e.sent(),[2]}})})},o.prototype.disconnect=function(){return v(this,void 0,void 0,function(){return y(this,function(r){switch(r.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return this._instance.removeAllListeners("connect"),this._instance.removeAllListeners("disconnect"),[4,this._instance.disconnect()];case 1:return r.sent(),[2]}})})},o.prototype.signTransaction=function(r){return v(this,void 0,void 0,function(){var e;return y(this,function(t){switch(t.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signTransactionV2",{transaction:h.encode(r)})];case 1:return e=t.sent().transaction,[2,h.decode(e)]}})})},o.prototype.signAllTransactions=function(r){return v(this,void 0,void 0,function(){var e;return y(this,function(t){switch(t.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signAllTransactionsV2",{transactions:r.map(function(n){return h.encode(n)})})];case 1:return e=t.sent().transactions,[2,e.map(function(n){return h.decode(n)})]}})})},o.prototype.signAndSendTransaction=function(r,e){return v(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._sendRequest("signAndSendTransaction",{transaction:h.encode(r),options:e})];case 1:return t=n.sent(),[2,t.signature]}})})},o.prototype.signMessage=function(r,e){return e===void 0&&(e="hex"),v(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._instance.sign(r,e)];case 1:return t=n.sent().signature,[2,Uint8Array.from(t)]}})})},o}(W);let x;const $=new Uint8Array(16);function V(){if(!x&&(x=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!x))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x($)}const f=[];for(let s=0;s<256;++s)f.push((s+256).toString(16).slice(1));function G(s,o=0){return f[s[o+0]]+f[s[o+1]]+f[s[o+2]]+f[s[o+3]]+"-"+f[s[o+4]]+f[s[o+5]]+"-"+f[s[o+6]]+f[s[o+7]]+"-"+f[s[o+8]]+f[s[o+9]]+"-"+f[s[o+10]]+f[s[o+11]]+f[s[o+12]]+f[s[o+13]]+f[s[o+14]]+f[s[o+15]]}const N=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),R={randomUUID:N};function B(s,o,r){if(R.randomUUID&&!s)return R.randomUUID();s=s||{};const e=s.random||(s.rng||V)();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,G(e)}var J=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),j=function(){return j=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},j.apply(this,arguments)},m=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},w=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},U=function(s){J(o,s);function o(r,e){var t=this,n;return t=s.call(this)||this,t._publicKey=null,t._messageHandlers={},t.handleMessage=function(a){if(t._messageHandlers[a.id]){var c=t._messageHandlers[a.id],u=c.resolve,i=c.reject;delete t._messageHandlers[a.id],a.error?i(a.error):u(a.result)}},t._sendMessage=function(a){if(!t.connected)throw new Error("Wallet not connected");return new Promise(function(c,u){var i,l,d=B();t._messageHandlers[d]={resolve:c,reject:u},(l=(i=t._iframe)===null||i===void 0?void 0:i.contentWindow)===null||l===void 0||l.postMessage({channel:"solflareWalletAdapterToIframe",data:j({id:d},a)},"*")})},t._iframe=r,t._publicKey=new S((n=e?.toString)===null||n===void 0?void 0:n.call(e)),t}return Object.defineProperty(o.prototype,"publicKey",{get:function(){return this._publicKey||null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return!0},enumerable:!1,configurable:!0}),o.prototype.connect=function(){return m(this,void 0,void 0,function(){return w(this,function(r){return[2]})})},o.prototype.disconnect=function(){return m(this,void 0,void 0,function(){return w(this,function(r){switch(r.label){case 0:return[4,this._sendMessage({method:"disconnect"})];case 1:return r.sent(),[2]}})})},o.prototype.signTransaction=function(r){var e;return m(this,void 0,void 0,function(){var t,n;return w(this,function(a){switch(a.label){case 0:if(!this.connected)throw new Error("Wallet not connected");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendMessage({method:"signTransaction",params:{transaction:h.encode(r)}})];case 2:return t=a.sent(),[2,h.decode(t)];case 3:throw n=a.sent(),new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transaction");case 4:return[2]}})})},o.prototype.signAllTransactions=function(r){var e;return m(this,void 0,void 0,function(){var t,n;return w(this,function(a){switch(a.label){case 0:if(!this.connected)throw new Error("Wallet not connected");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendMessage({method:"signAllTransactions",params:{transactions:r.map(function(c){return h.encode(c)})}})];case 2:return t=a.sent(),[2,t.map(function(c){return h.decode(c)})];case 3:throw n=a.sent(),new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transactions");case 4:return[2]}})})},o.prototype.signAndSendTransaction=function(r,e){var t;return m(this,void 0,void 0,function(){var n,a;return w(this,function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._sendMessage({method:"signAndSendTransaction",params:{transaction:h.encode(r),options:e}})];case 2:return n=c.sent(),[2,n];case 3:throw a=c.sent(),new Error(((t=a?.toString)===null||t===void 0?void 0:t.call(a))||"Failed to sign and send transaction");case 4:return[2]}})})},o.prototype.signMessage=function(r,e){var t;return e===void 0&&(e="hex"),m(this,void 0,void 0,function(){var n,a;return w(this,function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._sendMessage({method:"signMessage",params:{data:r,display:e}})];case 2:return n=c.sent(),[2,Uint8Array.from(h.decode(n))];case 3:throw a=c.sent(),new Error(((t=a?.toString)===null||t===void 0?void 0:t.call(a))||"Failed to sign message");case 4:return[2]}})})},o}(W);function g(s){return s.version===void 0}var Q="1.4.2",X=function(){var s=function(o,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(o,r);function e(){this.constructor=o}o.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),b=function(){return b=Object.assign||function(s){for(var o,r=1,e=arguments.length;r<e;r++){o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t])}return s},b.apply(this,arguments)},p=function(s,o,r,e){function t(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function c(l){try{i(e.next(l))}catch(d){a(d)}}function u(l){try{i(e.throw(l))}catch(d){a(d)}}function i(l){l.done?n(l.value):t(l.value).then(c,u)}i((e=e.apply(s,o||[])).next())})},_=function(s,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,t,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(l){return u([i,l])}}function u(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(r=0)),r;)try{if(e=1,t&&(n=i[0]&2?t.return:i[0]?t.throw||((n=t.return)&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;switch(t=0,n&&(i=[i[0]&2,n.value]),i[0]){case 0:case 1:n=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,t=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){r.label=i[1];break}if(i[0]===6&&r.label<n[1]){r.label=n[1],n=i;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(i);break}n[2]&&r.ops.pop(),r.trys.pop();continue}i=o.call(s,r)}catch(l){i=[6,l],t=0}finally{e=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Y=function(s){var o=typeof Symbol=="function"&&Symbol.iterator,r=o&&s[o],e=0;if(r)return r.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&e>=s.length&&(s=void 0),{value:s&&s[e++],done:!s}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},te=function(s){X(o,s);function o(r){var e=s.call(this)||this;return e._network="mainnet-beta",e._provider=null,e._iframeParams={},e._adapterInstance=null,e._element=null,e._iframe=null,e._connectHandler=null,e._flutterHandlerInterval=null,e._handleEvent=function(t){var n,a,c,u;switch(t.type){case"connect_native_web":{e._collapseIframe(),e._adapterInstance=new L(e._iframe,e._network,((n=t.data)===null||n===void 0?void 0:n.provider)||e._provider||"https://solflare.com/provider"),e._adapterInstance.on("connect",e._webConnected),e._adapterInstance.on("disconnect",e._webDisconnected),e._adapterInstance.connect(),e._setPreferredAdapter("native_web");return}case"connect":{e._collapseIframe(),e._adapterInstance=new U(e._iframe,((a=t.data)===null||a===void 0?void 0:a.publicKey)||""),e._adapterInstance.connect(),e._setPreferredAdapter((c=t.data)===null||c===void 0?void 0:c.adapter),e._connectHandler&&(e._connectHandler.resolve(),e._connectHandler=null),e.emit("connect",e.publicKey);return}case"disconnect":{e._connectHandler&&(e._connectHandler.reject(),e._connectHandler=null),e._disconnected(),e.emit("disconnect");return}case"accountChanged":{!((u=t.data)===null||u===void 0)&&u.publicKey?(e._adapterInstance=new U(e._iframe,t.data.publicKey),e._adapterInstance.connect(),e.emit("accountChanged",e.publicKey)):e.emit("accountChanged",void 0);return}case"collapse":{e._collapseIframe();return}default:return}},e._handleResize=function(t){t.resizeMode==="full"?t.params.mode==="fullscreen"?e._expandIframe():t.params.mode==="hide"&&e._collapseIframe():t.resizeMode==="coordinates"&&e._iframe&&(e._iframe.style.top=isFinite(t.params.top)?"".concat(t.params.top,"px"):"",e._iframe.style.bottom=isFinite(t.params.bottom)?"".concat(t.params.bottom,"px"):"",e._iframe.style.left=isFinite(t.params.left)?"".concat(t.params.left,"px"):"",e._iframe.style.right=isFinite(t.params.right)?"".concat(t.params.right,"px"):"",e._iframe.style.width=isFinite(t.params.width)?"".concat(t.params.width,"px"):t.params.width,e._iframe.style.height=isFinite(t.params.height)?"".concat(t.params.height,"px"):t.params.height)},e._handleMessage=function(t){var n;if(((n=t.data)===null||n===void 0?void 0:n.channel)==="solflareIframeToWalletAdapter"){var a=t.data.data||{};a.type==="event"?e._handleEvent(a.event):a.type==="resize"?e._handleResize(a):a.type==="response"&&e._adapterInstance&&e._adapterInstance.handleMessage(a)}},e._removeElement=function(){e._flutterHandlerInterval!==null&&(clearInterval(e._flutterHandlerInterval),e._flutterHandlerInterval=null),e._element&&(e._element.remove(),e._element=null)},e._removeDanglingElements=function(){var t,n,a=document.getElementsByClassName("solflare-wallet-adapter-iframe");try{for(var c=Y(a),u=c.next();!u.done;u=c.next()){var i=u.value;i.parentElement&&i.remove()}}catch(l){t={error:l}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},e._injectElement=function(){e._removeElement(),e._removeDanglingElements();var t=b(b({},e._iframeParams),{cluster:e._network||"mainnet-beta",origin:window.location.origin||"",title:document.title||"",version:1,sdkVersion:Q}),n=e._getPreferredAdapter();n&&(t.adapter=n),e._provider&&(t.provider=e._provider);var a=Object.keys(t).map(function(u){return"".concat(u,"=").concat(encodeURIComponent(t[u]))}).join("&"),c="".concat(o.IFRAME_URL,"?").concat(a);e._element=document.createElement("div"),e._element.className="solflare-wallet-adapter-iframe",e._element.innerHTML=`
|
|
2
2
|
<iframe src='`.concat(c,`' referrerPolicy='strict-origin-when-cross-origin' style='position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; border: none; border-radius: 0; z-index: 99999; color-scheme: auto;' allowtransparency='true'></iframe>
|
|
3
3
|
`),document.body.appendChild(e._element),e._iframe=e._element.querySelector("iframe"),window.fromFlutter=e._handleMobileMessage,e._flutterHandlerInterval=setInterval(function(){window.fromFlutter=e._handleMobileMessage},100),window.addEventListener("message",e._handleMessage,!1)},e._collapseIframe=function(){e._iframe&&(e._iframe.style.top="",e._iframe.style.right="",e._iframe.style.height="2px",e._iframe.style.width="2px")},e._expandIframe=function(){e._iframe&&(e._iframe.style.top="0px",e._iframe.style.bottom="0px",e._iframe.style.left="0px",e._iframe.style.right="0px",e._iframe.style.width="100%",e._iframe.style.height="100%")},e._getPreferredAdapter=function(){return localStorage&&localStorage.getItem("solflarePreferredWalletAdapter")||null},e._setPreferredAdapter=function(t){localStorage&&t&&localStorage.setItem("solflarePreferredWalletAdapter",t)},e._clearPreferredAdapter=function(){localStorage&&localStorage.removeItem("solflarePreferredWalletAdapter")},e._webConnected=function(){e._connectHandler&&(e._connectHandler.resolve(),e._connectHandler=null),e.emit("connect",e.publicKey)},e._webDisconnected=function(){e._connectHandler&&(e._connectHandler.reject(),e._connectHandler=null),e._disconnected(),e.emit("disconnect")},e._disconnected=function(){window.removeEventListener("message",e._handleMessage,!1),e._removeElement(),e._clearPreferredAdapter(),e._adapterInstance=null},e._handleMobileMessage=function(t){var n,a;(a=(n=e._iframe)===null||n===void 0?void 0:n.contentWindow)===null||a===void 0||a.postMessage({channel:"solflareMobileToIframe",data:t},"*")},r?.network&&(e._network=r?.network),r?.provider&&(e._provider=r?.provider),r?.params&&(e._iframeParams=b({},r?.params)),e}return Object.defineProperty(o.prototype,"publicKey",{get:function(){var r;return((r=this._adapterInstance)===null||r===void 0?void 0:r.publicKey)||null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isConnected",{get:function(){var r;return!!(!((r=this._adapterInstance)===null||r===void 0)&&r.connected)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"connected",{get:function(){return this.isConnected},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"autoApprove",{get:function(){return!1},enumerable:!1,configurable:!0}),o.prototype.connect=function(){return p(this,void 0,void 0,function(){var r=this;return _(this,function(e){switch(e.label){case 0:return this.connected?[2]:(this._injectElement(),[4,new Promise(function(t,n){r._connectHandler={resolve:t,reject:n}})]);case 1:return e.sent(),[2]}})})},o.prototype.disconnect=function(){return p(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:return this._adapterInstance?[4,this._adapterInstance.disconnect()]:[2];case 1:return r.sent(),this._disconnected(),this.emit("disconnect"),[2]}})})},o.prototype.signTransaction=function(r){return p(this,void 0,void 0,function(){var e,t;return _(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return e=g(r)?Uint8Array.from(r.serialize({verifySignatures:!1,requireAllSignatures:!1})):r.serialize(),[4,this._adapterInstance.signTransaction(e)];case 1:return t=n.sent(),[2,g(r)?T.from(t):O.deserialize(t)]}})})},o.prototype.signAllTransactions=function(r){return p(this,void 0,void 0,function(){var e,t;return _(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return e=r.map(function(a){return g(a)?Uint8Array.from(a.serialize({verifySignatures:!1,requireAllSignatures:!1})):a.serialize()}),[4,this._adapterInstance.signAllTransactions(e)];case 1:if(t=n.sent(),t.length!==r.length)throw new Error("Failed to sign all transactions");return[2,t.map(function(a,c){return g(r[c])?T.from(a):O.deserialize(a)})]}})})},o.prototype.signAndSendTransaction=function(r,e){return p(this,void 0,void 0,function(){var t;return _(this,function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return t=g(r)?r.serialize({verifySignatures:!1,requireAllSignatures:!1}):r.serialize(),[4,this._adapterInstance.signAndSendTransaction(t,e)];case 1:return[2,n.sent()]}})})},o.prototype.signMessage=function(r,e){return e===void 0&&(e="utf8"),p(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._adapterInstance.signMessage(r,e)];case 1:return[2,t.sent()]}})})},o.prototype.sign=function(r,e){return e===void 0&&(e="utf8"),p(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.signMessage(r,e)];case 1:return[2,t.sent()]}})})},o.prototype.detectWallet=function(r){var e;return r===void 0&&(r=10),p(this,void 0,void 0,function(){return _(this,function(t){return window.SolflareApp||!((e=window.solflare)===null||e===void 0)&&e.isSolflare?[2,!0]:[2,new Promise(function(n){var a,c;a=setInterval(function(){var u;(window.SolflareApp||!((u=window.solflare)===null||u===void 0)&&u.isSolflare)&&(clearInterval(a),clearTimeout(c),n(!0))},500),c=setTimeout(function(){clearInterval(a),n(!1)},r*1e3)})]})})},o.IFRAME_URL="https://connect.solflare.com/",o}(P);export{te as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as Qf,a as Tc}from"./bignumber-C1xKUtxX.js";import{h as $e,j as fa,k as wt,r as la,l as Pe,m as Jf,n as Zf,o as e2,p as t2,q as r2}from"./vendor-web3-BWcfcUXi.js";import{cG as on,cH as an,cI as da,cJ as n2,cK as Rc,cL as i2,cM as o2,cN as a2,cO as s2,cP as Ic,cQ as Dc,cR as dt,cS as c2,cT as u2}from"./index-FyDryJF8.js";import{j as it,h as St,g as Oc}from"./vendor-dayjs-CzbnksQQ.js";import{r as f2}from"./string_decoder-BJaILowq.js";import{r as Et}from"./index-BLy_0GNg.js";function l2(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vn={exports:{}},At={},xn={exports:{}},bn={},Cn={},_n={},Mt={},Bn={},Kr={exports:{}},Ut={},Ia;function ha(){if(Ia)return Ut;Ia=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DataItem=void 0;class e{constructor(t,r){this.setTag=i=>{this.tag=i},this.clearTag=()=>{this.tag=void 0},this.getTag=()=>this.tag,this.getData=()=>this.data,this.data=t,this.tag=r}}return Ut.DataItem=e,Ut}var d2=Kr.exports,Da;function h2(){return Da||(Da=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})(d2,function(){const{DataItem:n}=ha();var t=function(){function r(p){this.$hex=p}r.prototype={length:function(){return this.$hex.length/2},toString:function(p){if(!p||p==="hex"||p===16)return this.$hex;if(p==="utf-8"){for(var C="",S=0;S<this.$hex.length;S+=2)C+="%"+this.$hex.substring(S,S+2);return decodeURIComponent(C)}if(p==="latin"){for(var C=[],S=0;S<this.$hex.length;S+=2)C.push(parseInt(this.$hex.substring(S,S+2),16));return String.fromCharCode.apply(String,C)}throw new Error("Unrecognised format: "+p)}},r.fromLatinString=function(p){for(var C="",S=0;S<p.length;S++){var A=p.charCodeAt(S).toString(16);A.length===1&&(A="0"+A),C+=A}return new r(C)},r.fromUtf8String=function(p){for(var C=encodeURIComponent(p),S="",A=0;A<C.length;A++)if(C.charAt(A)==="%")S+=C.substring(A+1,A+3),A+=2;else{var j=C.charCodeAt(A).toString(16);j.length<2&&(j="0"+j),S+=j}return new r(S)};var i=[],s={},u=function(p){return function(){throw new Error(p+" not implemented")}};function a(){}a.prototype={peekByte:u("peekByte"),readByte:u("readByte"),readChunk:u("readChunk"),readFloat16:function(){var p=this.readUint16(),C=(p&32767)>>10,S=p&1023,A=p&32768;if(C===31)return S===0?A?-1/0:1/0:NaN;var j=C?Math.pow(2,C-25)*(1024+S):Math.pow(2,-24)*S;return A?-j:j},readFloat32:function(){var p=this.readUint32(),C=(p&2147483647)>>23,S=p&8388607,A=p&2147483648;if(C===255)return S===0?A?-1/0:1/0:NaN;var j=C?Math.pow(2,C-23-127)*(8388608+S):Math.pow(2,-149)*S;return A?-j:j},readFloat64:function(){var p=this.readUint32(),C=this.readUint32(),S=p>>20&2047,A=(p&1048575)*4294967296+C,j=p&2147483648;if(S===2047)return A===0?j?-1/0:1/0:NaN;var V=S?Math.pow(2,S-52-1023)*(4503599627370496+A):Math.pow(2,-1074)*A;return j?-V:V},readUint16:function(){return this.readByte()*256+this.readByte()},readUint32:function(){return this.readUint16()*65536+this.readUint16()},readUint64:function(){return this.readUint32()*4294967296+this.readUint32()}};function f(){}f.prototype={writeByte:u("writeByte"),result:u("result"),writeFloat16:u("writeFloat16"),writeFloat32:u("writeFloat32"),writeFloat64:u("writeFloat64"),writeUint16:function(p){this.writeByte(p>>8&255),this.writeByte(p&255)},writeUint32:function(p){this.writeUint16(p>>16&65535),this.writeUint16(p&65535)},writeUint64:function(p){if(p>=9007199254740992||p<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+p+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(p/4294967296)),this.writeUint32(p%4294967296)},writeString:u("writeString"),canWriteBinary:function(p){return!1},writeBinary:u("writeChunk")};function o(p){var C=p.readByte(),S=C>>5,A=C&31;return{type:S,value:A}}function c(p,C){var S=p.value;if(S<24)return S;if(S==24)return C.readByte();if(S==25)return C.readUint16();if(S==26)return C.readUint32();if(S==27)return C.readUint64();if(S==31)return null;u("Additional info: "+S)()}function l(p,C,S){S.writeByte(p<<5|C)}function d(p,C,S){var A=p<<5;C<24?S.writeByte(A|C):C<256?(S.writeByte(A|24),S.writeByte(C)):C<65536?(S.writeByte(A|25),S.writeUint16(C)):C<4294967296?(S.writeByte(A|26),S.writeUint32(C)):(S.writeByte(A|27),S.writeUint64(C))}var h=new Error;function m(p){var C=o(p);switch(C.type){case 0:return c(C,p);case 1:return-1-c(C,p);case 2:return p.readChunk(c(C,p));case 3:var S=p.readChunk(c(C,p));return S.toString("utf-8");case 4:case 5:var A=c(C,p),W=[];if(A!==null){C.type===5&&(A*=2);for(var j=0;j<A;j++)W[j]=m(p)}else for(var V;(V=m(p))!==h;)W.push(V);if(C.type===5){for(var z={},j=0;j<W.length;j+=2)z[W[j]]=W[j+1];return z}else return W;case 6:var L=c(C,p),F=s[L],W=m(p);return F?F(W):W;case 7:if(C.value===25)return p.readFloat16();if(C.value===26)return p.readFloat32();if(C.value===27)return p.readFloat64();switch(c(C,p)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return h;default:throw new Error("Unknown fixed value: "+C.value)}default:throw new Error("Unsupported header: "+JSON.stringify(C))}throw new Error("not implemented yet")}function x(p,C){for(var S=0;S<i.length;S++){var A=i[S].fn(p);if(A!==void 0)return d(6,i[S].tag,C),x(A,C)}if(p&&typeof p.toCBOR=="function"&&(p=p.toCBOR()),p===!1)d(7,20,C);else if(p===!0)d(7,21,C);else if(p===null)d(7,22,C);else if(p===void 0)d(7,23,C);else if(typeof p=="number")Math.floor(p)===p&&p<9007199254740992&&p>-9007199254740992?p<0?d(1,-1-p,C):d(0,p,C):(l(7,27,C),C.writeFloat64(p));else if(typeof p=="string")C.writeString(p,function(V){d(3,V,C)});else if(C.canWriteBinary(p))C.writeBinary(p,function(V){d(2,V,C)});else if(typeof p=="object")if(v.config.useToJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),Array.isArray(p)){d(4,p.length,C);for(var S=0;S<p.length;S++)x(p[S],C)}else{var j=Object.keys(p);d(5,j.length,C);for(var S=0;S<j.length;S++){const z=parseInt(j[S]);isNaN(z)?(x(j[S],C),x(p[j[S]],C)):(x(z,C),x(p[j[S]],C))}}else throw new Error("CBOR encoding not supported: "+p)}var y=[],g=[],v={config:{useToJSON:!0},addWriter:function(p,C){typeof p=="string"?g.push(function(S){if(p===S)return C(S)}):g.push(p)},addReader:function(p,C){typeof p=="string"?y.push(function(S,A){if(p===A)return C(S,A)}):y.push(p)},encode:function(p,C){for(var S=0;S<g.length;S++){var A=g[S],j=A(C);if(j)return x(p,j),j.result()}throw new Error("Unsupported output format: "+C)},encodeDataItem:function(p,C){for(var S=0;S<g.length;S++){var A=g[S],j=A(C);if(j)return p.getTag()!==void 0?(x(p,j),j.result()):(x(p.getData(),j),j.result())}throw new Error("Unsupported output format: "+C)},decode:function(p,C){for(var S=0;S<y.length;S++){var A=y[S],j=A(p,C);if(j)return m(j)}throw new Error("Unsupported input format: "+C)},decodeToDataItem:function(p,C){for(var S=0;S<y.length;S++){var A=y[S],j=A(p,C);if(j){const V=m(j);return V instanceof n?V:new n(V)}}throw new Error("Unsupported input format: "+C)},addSemanticEncode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return i.push({tag:p,fn:C}),this},addSemanticDecode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return s[p]=C,this}};function b(p){this.buffer=p,this.pos=0}b.prototype=Object.create(a.prototype),b.prototype.peekByte=function(){return this.buffer[this.pos]},b.prototype.readByte=function(){return this.buffer[this.pos++]},b.prototype.readUint16=function(){var p=this.buffer.readUInt16BE(this.pos);return this.pos+=2,p},b.prototype.readUint32=function(){var p=this.buffer.readUInt32BE(this.pos);return this.pos+=4,p},b.prototype.readFloat32=function(){var p=this.buffer.readFloatBE(this.pos);return this.pos+=4,p},b.prototype.readFloat64=function(){var p=this.buffer.readDoubleBE(this.pos);return this.pos+=8,p},b.prototype.readChunk=function(p){var C=Buffer.alloc(p);return this.buffer.copy(C,0,this.pos,this.pos+=p),C};function E(p){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=p}E.prototype=Object.create(f.prototype),E.prototype.writeByte=function(p){this.latestBuffer[this.latestBufferOffset++]=p,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},E.prototype.writeFloat32=function(p){var C=Buffer.alloc(4);C.writeFloatBE(p,0),this.writeBuffer(C)},E.prototype.writeFloat64=function(p){var C=Buffer.alloc(8);C.writeDoubleBE(p,0),this.writeBuffer(C)},E.prototype.writeString=function(p,C){var S=Buffer.from(p,"utf-8");C(S.length),this.writeBuffer(S)},E.prototype.canWriteBinary=function(p){return p instanceof Buffer},E.prototype.writeBinary=function(p,C){C(p.length),this.writeBuffer(p)},E.prototype.writeBuffer=function(p){if(!(p instanceof Buffer))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=p.length?(p.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=p.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(p),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(p),this.byteLength+=p.length},E.prototype.result=function(){for(var p=Buffer.alloc(this.byteLength),C=0,S=0;S<this.completeBuffers.length;S++){var A=this.completeBuffers[S];A.copy(p,C,0,A.length),C+=A.length}return this.latestBufferOffset&&this.latestBuffer.copy(p,C,0,this.latestBufferOffset),this.stringFormat?p.toString(this.stringFormat):p},typeof Buffer=="function"&&(v.addReader(function(p,C){if(Buffer.isBuffer(p))return new b(p);if(C==="hex"||C==="base64"){var S=Buffer.from(p,C);return new b(S)}}),v.addWriter(function(p){if(!p||p==="buffer")return new E;if(p==="hex"||p==="base64")return new E(p)}));function D(p){this.hex=p,this.pos=0}D.prototype=Object.create(a.prototype),D.prototype.peekByte=function(){var p=this.hex.substring(this.pos,2);return parseInt(p,16)},D.prototype.readByte=function(){var p=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(p,16)},D.prototype.readChunk=function(p){var C=this.hex.substring(this.pos,this.pos+p*2);return this.pos+=p*2,typeof Buffer=="function"?Buffer.from(C,"hex"):new r(C)};function w(p){this.$hex="",this.finalFormat=p||"hex"}return w.prototype=Object.create(f.prototype),w.prototype.writeByte=function(p){if(p<0||p>255)throw new Error("Byte value out of range: "+p);var C=p.toString(16);C.length==1&&(C="0"+C),this.$hex+=C},w.prototype.canWriteBinary=function(p){return p instanceof r||typeof Buffer=="function"&&p instanceof Buffer},w.prototype.writeBinary=function(p,C){if(p instanceof r)C(p.length()),this.$hex+=p.$hex;else if(typeof Buffer=="function"&&p instanceof Buffer)C(p.length),this.$hex+=p.toString("hex");else throw new TypeError("HexWriter only accepts BinaryHex or Buffers")},w.prototype.result=function(){return this.finalFormat==="buffer"&&typeof Buffer=="function"?Buffer.from(this.$hex,"hex"):new r(this.$hex).toString(this.finalFormat)},w.prototype.writeString=function(p,C){var S=r.fromUtf8String(p);C(S.length()),this.$hex+=S.$hex},v.addReader(function(p,C){if(p instanceof r||p.$hex)return new D(p.$hex);if(C==="hex")return new D(p)}),v.addWriter(function(p){if(p==="hex")return new w}),v}();return t.addSemanticEncode(0,function(r){if(r instanceof Date)return r.toISOString()}).addSemanticDecode(0,function(r){return new Date(r)}).addSemanticDecode(1,function(r){return new Date(r)}),t})}(Kr)),Kr.exports}var Oa;function Ce(){return Oa||(Oa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DataItem=e.addWriter=e.addReader=e.addSemanticEncode=e.addSemanticDecode=e.decodeToDataItem=e.encodeDataItem=void 0;var n=h2();Object.defineProperty(e,"encodeDataItem",{enumerable:!0,get:function(){return n.encodeDataItem}}),Object.defineProperty(e,"decodeToDataItem",{enumerable:!0,get:function(){return n.decodeToDataItem}}),Object.defineProperty(e,"addSemanticDecode",{enumerable:!0,get:function(){return n.addSemanticDecode}}),Object.defineProperty(e,"addSemanticEncode",{enumerable:!0,get:function(){return n.addSemanticEncode}}),Object.defineProperty(e,"addReader",{enumerable:!0,get:function(){return n.addReader}}),Object.defineProperty(e,"addWriter",{enumerable:!0,get:function(){return n.addWriter}});var t=ha();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return t.DataItem}})}(Bn)),Bn}var Aa;function Ao(){if(Aa)return Mt;Aa=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.patchTags=void 0;const e=Ce(),n=[],t=r=>{r.forEach(i=>{n.find(s=>s===i)||((0,e.addSemanticEncode)(i,s=>{if(s instanceof e.DataItem&&s.getTag()===i)return s.getData()}),(0,e.addSemanticDecode)(i,s=>new e.DataItem(s,i)),n.push(i))})};return Mt.patchTags=t,Mt}var ct={},Ma;function _e(){if(Ma)return ct;Ma=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.RegistryTypes=ct.RegistryType=void 0;class e{constructor(t,r){this.type=t,this.tag=r,this.getTag=()=>this.tag,this.getType=()=>this.type}}return ct.RegistryType=e,ct.RegistryTypes={UUID:new e("uuid",37),BYTES:new e("bytes",void 0),CRYPTO_HDKEY:new e("crypto-hdkey",303),CRYPTO_KEYPATH:new e("crypto-keypath",304),CRYPTO_COIN_INFO:new e("crypto-coin-info",305),CRYPTO_ECKEY:new e("crypto-eckey",306),CRYPTO_OUTPUT:new e("crypto-output",308),CRYPTO_PSBT:new e("crypto-psbt",310),CRYPTO_PSBT_EXTEND:new e("crypto-psbt-extend",312),CRYPTO_ACCOUNT:new e("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new e("crypto-multi-accounts",1103),QR_HARDWARE_CALL:new e("qr-hardware-call",1201),KEY_DERIVATION_CALL:new e("key-derivation-call",1301),KEY_DERIVATION_SCHEMA:new e("key-derivation-schema",1302)},ct}var wn={},Ua;function pa(){return Ua||(Ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptExpressions=e.ScriptExpression=void 0;class n{constructor(r,i){this.tag=r,this.expression=i,this.getTag=()=>this.tag,this.getExpression=()=>this.expression}}e.ScriptExpression=n,n.fromTag=t=>Object.values(e.ScriptExpressions).find(i=>i.getTag()===t),e.ScriptExpressions={SCRIPT_HASH:new n(400,"sh"),WITNESS_SCRIPT_HASH:new n(401,"wsh"),PUBLIC_KEY:new n(402,"pk"),PUBLIC_KEY_HASH:new n(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new n(404,"wpkh"),COMBO:new n(405,"combo"),MULTISIG:new n(406,"multi"),SORTED_MULTISIG:new n(407,"sortedmulti"),ADDRESS:new n(307,"addr"),RAW_SCRIPT:new n(408,"raw")}}(wn)),wn}var La;function ja(){if(La)return _n;La=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=Ao(),n=_e(),t=pa(),r=Object.values(n.RegistryTypes).filter(s=>!!s.getTag()).map(s=>s.getTag()),i=Object.values(t.ScriptExpressions).map(s=>s.getTag());return(0,e.patchTags)(r.concat(i)),_n}var Lt={},Sn,Na;function p2(){if(Na)return Sn;Na=1;var e={}.toString;return Sn=Array.isArray||function(n){return e.call(n)=="[object Array]"},Sn}var En,Fa;function g2(){if(Fa)return En;Fa=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(v){v!==r&&(n=null)}else n=null;var i=/^\s*class\b/,s=function(b){try{var E=e.call(b);return i.test(E)}catch{return!1}},u=function(b){try{return s(b)?!1:(e.call(b),!0)}catch{return!1}},a=Object.prototype.toString,f="[object Object]",o="[object Function]",c="[object GeneratorFunction]",l="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var g=document.all;a.call(g)===a.call(document.all)&&(y=function(b){if((x||!b)&&(typeof b>"u"||typeof b=="object"))try{var E=a.call(b);return(E===l||E===d||E===h||E===f)&&b("")==null}catch{}return!1})}return En=n?function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{n(b,null,t)}catch(E){if(E!==r)return!1}return!s(b)&&u(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return u(b);if(s(b))return!1;var E=a.call(b);return E!==o&&E!==c&&!/^\[object HTML/.test(E)?!1:u(b)},En}var Pn,qa;function y2(){if(qa)return Pn;qa=1;var e=g2(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=function(f,o,c){for(var l=0,d=f.length;l<d;l++)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))},i=function(f,o,c){for(var l=0,d=f.length;l<d;l++)c==null?o(f.charAt(l),l,f):o.call(c,f.charAt(l),l,f)},s=function(f,o,c){for(var l in f)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))};function u(a){return n.call(a)==="[object Array]"}return Pn=function(f,o,c){if(!e(o))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=c),u(f)?r(f,o,l):typeof f=="string"?i(f,o,l):s(f,o,l)},Pn}var kn,$a;function m2(){return $a||($a=1,kn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),kn}var Tn,Ha;function v2(){if(Ha)return Tn;Ha=1;var e=m2(),n=typeof globalThis>"u"?it:globalThis;return Tn=function(){for(var r=[],i=0;i<e.length;i++)typeof n[e[i]]=="function"&&(r[r.length]=e[i]);return r},Tn}var Rn={exports:{}},In,Ka;function Ac(){if(Ka)return In;Ka=1;var e=da(),n=n2(),t=on(),r=an();return In=function(s,u,a){if(!s||typeof s!="object"&&typeof s!="function")throw new t("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,u);if(e)e(s,u,{configurable:c===null&&d?d.configurable:!c,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:o===null&&d?d.writable:!o});else if(l||!f&&!o&&!c)s[u]=a;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},In}var Dn,za;function Mc(){if(za)return Dn;za=1;var e=da(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Dn=n,Dn}var On,Ga;function x2(){if(Ga)return On;Ga=1;var e=Rc(),n=Ac(),t=Mc()(),r=an(),i=on(),s=e("%Math.floor%");return On=function(a,f){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new i("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in a&&r){var d=r(a,"length");d&&!d.configurable&&(c=!1),d&&!d.writable&&(l=!1)}return(c||l||!o)&&(t?n(a,"length",f,!0,!0):n(a,"length",f)),a},On}var An,Wa;function b2(){if(Wa)return An;Wa=1;var e=o2(),n=a2(),t=i2();return An=function(){return t(e,n,arguments)},An}var Va;function sn(){return Va||(Va=1,function(e){var n=x2(),t=da(),r=s2(),i=b2();e.exports=function(u){var a=r(arguments),f=u.length-(arguments.length-1);return n(a,1+(f>0?f:0),!0)},t?t(e.exports,"apply",{value:i}):e.exports.apply=i}(Rn)),Rn.exports}var Mn,Ya;function cn(){if(Ya)return Mn;Ya=1;var e=Ic();return Mn=function(){return e()&&!!Symbol.toStringTag},Mn}var Un,Xa;function Uc(){if(Xa)return Un;Xa=1;var e=y2(),n=v2(),t=sn(),r=dt(),i=an(),s=Dc(),u=r("Object.prototype.toString"),a=cn()(),f=typeof globalThis>"u"?it:globalThis,o=n(),c=r("String.prototype.slice"),l=r("Array.prototype.indexOf",!0)||function(y,g){for(var v=0;v<y.length;v+=1)if(y[v]===g)return v;return-1},d={__proto__:null};a&&i&&s?e(o,function(x){var y=new f[x];if(Symbol.toStringTag in y&&s){var g=s(y),v=i(g,Symbol.toStringTag);if(!v&&g){var b=s(g);v=i(b,Symbol.toStringTag)}d["$"+x]=t(v.get)}}):e(o,function(x){var y=new f[x],g=y.slice||y.set;g&&(d["$"+x]=t(g))});var h=function(y){var g=!1;return e(d,function(v,b){if(!g)try{"$"+v(y)===b&&(g=c(b,1))}catch{}}),g},m=function(y){var g=!1;return e(d,function(v,b){if(!g)try{v(y),g=c(b,1)}catch{}}),g};return Un=function(y){if(!y||typeof y!="object")return!1;if(!a){var g=c(u(y),8,-1);return l(o,g)>-1?g:g!=="Object"?!1:m(y)}return i?h(y):null},Un}var Ln,Qa;function Lc(){if(Qa)return Ln;Qa=1;var e=Uc();return Ln=function(t){return!!e(t)},Ln}var jn,Ja;function C2(){if(Ja)return jn;Ja=1;var e=on(),n=dt(),t=n("TypedArray.prototype.buffer",!0),r=Lc();return jn=t||function(s){if(!r(s))throw new e("Not a Typed Array");return s.buffer},jn}var Nn,Za;function ga(){if(Za)return Nn;Za=1;var e=$e().Buffer,n=p2(),t=C2(),r=ArrayBuffer.isView||function(f){try{return t(f),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Nn=function(f,o){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,o);if(s&&r(f)){if(f.byteLength===0)return e.alloc(0);if(u){var c=e.from(f.buffer,f.byteOffset,f.byteLength);if(c.byteLength===f.byteLength)return c}var l=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),d=e.from(l);if(d.length===f.byteLength)return d}if(i&&f instanceof Uint8Array)return e.from(f);var h=n(f);if(h)for(var m=0;m<f.length;m+=1){var x=f[m];if(typeof x!="number"||x<0||x>255||~~x!==x)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Nn}var Fn,es;function _2(){if(es)return Fn;es=1;var e=$e().Buffer,n=ga(),t=typeof Uint8Array<"u",r=t&&typeof ArrayBuffer<"u",i=r&&ArrayBuffer.isView;return Fn=function(s,u){if(typeof s=="string"||e.isBuffer(s)||t&&s instanceof Uint8Array||i&&i(s))return n(s,u);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},Fn}var Dr={exports:{}},Or={exports:{}},ts;function un(){if(ts)return Or.exports;ts=1,typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Or.exports={nextTick:e}:Or.exports=process;function e(n,t,r,i){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,u,a;switch(s){case 0:case 1:return process.nextTick(n);case 2:return process.nextTick(function(){n.call(null,t)});case 3:return process.nextTick(function(){n.call(null,t,r)});case 4:return process.nextTick(function(){n.call(null,t,r,i)});default:for(u=new Array(s-1),a=0;a<u.length;)u[a++]=arguments[a];return process.nextTick(function(){n.apply(null,u)})}}return Or.exports}var qn,rs;function B2(){if(rs)return qn;rs=1;var e={}.toString;return qn=Array.isArray||function(n){return e.call(n)=="[object Array]"},qn}var $n,ns;function jc(){return ns||(ns=1,$n=fa().EventEmitter),$n}var Ar={exports:{}},is;function ya(){return is||(is=1,function(e,n){var t=wt(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Ar,Ar.exports)),Ar.exports}var Be={},os;function Sr(){if(os)return Be;os=1;function e(x){return Array.isArray?Array.isArray(x):m(x)==="[object Array]"}Be.isArray=e;function n(x){return typeof x=="boolean"}Be.isBoolean=n;function t(x){return x===null}Be.isNull=t;function r(x){return x==null}Be.isNullOrUndefined=r;function i(x){return typeof x=="number"}Be.isNumber=i;function s(x){return typeof x=="string"}Be.isString=s;function u(x){return typeof x=="symbol"}Be.isSymbol=u;function a(x){return x===void 0}Be.isUndefined=a;function f(x){return m(x)==="[object RegExp]"}Be.isRegExp=f;function o(x){return typeof x=="object"&&x!==null}Be.isObject=o;function c(x){return m(x)==="[object Date]"}Be.isDate=c;function l(x){return m(x)==="[object Error]"||x instanceof Error}Be.isError=l;function d(x){return typeof x=="function"}Be.isFunction=d;function h(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x>"u"}Be.isPrimitive=h,Be.isBuffer=wt().Buffer.isBuffer;function m(x){return Object.prototype.toString.call(x)}return Be}var Hn={exports:{}},as;function w2(){return as||(as=1,function(e){function n(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var t=ya().Buffer,r=la;function i(s,u,a){s.copy(u,a)}e.exports=function(){function s(){n(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var f={data:a,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},s.prototype.unshift=function(a){var f={data:a,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var f=this.head,o=""+f.data;f=f.next;)o+=a+f.data;return o},s.prototype.concat=function(a){if(this.length===0)return t.alloc(0);for(var f=t.allocUnsafe(a>>>0),o=this.head,c=0;o;)i(o.data,f,c),c+=o.data.length,o=o.next;return f},s}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var s=r.inspect({length:this.length});return this.constructor.name+" "+s})}(Hn)),Hn.exports}var Kn,ss;function Nc(){if(ss)return Kn;ss=1;var e=un();function n(i,s){var u=this,a=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return a||f?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,i)):e.nextTick(r,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(o){!s&&o?u._writableState?u._writableState.errorEmitted||(u._writableState.errorEmitted=!0,e.nextTick(r,u,o)):e.nextTick(r,u,o):s&&s(o)}),this)}function t(){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 r(i,s){i.emit("error",s)}return Kn={destroy:n,undestroy:t},Kn}var zn,cs;function S2(){if(cs)return zn;cs=1,zn=e;function e(t,r){if(n("noDeprecation"))return t;var i=!1;function s(){if(!i){if(n("throwDeprecation"))throw new Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}return s}function n(t){try{if(!it.localStorage)return!1}catch{return!1}var r=it.localStorage[t];return r==null?!1:String(r).toLowerCase()==="true"}return zn}var Gn,us;function Fc(){if(us)return Gn;us=1;var e=un();Gn=x;function n(R){var O=this;this.next=null,this.entry=null,this.finish=function(){W(O,R)}}var t=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick,r;x.WritableState=h;var i=Object.create(Sr());i.inherits=Pe();var s={deprecate:S2()},u=jc(),a=ya().Buffer,f=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(R){return a.from(R)}function c(R){return a.isBuffer(R)||R instanceof f}var l=Nc();i.inherits(x,u);function d(){}function h(R,O){r=r||_t(),R=R||{};var N=O instanceof r;this.objectMode=!!R.objectMode,N&&(this.objectMode=this.objectMode||!!R.writableObjectMode);var G=R.highWaterMark,J=R.writableHighWaterMark,Z=this.objectMode?16:16*1024;G||G===0?this.highWaterMark=G:N&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Z,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 $=R.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(M){p(O,M)},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 n(this)}h.prototype.getBuffer=function(){for(var O=this.bufferedRequest,N=[];O;)N.push(O),O=O.next;return N},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var m;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(R){return m.call(this,R)?!0:this!==x?!1:R&&R._writableState instanceof h}})):m=function(R){return R instanceof this};function x(R){if(r=r||_t(),!m.call(x,this)&&!(this instanceof r))return new x(R);this._writableState=new h(R,this),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),u.call(this)}x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y(R,O){var N=new Error("write after end");R.emit("error",N),e.nextTick(O,N)}function g(R,O,N,G){var J=!0,Z=!1;return N===null?Z=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!O.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z&&(R.emit("error",Z),e.nextTick(G,Z),J=!1),J}x.prototype.write=function(R,O,N){var G=this._writableState,J=!1,Z=!G.objectMode&&c(R);return Z&&!a.isBuffer(R)&&(R=o(R)),typeof O=="function"&&(N=O,O=null),Z?O="buffer":O||(O=G.defaultEncoding),typeof N!="function"&&(N=d),G.ended?y(this,N):(Z||g(this,G,R,N))&&(G.pendingcb++,J=b(this,G,Z,R,O,N)),J},x.prototype.cork=function(){var R=this._writableState;R.corked++},x.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&A(this,R))},x.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function v(R,O,N){return!R.objectMode&&R.decodeStrings!==!1&&typeof O=="string"&&(O=a.from(O,N)),O}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(R,O,N,G,J,Z){if(!N){var $=v(O,G,J);G!==$&&(N=!0,J="buffer",G=$)}var M=O.objectMode?1:G.length;O.length+=M;var U=O.length<O.highWaterMark;if(U||(O.needDrain=!0),O.writing||O.corked){var q=O.lastBufferedRequest;O.lastBufferedRequest={chunk:G,encoding:J,isBuf:N,callback:Z,next:null},q?q.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else E(R,O,!1,M,G,J,Z);return U}function E(R,O,N,G,J,Z,$){O.writelen=G,O.writecb=$,O.writing=!0,O.sync=!0,N?R._writev(J,O.onwrite):R._write(J,Z,O.onwrite),O.sync=!1}function D(R,O,N,G,J){--O.pendingcb,N?(e.nextTick(J,G),e.nextTick(L,R,O),R._writableState.errorEmitted=!0,R.emit("error",G)):(J(G),R._writableState.errorEmitted=!0,R.emit("error",G),L(R,O))}function w(R){R.writing=!1,R.writecb=null,R.length-=R.writelen,R.writelen=0}function p(R,O){var N=R._writableState,G=N.sync,J=N.writecb;if(w(N),O)D(R,N,G,O,J);else{var Z=j(N);!Z&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&A(R,N),G?t(C,R,N,Z,J):C(R,N,Z,J)}}function C(R,O,N,G){N||S(R,O),O.pendingcb--,G(),L(R,O)}function S(R,O){O.length===0&&O.needDrain&&(O.needDrain=!1,R.emit("drain"))}function A(R,O){O.bufferProcessing=!0;var N=O.bufferedRequest;if(R._writev&&N&&N.next){var G=O.bufferedRequestCount,J=new Array(G),Z=O.corkedRequestsFree;Z.entry=N;for(var $=0,M=!0;N;)J[$]=N,N.isBuf||(M=!1),N=N.next,$+=1;J.allBuffers=M,E(R,O,!0,O.length,J,"",Z.finish),O.pendingcb++,O.lastBufferedRequest=null,Z.next?(O.corkedRequestsFree=Z.next,Z.next=null):O.corkedRequestsFree=new n(O),O.bufferedRequestCount=0}else{for(;N;){var U=N.chunk,q=N.encoding,P=N.callback,k=O.objectMode?1:U.length;if(E(R,O,!1,k,U,q,P),N=N.next,O.bufferedRequestCount--,O.writing)break}N===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=N,O.bufferProcessing=!1}x.prototype._write=function(R,O,N){N(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(R,O,N){var G=this._writableState;typeof R=="function"?(N=R,R=null,O=null):typeof O=="function"&&(N=O,O=null),R!=null&&this.write(R,O),G.corked&&(G.corked=1,this.uncork()),G.ending||F(this,G,N)};function j(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function V(R,O){R._final(function(N){O.pendingcb--,N&&R.emit("error",N),O.prefinished=!0,R.emit("prefinish"),L(R,O)})}function z(R,O){!O.prefinished&&!O.finalCalled&&(typeof R._final=="function"?(O.pendingcb++,O.finalCalled=!0,e.nextTick(V,R,O)):(O.prefinished=!0,R.emit("prefinish")))}function L(R,O){var N=j(O);return N&&(z(R,O),O.pendingcb===0&&(O.finished=!0,R.emit("finish"))),N}function F(R,O,N){O.ending=!0,L(R,O),N&&(O.finished?e.nextTick(N):R.once("finish",N)),O.ended=!0,R.writable=!1}function W(R,O,N){var G=R.entry;for(R.entry=null;G;){var J=G.callback;O.pendingcb--,J(N),G=G.next}O.corkedRequestsFree.next=R}return Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(R,O){this.end(),O(R)},Gn}var Wn,fs;function _t(){if(fs)return Wn;fs=1;var e=un(),n=Object.keys||function(l){var d=[];for(var h in l)d.push(h);return d};Wn=f;var t=Object.create(Sr());t.inherits=Pe();var r=qc(),i=Fc();t.inherits(f,r);for(var s=n(i.prototype),u=0;u<s.length;u++){var a=s[u];f.prototype[a]||(f.prototype[a]=i.prototype[a])}function f(l){if(!(this instanceof f))return new f(l);r.call(this,l),i.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||e.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),f.prototype._destroy=function(l,d){this.push(null),this.end(),e.nextTick(d,l)},Wn}var Vn={},Mr={exports:{}},ls;function E2(){return ls||(ls=1,function(e,n){var t=wt(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Mr,Mr.exports)),Mr.exports}var ds;function hs(){if(ds)return Vn;ds=1;var e=E2().Buffer,n=e.isEncoding||function(g){switch(g=""+g,g&&g.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 t(g){if(!g)return"utf8";for(var v;;)switch(g){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 g;default:if(v)return;g=(""+g).toLowerCase(),v=!0}}function r(g){var v=t(g);if(typeof v!="string"&&(e.isEncoding===n||!n(g)))throw new Error("Unknown encoding: "+g);return v||g}Vn.StringDecoder=i;function i(g){this.encoding=r(g);var v;switch(this.encoding){case"utf16le":this.text=l,this.end=d,v=4;break;case"utf8":this.fillLast=f,v=4;break;case"base64":this.text=h,this.end=m,v=3;break;default:this.write=x,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(v)}i.prototype.write=function(g){if(g.length===0)return"";var v,b;if(this.lastNeed){if(v=this.fillLast(g),v===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<g.length?v?v+this.text(g,b):this.text(g,b):v||""},i.prototype.end=c,i.prototype.text=o,i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function s(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function u(g,v,b){var E=v.length-1;if(E<b)return 0;var D=s(v[E]);return D>=0?(D>0&&(g.lastNeed=D-1),D):--E<b||D===-2?0:(D=s(v[E]),D>=0?(D>0&&(g.lastNeed=D-2),D):--E<b||D===-2?0:(D=s(v[E]),D>=0?(D>0&&(D===2?D=0:g.lastNeed=D-3),D):0))}function a(g,v,b){if((v[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return g.lastNeed=2,"�"}}function f(g){var v=this.lastTotal-this.lastNeed,b=a(this,g);if(b!==void 0)return b;if(this.lastNeed<=g.length)return g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,v,0,g.length),this.lastNeed-=g.length}function o(g,v){var b=u(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=b;var E=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,E),g.toString("utf8",v,E)}function c(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+"�":v}function l(g,v){if((g.length-v)%2===0){var b=g.toString("utf16le",v);if(b){var E=b.charCodeAt(b.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function d(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function h(g,v){var b=(g.length-v)%3;return b===0?g.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-b))}function m(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function x(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}return Vn}var Yn,ps;function qc(){if(ps)return Yn;ps=1;var e=un();Yn=v;var n=B2(),t;v.ReadableState=g,fa().EventEmitter;var r=function(P,k){return P.listeners(k).length},i=jc(),s=ya().Buffer,u=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(P){return s.from(P)}function f(P){return s.isBuffer(P)||P instanceof u}var o=Object.create(Sr());o.inherits=Pe();var c=la,l=void 0;c&&c.debuglog?l=c.debuglog("stream"):l=function(){};var d=w2(),h=Nc(),m;o.inherits(v,i);var x=["error","close","destroy","pause","resume"];function y(P,k,H){if(typeof P.prependListener=="function")return P.prependListener(k,H);!P._events||!P._events[k]?P.on(k,H):n(P._events[k])?P._events[k].unshift(H):P._events[k]=[H,P._events[k]]}function g(P,k){t=t||_t(),P=P||{};var H=k instanceof t;this.objectMode=!!P.objectMode,H&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var Y=P.highWaterMark,ne=P.readableHighWaterMark,re=this.objectMode?16:16*1024;Y||Y===0?this.highWaterMark=Y:H&&(ne||ne===0)?this.highWaterMark=ne:this.highWaterMark=re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(m||(m=hs().StringDecoder),this.decoder=new m(P.encoding),this.encoding=P.encoding)}function v(P){if(t=t||_t(),!(this instanceof v))return new v(P);this._readableState=new g(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),i.call(this)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),v.prototype.destroy=h.destroy,v.prototype._undestroy=h.undestroy,v.prototype._destroy=function(P,k){this.push(null),k(P)},v.prototype.push=function(P,k){var H=this._readableState,Y;return H.objectMode?Y=!0:typeof P=="string"&&(k=k||H.defaultEncoding,k!==H.encoding&&(P=s.from(P,k),k=""),Y=!0),b(this,P,k,!1,Y)},v.prototype.unshift=function(P){return b(this,P,null,!0,!1)};function b(P,k,H,Y,ne){var re=P._readableState;if(k===null)re.reading=!1,A(P,re);else{var oe;ne||(oe=D(re,k)),oe?P.emit("error",oe):re.objectMode||k&&k.length>0?(typeof k!="string"&&!re.objectMode&&Object.getPrototypeOf(k)!==s.prototype&&(k=a(k)),Y?re.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):E(P,re,k,!0):re.ended?P.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!H?(k=re.decoder.write(k),re.objectMode||k.length!==0?E(P,re,k,!1):z(P,re)):E(P,re,k,!1))):Y||(re.reading=!1)}return w(re)}function E(P,k,H,Y){k.flowing&&k.length===0&&!k.sync?(P.emit("data",H),P.read(0)):(k.length+=k.objectMode?1:H.length,Y?k.buffer.unshift(H):k.buffer.push(H),k.needReadable&&j(P)),z(P,k)}function D(P,k){var H;return!f(k)&&typeof k!="string"&&k!==void 0&&!P.objectMode&&(H=new TypeError("Invalid non-string/buffer chunk")),H}function w(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}v.prototype.isPaused=function(){return this._readableState.flowing===!1},v.prototype.setEncoding=function(P){return m||(m=hs().StringDecoder),this._readableState.decoder=new m(P),this._readableState.encoding=P,this};var p=8388608;function C(P){return P>=p?P=p:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function S(P,k){return P<=0||k.length===0&&k.ended?0:k.objectMode?1:P!==P?k.flowing&&k.length?k.buffer.head.data.length:k.length:(P>k.highWaterMark&&(k.highWaterMark=C(P)),P<=k.length?P:k.ended?k.length:(k.needReadable=!0,0))}v.prototype.read=function(P){l("read",P),P=parseInt(P,10);var k=this._readableState,H=P;if(P!==0&&(k.emittedReadable=!1),P===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return l("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?M(this):j(this),null;if(P=S(P,k),P===0&&k.ended)return k.length===0&&M(this),null;var Y=k.needReadable;l("need readable",Y),(k.length===0||k.length-P<k.highWaterMark)&&(Y=!0,l("length less than watermark",Y)),k.ended||k.reading?(Y=!1,l("reading or ended",Y)):Y&&(l("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(P=S(H,k)));var ne;return P>0?ne=G(P,k):ne=null,ne===null?(k.needReadable=!0,P=0):k.length-=P,k.length===0&&(k.ended||(k.needReadable=!0),H!==P&&k.ended&&M(this)),ne!==null&&this.emit("data",ne),ne};function A(P,k){if(!k.ended){if(k.decoder){var H=k.decoder.end();H&&H.length&&(k.buffer.push(H),k.length+=k.objectMode?1:H.length)}k.ended=!0,j(P)}}function j(P){var k=P._readableState;k.needReadable=!1,k.emittedReadable||(l("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?e.nextTick(V,P):V(P))}function V(P){l("emit readable"),P.emit("readable"),N(P)}function z(P,k){k.readingMore||(k.readingMore=!0,e.nextTick(L,P,k))}function L(P,k){for(var H=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(l("maybeReadMore read 0"),P.read(0),H!==k.length);)H=k.length;k.readingMore=!1}v.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(P,k){var H=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=P;break;case 1:Y.pipes=[Y.pipes,P];break;default:Y.pipes.push(P);break}Y.pipesCount+=1,l("pipe count=%d opts=%j",Y.pipesCount,k);var ne=(!k||k.end!==!1)&&P!==process.stdout&&P!==process.stderr,re=ne?fe:ce;Y.endEmitted?e.nextTick(re):H.once("end",re),P.on("unpipe",oe);function oe(K,Q){l("onunpipe"),K===H&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,_())}function fe(){l("onend"),P.end()}var he=F(H);P.on("drain",he);var I=!1;function _(){l("cleanup"),P.removeListener("close",ee),P.removeListener("finish",te),P.removeListener("drain",he),P.removeListener("error",X),P.removeListener("unpipe",oe),H.removeListener("end",fe),H.removeListener("end",ce),H.removeListener("data",T),I=!0,Y.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&he()}var B=!1;H.on("data",T);function T(K){l("ondata"),B=!1;var Q=P.write(K);Q===!1&&!B&&((Y.pipesCount===1&&Y.pipes===P||Y.pipesCount>1&&q(Y.pipes,P)!==-1)&&!I&&(l("false write response, pause",Y.awaitDrain),Y.awaitDrain++,B=!0),H.pause())}function X(K){l("onerror",K),ce(),P.removeListener("error",X),r(P,"error")===0&&P.emit("error",K)}y(P,"error",X);function ee(){P.removeListener("finish",te),ce()}P.once("close",ee);function te(){l("onfinish"),P.removeListener("close",ee),ce()}P.once("finish",te);function ce(){l("unpipe"),H.unpipe(P)}return P.emit("pipe",H),Y.flowing||(l("pipe resume"),H.resume()),P};function F(P){return function(){var k=P._readableState;l("pipeOnDrain",k.awaitDrain),k.awaitDrain&&k.awaitDrain--,k.awaitDrain===0&&r(P,"data")&&(k.flowing=!0,N(P))}}v.prototype.unpipe=function(P){var k=this._readableState,H={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return P&&P!==k.pipes?this:(P||(P=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,P&&P.emit("unpipe",this,H),this);if(!P){var Y=k.pipes,ne=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var re=0;re<ne;re++)Y[re].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=q(k.pipes,P);return oe===-1?this:(k.pipes.splice(oe,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),P.emit("unpipe",this,H),this)},v.prototype.on=function(P,k){var H=i.prototype.on.call(this,P,k);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var Y=this._readableState;!Y.endEmitted&&!Y.readableListening&&(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&j(this):e.nextTick(W,this))}return H},v.prototype.addListener=v.prototype.on;function W(P){l("readable nexttick read 0"),P.read(0)}v.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!0,R(this,P)),this};function R(P,k){k.resumeScheduled||(k.resumeScheduled=!0,e.nextTick(O,P,k))}function O(P,k){k.reading||(l("resume read 0"),P.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,P.emit("resume"),N(P),k.flowing&&!k.reading&&P.read(0)}v.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(P){var k=P._readableState;for(l("flow",k.flowing);k.flowing&&P.read()!==null;);}v.prototype.wrap=function(P){var k=this,H=this._readableState,Y=!1;P.on("end",function(){if(l("wrapped end"),H.decoder&&!H.ended){var oe=H.decoder.end();oe&&oe.length&&k.push(oe)}k.push(null)}),P.on("data",function(oe){if(l("wrapped data"),H.decoder&&(oe=H.decoder.write(oe)),!(H.objectMode&&oe==null)&&!(!H.objectMode&&(!oe||!oe.length))){var fe=k.push(oe);fe||(Y=!0,P.pause())}});for(var ne in P)this[ne]===void 0&&typeof P[ne]=="function"&&(this[ne]=function(oe){return function(){return P[oe].apply(P,arguments)}}(ne));for(var re=0;re<x.length;re++)P.on(x[re],this.emit.bind(this,x[re]));return this._read=function(oe){l("wrapped _read",oe),Y&&(Y=!1,P.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=G;function G(P,k){if(k.length===0)return null;var H;return k.objectMode?H=k.buffer.shift():!P||P>=k.length?(k.decoder?H=k.buffer.join(""):k.buffer.length===1?H=k.buffer.head.data:H=k.buffer.concat(k.length),k.buffer.clear()):H=J(P,k.buffer,k.decoder),H}function J(P,k,H){var Y;return P<k.head.data.length?(Y=k.head.data.slice(0,P),k.head.data=k.head.data.slice(P)):P===k.head.data.length?Y=k.shift():Y=H?Z(P,k):$(P,k),Y}function Z(P,k){var H=k.head,Y=1,ne=H.data;for(P-=ne.length;H=H.next;){var re=H.data,oe=P>re.length?re.length:P;if(oe===re.length?ne+=re:ne+=re.slice(0,P),P-=oe,P===0){oe===re.length?(++Y,H.next?k.head=H.next:k.head=k.tail=null):(k.head=H,H.data=re.slice(oe));break}++Y}return k.length-=Y,ne}function $(P,k){var H=s.allocUnsafe(P),Y=k.head,ne=1;for(Y.data.copy(H),P-=Y.data.length;Y=Y.next;){var re=Y.data,oe=P>re.length?re.length:P;if(re.copy(H,H.length-P,0,oe),P-=oe,P===0){oe===re.length?(++ne,Y.next?k.head=Y.next:k.head=k.tail=null):(k.head=Y,Y.data=re.slice(oe));break}++ne}return k.length-=ne,H}function M(P){var k=P._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,e.nextTick(U,k,P))}function U(P,k){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,k.readable=!1,k.emit("end"))}function q(P,k){for(var H=0,Y=P.length;H<Y;H++)if(P[H]===k)return H;return-1}return Yn}var Xn,gs;function $c(){if(gs)return Xn;gs=1,Xn=r;var e=_t(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(r,e);function t(u,a){var f=this._transformState;f.transforming=!1;var o=f.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,a!=null&&this.push(a),o(u);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function r(u){if(!(this instanceof r))return new r(u);e.call(this,u),this._transformState={afterTransform:t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",i)}function i(){var u=this;typeof this._flush=="function"?this._flush(function(a,f){s(u,a,f)}):s(this,null,null)}r.prototype.push=function(u,a){return this._transformState.needTransform=!1,e.prototype.push.call(this,u,a)},r.prototype._transform=function(u,a,f){throw new Error("_transform() is not implemented")},r.prototype._write=function(u,a,f){var o=this._transformState;if(o.writecb=f,o.writechunk=u,o.writeencoding=a,!o.transforming){var c=this._readableState;(o.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},r.prototype._read=function(u){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},r.prototype._destroy=function(u,a){var f=this;e.prototype._destroy.call(this,u,function(o){a(o),f.emit("close")})};function s(u,a,f){if(a)return u.emit("error",a);if(f!=null&&u.push(f),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}return Xn}var Qn,ys;function P2(){if(ys)return Qn;ys=1,Qn=t;var e=$c(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,s){s(null,r)},Qn}var ms;function k2(){return ms||(ms=1,function(e,n){n=e.exports=qc(),n.Stream=n,n.Readable=n,n.Writable=Fc(),n.Duplex=_t(),n.Transform=$c(),n.PassThrough=P2()}(Dr,Dr.exports)),Dr.exports}var Jn,vs;function Hc(){if(vs)return Jn;vs=1;var e=$e().Buffer,n=_2(),t=k2().Transform,r=Pe();function i(s){t.call(this),this._block=e.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(i,t),i.prototype._transform=function(s,u,a){var f=null;try{this.update(s,u)}catch(o){f=o}a(f)},i.prototype._flush=function(s){var u=null;try{this.push(this.digest())}catch(a){u=a}s(u)},i.prototype.update=function(s,u){if(this._finalized)throw new Error("Digest already called");for(var a=n(s,u),f=this._block,o=0;this._blockOffset+a.length-o>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)f[c]=a[o],c+=1,o+=1;this._update(),this._blockOffset=0}for(;o<a.length;)f[this._blockOffset]=a[o],this._blockOffset+=1,o+=1;for(var l=0,d=a.length*8;d>0;++l)this._length[l]+=d,d=this._length[l]/4294967296|0,d>0&&(this._length[l]-=4294967296*d);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();s!==void 0&&(u=u.toString(s)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return u},i.prototype._digest=function(){throw new Error("_digest is not implemented")},Jn=i,Jn}var Zn,xs;function T2(){if(xs)return Zn;xs=1;var e=Pe(),n=Hc(),t=$e().Buffer,r=new Array(16);function i(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(i,n),i.prototype._update=function(){for(var c=r,l=0;l<16;++l)c[l]=this._block.readInt32LE(l*4);var d=this._a,h=this._b,m=this._c,x=this._d;d=u(d,h,m,x,c[0],3614090360,7),x=u(x,d,h,m,c[1],3905402710,12),m=u(m,x,d,h,c[2],606105819,17),h=u(h,m,x,d,c[3],3250441966,22),d=u(d,h,m,x,c[4],4118548399,7),x=u(x,d,h,m,c[5],1200080426,12),m=u(m,x,d,h,c[6],2821735955,17),h=u(h,m,x,d,c[7],4249261313,22),d=u(d,h,m,x,c[8],1770035416,7),x=u(x,d,h,m,c[9],2336552879,12),m=u(m,x,d,h,c[10],4294925233,17),h=u(h,m,x,d,c[11],2304563134,22),d=u(d,h,m,x,c[12],1804603682,7),x=u(x,d,h,m,c[13],4254626195,12),m=u(m,x,d,h,c[14],2792965006,17),h=u(h,m,x,d,c[15],1236535329,22),d=a(d,h,m,x,c[1],4129170786,5),x=a(x,d,h,m,c[6],3225465664,9),m=a(m,x,d,h,c[11],643717713,14),h=a(h,m,x,d,c[0],3921069994,20),d=a(d,h,m,x,c[5],3593408605,5),x=a(x,d,h,m,c[10],38016083,9),m=a(m,x,d,h,c[15],3634488961,14),h=a(h,m,x,d,c[4],3889429448,20),d=a(d,h,m,x,c[9],568446438,5),x=a(x,d,h,m,c[14],3275163606,9),m=a(m,x,d,h,c[3],4107603335,14),h=a(h,m,x,d,c[8],1163531501,20),d=a(d,h,m,x,c[13],2850285829,5),x=a(x,d,h,m,c[2],4243563512,9),m=a(m,x,d,h,c[7],1735328473,14),h=a(h,m,x,d,c[12],2368359562,20),d=f(d,h,m,x,c[5],4294588738,4),x=f(x,d,h,m,c[8],2272392833,11),m=f(m,x,d,h,c[11],1839030562,16),h=f(h,m,x,d,c[14],4259657740,23),d=f(d,h,m,x,c[1],2763975236,4),x=f(x,d,h,m,c[4],1272893353,11),m=f(m,x,d,h,c[7],4139469664,16),h=f(h,m,x,d,c[10],3200236656,23),d=f(d,h,m,x,c[13],681279174,4),x=f(x,d,h,m,c[0],3936430074,11),m=f(m,x,d,h,c[3],3572445317,16),h=f(h,m,x,d,c[6],76029189,23),d=f(d,h,m,x,c[9],3654602809,4),x=f(x,d,h,m,c[12],3873151461,11),m=f(m,x,d,h,c[15],530742520,16),h=f(h,m,x,d,c[2],3299628645,23),d=o(d,h,m,x,c[0],4096336452,6),x=o(x,d,h,m,c[7],1126891415,10),m=o(m,x,d,h,c[14],2878612391,15),h=o(h,m,x,d,c[5],4237533241,21),d=o(d,h,m,x,c[12],1700485571,6),x=o(x,d,h,m,c[3],2399980690,10),m=o(m,x,d,h,c[10],4293915773,15),h=o(h,m,x,d,c[1],2240044497,21),d=o(d,h,m,x,c[8],1873313359,6),x=o(x,d,h,m,c[15],4264355552,10),m=o(m,x,d,h,c[6],2734768916,15),h=o(h,m,x,d,c[13],1309151649,21),d=o(d,h,m,x,c[4],4149444226,6),x=o(x,d,h,m,c[11],3174756917,10),m=o(m,x,d,h,c[2],718787259,15),h=o(h,m,x,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+h|0,this._c=this._c+m|0,this._d=this._d+x|0},i.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 c=t.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function s(c,l){return c<<l|c>>>32-l}function u(c,l,d,h,m,x,y){return s(c+(l&d|~l&h)+m+x|0,y)+l|0}function a(c,l,d,h,m,x,y){return s(c+(l&h|d&~h)+m+x|0,y)+l|0}function f(c,l,d,h,m,x,y){return s(c+(l^d^h)+m+x|0,y)+l|0}function o(c,l,d,h,m,x,y){return s(c+(d^(l|~h))+m+x|0,y)+l|0}return Zn=i,Zn}var ei,bs;function R2(){if(bs)return ei;bs=1;var e=wt().Buffer,n=Pe(),t=Hc(),r=new Array(16),i=[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],s=[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],a=[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],f=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function c(g,v){return g<<v|g>>>32-v}function l(g,v,b,E,D,w,p,C){return c(g+(v^b^E)+w+p|0,C)+D|0}function d(g,v,b,E,D,w,p,C){return c(g+(v&b|~v&E)+w+p|0,C)+D|0}function h(g,v,b,E,D,w,p,C){return c(g+((v|~b)^E)+w+p|0,C)+D|0}function m(g,v,b,E,D,w,p,C){return c(g+(v&E|b&~E)+w+p|0,C)+D|0}function x(g,v,b,E,D,w,p,C){return c(g+(v^(b|~E))+w+p|0,C)+D|0}function y(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return n(y,t),y.prototype._update=function(){for(var g=r,v=0;v<16;++v)g[v]=this._block.readInt32LE(v*4);for(var b=this._a|0,E=this._b|0,D=this._c|0,w=this._d|0,p=this._e|0,C=this._a|0,S=this._b|0,A=this._c|0,j=this._d|0,V=this._e|0,z=0;z<80;z+=1){var L,F;z<16?(L=l(b,E,D,w,p,g[i[z]],f[0],u[z]),F=x(C,S,A,j,V,g[s[z]],o[0],a[z])):z<32?(L=d(b,E,D,w,p,g[i[z]],f[1],u[z]),F=m(C,S,A,j,V,g[s[z]],o[1],a[z])):z<48?(L=h(b,E,D,w,p,g[i[z]],f[2],u[z]),F=h(C,S,A,j,V,g[s[z]],o[2],a[z])):z<64?(L=m(b,E,D,w,p,g[i[z]],f[3],u[z]),F=d(C,S,A,j,V,g[s[z]],o[3],a[z])):(L=x(b,E,D,w,p,g[i[z]],f[4],u[z]),F=l(C,S,A,j,V,g[s[z]],o[4],a[z])),b=p,p=w,w=c(D,10),D=E,E=L,C=V,V=j,j=c(A,10),A=S,S=F}var W=this._b+D+j|0;this._b=this._c+w+V|0,this._c=this._d+p+C|0,this._d=this._e+b+S|0,this._e=this._a+E+A|0,this._a=W},y.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 g=e.alloc?e.alloc(20):new e(20);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g.writeInt32LE(this._e,16),g},ei=y,ei}var ti={exports:{}},ri,Cs;function Pt(){if(Cs)return ri;Cs=1;var e=$e().Buffer,n=ga();function t(r,i){this._block=e.alloc(r),this._finalSize=i,this._blockSize=r,this._len=0}return t.prototype.update=function(r,i){r=n(r,i||"utf8");for(var s=this._block,u=this._blockSize,a=r.length,f=this._len,o=0;o<a;){for(var c=f%u,l=Math.min(a-o,u-c),d=0;d<l;d++)s[c+d]=r[o+d];f+=l,o+=l,f%u===0&&this._update(s)}return this._len+=a,this},t.prototype.digest=function(r){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var u=(s&4294967295)>>>0,a=(s-u)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var f=this._hash();return r?f.toString(r):f},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ri=t,ri}var ni,_s;function I2(){if(_s)return ni;_s=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(o){return o<<5|o>>>27}function a(o){return o<<30|o>>>2}function f(o,c,l,d){return o===0?c&l|~c&d:o===2?c&l|c&d|l&d:c^l^d}return s.prototype._update=function(o){for(var c=this._w,l=this._a|0,d=this._b|0,h=this._c|0,m=this._d|0,x=this._e|0,y=0;y<16;++y)c[y]=o.readInt32BE(y*4);for(;y<80;++y)c[y]=c[y-3]^c[y-8]^c[y-14]^c[y-16];for(var g=0;g<80;++g){var v=~~(g/20),b=u(l)+f(v,d,h,m)+x+c[g]+r[v]|0;x=m,m=h,h=a(d),d=l,l=b}this._a=l+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=m+this._d|0,this._e=x+this._e|0},s.prototype._hash=function(){var o=t.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},ni=s,ni}var ii,Bs;function D2(){if(Bs)return ii;Bs=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(c){return c<<1|c>>>31}function a(c){return c<<5|c>>>27}function f(c){return c<<30|c>>>2}function o(c,l,d,h){return c===0?l&d|~l&h:c===2?l&d|l&h|d&h:l^d^h}return s.prototype._update=function(c){for(var l=this._w,d=this._a|0,h=this._b|0,m=this._c|0,x=this._d|0,y=this._e|0,g=0;g<16;++g)l[g]=c.readInt32BE(g*4);for(;g<80;++g)l[g]=u(l[g-3]^l[g-8]^l[g-14]^l[g-16]);for(var v=0;v<80;++v){var b=~~(v/20),E=a(d)+o(b,h,m,x)+y+l[v]+r[b]|0;y=x,x=m,m=f(h),h=d,d=E}this._a=d+this._a|0,this._b=h+this._b|0,this._c=m+this._c|0,this._d=x+this._d|0,this._e=y+this._e|0},s.prototype._hash=function(){var c=t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},ii=s,ii}var oi,ws;function Kc(){if(ws)return oi;ws=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[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],i=new Array(64);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.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};function u(d,h,m){return m^d&(h^m)}function a(d,h,m){return d&h|m&(d|h)}function f(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function o(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function c(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}function l(d){return(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10}return s.prototype._update=function(d){for(var h=this._w,m=this._a|0,x=this._b|0,y=this._c|0,g=this._d|0,v=this._e|0,b=this._f|0,E=this._g|0,D=this._h|0,w=0;w<16;++w)h[w]=d.readInt32BE(w*4);for(;w<64;++w)h[w]=l(h[w-2])+h[w-7]+c(h[w-15])+h[w-16]|0;for(var p=0;p<64;++p){var C=D+o(v)+u(v,b,E)+r[p]+h[p]|0,S=f(m)+a(m,x,y)|0;D=E,E=b,b=v,v=g+C|0,g=y,y=x,x=m,m=C+S|0}this._a=m+this._a|0,this._b=x+this._b|0,this._c=y+this._c|0,this._d=g+this._d|0,this._e=v+this._e|0,this._f=b+this._f|0,this._g=E+this._g|0,this._h=D+this._h|0},s.prototype._hash=function(){var d=t.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d},oi=s,oi}var ai,Ss;function O2(){if(Ss)return ai;Ss=1;var e=Pe(),n=Kc(),t=Pt(),r=$e().Buffer,i=new Array(64);function s(){this.init(),this._w=i,t.call(this,64,56)}return e(s,n),s.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},s.prototype._hash=function(){var u=r.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},ai=s,ai}var si,Es;function zc(){if(Es)return si;Es=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[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],i=new Array(160);function s(){this.init(),this._w=i,n.call(this,128,112)}e(s,n),s.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};function u(x,y,g){return g^x&(y^g)}function a(x,y,g){return x&y|g&(x|y)}function f(x,y){return(x>>>28|y<<4)^(y>>>2|x<<30)^(y>>>7|x<<25)}function o(x,y){return(x>>>14|y<<18)^(x>>>18|y<<14)^(y>>>9|x<<23)}function c(x,y){return(x>>>1|y<<31)^(x>>>8|y<<24)^x>>>7}function l(x,y){return(x>>>1|y<<31)^(x>>>8|y<<24)^(x>>>7|y<<25)}function d(x,y){return(x>>>19|y<<13)^(y>>>29|x<<3)^x>>>6}function h(x,y){return(x>>>19|y<<13)^(y>>>29|x<<3)^(x>>>6|y<<26)}function m(x,y){return x>>>0<y>>>0?1:0}return s.prototype._update=function(x){for(var y=this._w,g=this._ah|0,v=this._bh|0,b=this._ch|0,E=this._dh|0,D=this._eh|0,w=this._fh|0,p=this._gh|0,C=this._hh|0,S=this._al|0,A=this._bl|0,j=this._cl|0,V=this._dl|0,z=this._el|0,L=this._fl|0,F=this._gl|0,W=this._hl|0,R=0;R<32;R+=2)y[R]=x.readInt32BE(R*4),y[R+1]=x.readInt32BE(R*4+4);for(;R<160;R+=2){var O=y[R-30],N=y[R-30+1],G=c(O,N),J=l(N,O);O=y[R-4],N=y[R-4+1];var Z=d(O,N),$=h(N,O),M=y[R-14],U=y[R-14+1],q=y[R-32],P=y[R-32+1],k=J+U|0,H=G+M+m(k,J)|0;k=k+$|0,H=H+Z+m(k,$)|0,k=k+P|0,H=H+q+m(k,P)|0,y[R]=H,y[R+1]=k}for(var Y=0;Y<160;Y+=2){H=y[Y],k=y[Y+1];var ne=a(g,v,b),re=a(S,A,j),oe=f(g,S),fe=f(S,g),he=o(D,z),I=o(z,D),_=r[Y],B=r[Y+1],T=u(D,w,p),X=u(z,L,F),ee=W+I|0,te=C+he+m(ee,W)|0;ee=ee+X|0,te=te+T+m(ee,X)|0,ee=ee+B|0,te=te+_+m(ee,B)|0,ee=ee+k|0,te=te+H+m(ee,k)|0;var ce=fe+re|0,K=oe+ne+m(ce,fe)|0;C=p,W=F,p=w,F=L,w=D,L=z,z=V+ee|0,D=E+te+m(z,V)|0,E=b,V=j,b=v,j=A,v=g,A=S,S=ee+ce|0,g=te+K+m(S,ee)|0}this._al=this._al+S|0,this._bl=this._bl+A|0,this._cl=this._cl+j|0,this._dl=this._dl+V|0,this._el=this._el+z|0,this._fl=this._fl+L|0,this._gl=this._gl+F|0,this._hl=this._hl+W|0,this._ah=this._ah+g+m(this._al,S)|0,this._bh=this._bh+v+m(this._bl,A)|0,this._ch=this._ch+b+m(this._cl,j)|0,this._dh=this._dh+E+m(this._dl,V)|0,this._eh=this._eh+D+m(this._el,z)|0,this._fh=this._fh+w+m(this._fl,L)|0,this._gh=this._gh+p+m(this._gl,F)|0,this._hh=this._hh+C+m(this._hl,W)|0},s.prototype._hash=function(){var x=t.allocUnsafe(64);function y(g,v,b){x.writeInt32BE(g,b),x.writeInt32BE(v,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),x},si=s,si}var ci,Ps;function A2(){if(Ps)return ci;Ps=1;var e=Pe(),n=zc(),t=Pt(),r=$e().Buffer,i=new Array(160);function s(){this.init(),this._w=i,t.call(this,128,112)}return e(s,n),s.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},s.prototype._hash=function(){var u=r.allocUnsafe(48);function a(f,o,c){u.writeInt32BE(f,c),u.writeInt32BE(o,c+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),u},ci=s,ci}var ks;function Gc(){return ks||(ks=1,function(e){e.exports=function(t){var r=t.toLowerCase(),i=e.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i},e.exports.sha=I2(),e.exports.sha1=D2(),e.exports.sha224=O2(),e.exports.sha256=Kc(),e.exports.sha384=A2(),e.exports.sha512=zc()}(ti)),ti.exports}var ui,Ts;function M2(){if(Ts)return ui;Ts=1;var e=$e().Buffer,n=la.Transform,t=f2().StringDecoder,r=Pe(),i=ga();function s(u){n.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(s,n),s.prototype.update=function(u,a,f){var o=i(u,a),c=this._update(o);return this.hashMode?this:(f&&(c=this._toString(c,f)),c)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(u,a,f){var o;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(c){o=c}finally{f(o)}},s.prototype._flush=function(u){var a;try{this.push(this.__final())}catch(f){a=f}u(a)},s.prototype._finalOrDigest=function(u){var a=this.__final()||e.alloc(0);return u&&(a=this._toString(a,u,!0)),a},s.prototype._toString=function(u,a,f){if(this._decoder||(this._decoder=new t(a),this._encoding=a),this._encoding!==a)throw new Error("can’t switch encodings");var o=this._decoder.write(u);return f&&(o+=this._decoder.end()),o},ui=s,ui}var fi,Rs;function U2(){if(Rs)return fi;Rs=1;var e=Pe(),n=T2(),t=R2(),r=Gc(),i=M2();function s(u){i.call(this,"digest"),this._hash=u}return e(s,i),s.prototype._update=function(u){this._hash.update(u)},s.prototype._final=function(){return this._hash.digest()},fi=function(a){return a=a.toLowerCase(),a==="md5"?new n:a==="rmd160"||a==="ripemd160"?new t:new s(r(a))},fi}var li,Is;function L2(){if(Is)return li;Is=1;var e=Jf(),n=$e().Buffer;return li=function(t){function r(a){var f=t(a);return e.encode(n.concat([a,f],a.length+4))}function i(a){var f=a.slice(0,-4),o=a.slice(-4),c=t(f);if(!(o[0]^c[0]|o[1]^c[1]|o[2]^c[2]|o[3]^c[3]))return f}function s(a){var f=e.decodeUnsafe(a);if(f)return i(f)}function u(a){var f=e.decode(a),o=i(f);if(!o)throw new Error("Invalid checksum");return o}return{encode:r,decode:u,decodeUnsafe:s}},li}var di,Ds;function Wc(){if(Ds)return di;Ds=1;var e=U2(),n=L2();function t(r){var i=e("sha256").update(r).digest();return e("sha256").update(i).digest()}return di=n(t),di}var hi={},jt={},We={},Ur={},qe={},Os;function ma(){if(Os)return qe;Os=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.InvalidChecksumError=qe.InvalidSequenceComponentError=qe.InvalidTypeError=qe.InvalidPathLengthError=qe.InvalidSchemeError=void 0;class e extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}qe.InvalidSchemeError=e;class n extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}qe.InvalidPathLengthError=n;class t extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}qe.InvalidTypeError=t;class r extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}qe.InvalidSequenceComponentError=r;class i extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}return qe.InvalidChecksumError=i,qe}var ve={},pi={};/*!
|
|
1
|
+
import{r as Qf,a as Tc}from"./bignumber-BLJFVpCv.js";import{h as $e,j as fa,k as wt,r as la,l as Pe,m as Jf,n as Zf,o as e2,p as t2,q as r2}from"./vendor-web3-CZJ1DcWo.js";import{cG as on,cH as an,cI as da,cJ as n2,cK as Rc,cL as i2,cM as o2,cN as a2,cO as s2,cP as Ic,cQ as Dc,cR as dt,cS as c2,cT as u2}from"./index-CCYW3AUY.js";import{j as it,h as St,g as Oc}from"./vendor-dayjs-CzbnksQQ.js";import{r as f2}from"./string_decoder-BDwfFX0y.js";import{r as Et}from"./index-BLy_0GNg.js";function l2(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vn={exports:{}},At={},xn={exports:{}},bn={},Cn={},_n={},Mt={},Bn={},Kr={exports:{}},Ut={},Ia;function ha(){if(Ia)return Ut;Ia=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DataItem=void 0;class e{constructor(t,r){this.setTag=i=>{this.tag=i},this.clearTag=()=>{this.tag=void 0},this.getTag=()=>this.tag,this.getData=()=>this.data,this.data=t,this.tag=r}}return Ut.DataItem=e,Ut}var d2=Kr.exports,Da;function h2(){return Da||(Da=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})(d2,function(){const{DataItem:n}=ha();var t=function(){function r(p){this.$hex=p}r.prototype={length:function(){return this.$hex.length/2},toString:function(p){if(!p||p==="hex"||p===16)return this.$hex;if(p==="utf-8"){for(var C="",S=0;S<this.$hex.length;S+=2)C+="%"+this.$hex.substring(S,S+2);return decodeURIComponent(C)}if(p==="latin"){for(var C=[],S=0;S<this.$hex.length;S+=2)C.push(parseInt(this.$hex.substring(S,S+2),16));return String.fromCharCode.apply(String,C)}throw new Error("Unrecognised format: "+p)}},r.fromLatinString=function(p){for(var C="",S=0;S<p.length;S++){var A=p.charCodeAt(S).toString(16);A.length===1&&(A="0"+A),C+=A}return new r(C)},r.fromUtf8String=function(p){for(var C=encodeURIComponent(p),S="",A=0;A<C.length;A++)if(C.charAt(A)==="%")S+=C.substring(A+1,A+3),A+=2;else{var j=C.charCodeAt(A).toString(16);j.length<2&&(j="0"+j),S+=j}return new r(S)};var i=[],s={},u=function(p){return function(){throw new Error(p+" not implemented")}};function a(){}a.prototype={peekByte:u("peekByte"),readByte:u("readByte"),readChunk:u("readChunk"),readFloat16:function(){var p=this.readUint16(),C=(p&32767)>>10,S=p&1023,A=p&32768;if(C===31)return S===0?A?-1/0:1/0:NaN;var j=C?Math.pow(2,C-25)*(1024+S):Math.pow(2,-24)*S;return A?-j:j},readFloat32:function(){var p=this.readUint32(),C=(p&2147483647)>>23,S=p&8388607,A=p&2147483648;if(C===255)return S===0?A?-1/0:1/0:NaN;var j=C?Math.pow(2,C-23-127)*(8388608+S):Math.pow(2,-149)*S;return A?-j:j},readFloat64:function(){var p=this.readUint32(),C=this.readUint32(),S=p>>20&2047,A=(p&1048575)*4294967296+C,j=p&2147483648;if(S===2047)return A===0?j?-1/0:1/0:NaN;var V=S?Math.pow(2,S-52-1023)*(4503599627370496+A):Math.pow(2,-1074)*A;return j?-V:V},readUint16:function(){return this.readByte()*256+this.readByte()},readUint32:function(){return this.readUint16()*65536+this.readUint16()},readUint64:function(){return this.readUint32()*4294967296+this.readUint32()}};function f(){}f.prototype={writeByte:u("writeByte"),result:u("result"),writeFloat16:u("writeFloat16"),writeFloat32:u("writeFloat32"),writeFloat64:u("writeFloat64"),writeUint16:function(p){this.writeByte(p>>8&255),this.writeByte(p&255)},writeUint32:function(p){this.writeUint16(p>>16&65535),this.writeUint16(p&65535)},writeUint64:function(p){if(p>=9007199254740992||p<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+p+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(p/4294967296)),this.writeUint32(p%4294967296)},writeString:u("writeString"),canWriteBinary:function(p){return!1},writeBinary:u("writeChunk")};function o(p){var C=p.readByte(),S=C>>5,A=C&31;return{type:S,value:A}}function c(p,C){var S=p.value;if(S<24)return S;if(S==24)return C.readByte();if(S==25)return C.readUint16();if(S==26)return C.readUint32();if(S==27)return C.readUint64();if(S==31)return null;u("Additional info: "+S)()}function l(p,C,S){S.writeByte(p<<5|C)}function d(p,C,S){var A=p<<5;C<24?S.writeByte(A|C):C<256?(S.writeByte(A|24),S.writeByte(C)):C<65536?(S.writeByte(A|25),S.writeUint16(C)):C<4294967296?(S.writeByte(A|26),S.writeUint32(C)):(S.writeByte(A|27),S.writeUint64(C))}var h=new Error;function m(p){var C=o(p);switch(C.type){case 0:return c(C,p);case 1:return-1-c(C,p);case 2:return p.readChunk(c(C,p));case 3:var S=p.readChunk(c(C,p));return S.toString("utf-8");case 4:case 5:var A=c(C,p),W=[];if(A!==null){C.type===5&&(A*=2);for(var j=0;j<A;j++)W[j]=m(p)}else for(var V;(V=m(p))!==h;)W.push(V);if(C.type===5){for(var z={},j=0;j<W.length;j+=2)z[W[j]]=W[j+1];return z}else return W;case 6:var L=c(C,p),F=s[L],W=m(p);return F?F(W):W;case 7:if(C.value===25)return p.readFloat16();if(C.value===26)return p.readFloat32();if(C.value===27)return p.readFloat64();switch(c(C,p)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return h;default:throw new Error("Unknown fixed value: "+C.value)}default:throw new Error("Unsupported header: "+JSON.stringify(C))}throw new Error("not implemented yet")}function x(p,C){for(var S=0;S<i.length;S++){var A=i[S].fn(p);if(A!==void 0)return d(6,i[S].tag,C),x(A,C)}if(p&&typeof p.toCBOR=="function"&&(p=p.toCBOR()),p===!1)d(7,20,C);else if(p===!0)d(7,21,C);else if(p===null)d(7,22,C);else if(p===void 0)d(7,23,C);else if(typeof p=="number")Math.floor(p)===p&&p<9007199254740992&&p>-9007199254740992?p<0?d(1,-1-p,C):d(0,p,C):(l(7,27,C),C.writeFloat64(p));else if(typeof p=="string")C.writeString(p,function(V){d(3,V,C)});else if(C.canWriteBinary(p))C.writeBinary(p,function(V){d(2,V,C)});else if(typeof p=="object")if(v.config.useToJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),Array.isArray(p)){d(4,p.length,C);for(var S=0;S<p.length;S++)x(p[S],C)}else{var j=Object.keys(p);d(5,j.length,C);for(var S=0;S<j.length;S++){const z=parseInt(j[S]);isNaN(z)?(x(j[S],C),x(p[j[S]],C)):(x(z,C),x(p[j[S]],C))}}else throw new Error("CBOR encoding not supported: "+p)}var y=[],g=[],v={config:{useToJSON:!0},addWriter:function(p,C){typeof p=="string"?g.push(function(S){if(p===S)return C(S)}):g.push(p)},addReader:function(p,C){typeof p=="string"?y.push(function(S,A){if(p===A)return C(S,A)}):y.push(p)},encode:function(p,C){for(var S=0;S<g.length;S++){var A=g[S],j=A(C);if(j)return x(p,j),j.result()}throw new Error("Unsupported output format: "+C)},encodeDataItem:function(p,C){for(var S=0;S<g.length;S++){var A=g[S],j=A(C);if(j)return p.getTag()!==void 0?(x(p,j),j.result()):(x(p.getData(),j),j.result())}throw new Error("Unsupported output format: "+C)},decode:function(p,C){for(var S=0;S<y.length;S++){var A=y[S],j=A(p,C);if(j)return m(j)}throw new Error("Unsupported input format: "+C)},decodeToDataItem:function(p,C){for(var S=0;S<y.length;S++){var A=y[S],j=A(p,C);if(j){const V=m(j);return V instanceof n?V:new n(V)}}throw new Error("Unsupported input format: "+C)},addSemanticEncode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return i.push({tag:p,fn:C}),this},addSemanticDecode:function(p,C){if(typeof p!="number"||p%1!==0||p<0)throw new Error("Tag must be a positive integer");return s[p]=C,this}};function b(p){this.buffer=p,this.pos=0}b.prototype=Object.create(a.prototype),b.prototype.peekByte=function(){return this.buffer[this.pos]},b.prototype.readByte=function(){return this.buffer[this.pos++]},b.prototype.readUint16=function(){var p=this.buffer.readUInt16BE(this.pos);return this.pos+=2,p},b.prototype.readUint32=function(){var p=this.buffer.readUInt32BE(this.pos);return this.pos+=4,p},b.prototype.readFloat32=function(){var p=this.buffer.readFloatBE(this.pos);return this.pos+=4,p},b.prototype.readFloat64=function(){var p=this.buffer.readDoubleBE(this.pos);return this.pos+=8,p},b.prototype.readChunk=function(p){var C=Buffer.alloc(p);return this.buffer.copy(C,0,this.pos,this.pos+=p),C};function E(p){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=p}E.prototype=Object.create(f.prototype),E.prototype.writeByte=function(p){this.latestBuffer[this.latestBufferOffset++]=p,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},E.prototype.writeFloat32=function(p){var C=Buffer.alloc(4);C.writeFloatBE(p,0),this.writeBuffer(C)},E.prototype.writeFloat64=function(p){var C=Buffer.alloc(8);C.writeDoubleBE(p,0),this.writeBuffer(C)},E.prototype.writeString=function(p,C){var S=Buffer.from(p,"utf-8");C(S.length),this.writeBuffer(S)},E.prototype.canWriteBinary=function(p){return p instanceof Buffer},E.prototype.writeBinary=function(p,C){C(p.length),this.writeBuffer(p)},E.prototype.writeBuffer=function(p){if(!(p instanceof Buffer))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=p.length?(p.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=p.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(p),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(p),this.byteLength+=p.length},E.prototype.result=function(){for(var p=Buffer.alloc(this.byteLength),C=0,S=0;S<this.completeBuffers.length;S++){var A=this.completeBuffers[S];A.copy(p,C,0,A.length),C+=A.length}return this.latestBufferOffset&&this.latestBuffer.copy(p,C,0,this.latestBufferOffset),this.stringFormat?p.toString(this.stringFormat):p},typeof Buffer=="function"&&(v.addReader(function(p,C){if(Buffer.isBuffer(p))return new b(p);if(C==="hex"||C==="base64"){var S=Buffer.from(p,C);return new b(S)}}),v.addWriter(function(p){if(!p||p==="buffer")return new E;if(p==="hex"||p==="base64")return new E(p)}));function D(p){this.hex=p,this.pos=0}D.prototype=Object.create(a.prototype),D.prototype.peekByte=function(){var p=this.hex.substring(this.pos,2);return parseInt(p,16)},D.prototype.readByte=function(){var p=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(p,16)},D.prototype.readChunk=function(p){var C=this.hex.substring(this.pos,this.pos+p*2);return this.pos+=p*2,typeof Buffer=="function"?Buffer.from(C,"hex"):new r(C)};function w(p){this.$hex="",this.finalFormat=p||"hex"}return w.prototype=Object.create(f.prototype),w.prototype.writeByte=function(p){if(p<0||p>255)throw new Error("Byte value out of range: "+p);var C=p.toString(16);C.length==1&&(C="0"+C),this.$hex+=C},w.prototype.canWriteBinary=function(p){return p instanceof r||typeof Buffer=="function"&&p instanceof Buffer},w.prototype.writeBinary=function(p,C){if(p instanceof r)C(p.length()),this.$hex+=p.$hex;else if(typeof Buffer=="function"&&p instanceof Buffer)C(p.length),this.$hex+=p.toString("hex");else throw new TypeError("HexWriter only accepts BinaryHex or Buffers")},w.prototype.result=function(){return this.finalFormat==="buffer"&&typeof Buffer=="function"?Buffer.from(this.$hex,"hex"):new r(this.$hex).toString(this.finalFormat)},w.prototype.writeString=function(p,C){var S=r.fromUtf8String(p);C(S.length()),this.$hex+=S.$hex},v.addReader(function(p,C){if(p instanceof r||p.$hex)return new D(p.$hex);if(C==="hex")return new D(p)}),v.addWriter(function(p){if(p==="hex")return new w}),v}();return t.addSemanticEncode(0,function(r){if(r instanceof Date)return r.toISOString()}).addSemanticDecode(0,function(r){return new Date(r)}).addSemanticDecode(1,function(r){return new Date(r)}),t})}(Kr)),Kr.exports}var Oa;function Ce(){return Oa||(Oa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DataItem=e.addWriter=e.addReader=e.addSemanticEncode=e.addSemanticDecode=e.decodeToDataItem=e.encodeDataItem=void 0;var n=h2();Object.defineProperty(e,"encodeDataItem",{enumerable:!0,get:function(){return n.encodeDataItem}}),Object.defineProperty(e,"decodeToDataItem",{enumerable:!0,get:function(){return n.decodeToDataItem}}),Object.defineProperty(e,"addSemanticDecode",{enumerable:!0,get:function(){return n.addSemanticDecode}}),Object.defineProperty(e,"addSemanticEncode",{enumerable:!0,get:function(){return n.addSemanticEncode}}),Object.defineProperty(e,"addReader",{enumerable:!0,get:function(){return n.addReader}}),Object.defineProperty(e,"addWriter",{enumerable:!0,get:function(){return n.addWriter}});var t=ha();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return t.DataItem}})}(Bn)),Bn}var Aa;function Ao(){if(Aa)return Mt;Aa=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.patchTags=void 0;const e=Ce(),n=[],t=r=>{r.forEach(i=>{n.find(s=>s===i)||((0,e.addSemanticEncode)(i,s=>{if(s instanceof e.DataItem&&s.getTag()===i)return s.getData()}),(0,e.addSemanticDecode)(i,s=>new e.DataItem(s,i)),n.push(i))})};return Mt.patchTags=t,Mt}var ct={},Ma;function _e(){if(Ma)return ct;Ma=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.RegistryTypes=ct.RegistryType=void 0;class e{constructor(t,r){this.type=t,this.tag=r,this.getTag=()=>this.tag,this.getType=()=>this.type}}return ct.RegistryType=e,ct.RegistryTypes={UUID:new e("uuid",37),BYTES:new e("bytes",void 0),CRYPTO_HDKEY:new e("crypto-hdkey",303),CRYPTO_KEYPATH:new e("crypto-keypath",304),CRYPTO_COIN_INFO:new e("crypto-coin-info",305),CRYPTO_ECKEY:new e("crypto-eckey",306),CRYPTO_OUTPUT:new e("crypto-output",308),CRYPTO_PSBT:new e("crypto-psbt",310),CRYPTO_PSBT_EXTEND:new e("crypto-psbt-extend",312),CRYPTO_ACCOUNT:new e("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new e("crypto-multi-accounts",1103),QR_HARDWARE_CALL:new e("qr-hardware-call",1201),KEY_DERIVATION_CALL:new e("key-derivation-call",1301),KEY_DERIVATION_SCHEMA:new e("key-derivation-schema",1302)},ct}var wn={},Ua;function pa(){return Ua||(Ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptExpressions=e.ScriptExpression=void 0;class n{constructor(r,i){this.tag=r,this.expression=i,this.getTag=()=>this.tag,this.getExpression=()=>this.expression}}e.ScriptExpression=n,n.fromTag=t=>Object.values(e.ScriptExpressions).find(i=>i.getTag()===t),e.ScriptExpressions={SCRIPT_HASH:new n(400,"sh"),WITNESS_SCRIPT_HASH:new n(401,"wsh"),PUBLIC_KEY:new n(402,"pk"),PUBLIC_KEY_HASH:new n(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new n(404,"wpkh"),COMBO:new n(405,"combo"),MULTISIG:new n(406,"multi"),SORTED_MULTISIG:new n(407,"sortedmulti"),ADDRESS:new n(307,"addr"),RAW_SCRIPT:new n(408,"raw")}}(wn)),wn}var La;function ja(){if(La)return _n;La=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=Ao(),n=_e(),t=pa(),r=Object.values(n.RegistryTypes).filter(s=>!!s.getTag()).map(s=>s.getTag()),i=Object.values(t.ScriptExpressions).map(s=>s.getTag());return(0,e.patchTags)(r.concat(i)),_n}var Lt={},Sn,Na;function p2(){if(Na)return Sn;Na=1;var e={}.toString;return Sn=Array.isArray||function(n){return e.call(n)=="[object Array]"},Sn}var En,Fa;function g2(){if(Fa)return En;Fa=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(v){v!==r&&(n=null)}else n=null;var i=/^\s*class\b/,s=function(b){try{var E=e.call(b);return i.test(E)}catch{return!1}},u=function(b){try{return s(b)?!1:(e.call(b),!0)}catch{return!1}},a=Object.prototype.toString,f="[object Object]",o="[object Function]",c="[object GeneratorFunction]",l="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var g=document.all;a.call(g)===a.call(document.all)&&(y=function(b){if((x||!b)&&(typeof b>"u"||typeof b=="object"))try{var E=a.call(b);return(E===l||E===d||E===h||E===f)&&b("")==null}catch{}return!1})}return En=n?function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{n(b,null,t)}catch(E){if(E!==r)return!1}return!s(b)&&u(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return u(b);if(s(b))return!1;var E=a.call(b);return E!==o&&E!==c&&!/^\[object HTML/.test(E)?!1:u(b)},En}var Pn,qa;function y2(){if(qa)return Pn;qa=1;var e=g2(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=function(f,o,c){for(var l=0,d=f.length;l<d;l++)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))},i=function(f,o,c){for(var l=0,d=f.length;l<d;l++)c==null?o(f.charAt(l),l,f):o.call(c,f.charAt(l),l,f)},s=function(f,o,c){for(var l in f)t.call(f,l)&&(c==null?o(f[l],l,f):o.call(c,f[l],l,f))};function u(a){return n.call(a)==="[object Array]"}return Pn=function(f,o,c){if(!e(o))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=c),u(f)?r(f,o,l):typeof f=="string"?i(f,o,l):s(f,o,l)},Pn}var kn,$a;function m2(){return $a||($a=1,kn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),kn}var Tn,Ha;function v2(){if(Ha)return Tn;Ha=1;var e=m2(),n=typeof globalThis>"u"?it:globalThis;return Tn=function(){for(var r=[],i=0;i<e.length;i++)typeof n[e[i]]=="function"&&(r[r.length]=e[i]);return r},Tn}var Rn={exports:{}},In,Ka;function Ac(){if(Ka)return In;Ka=1;var e=da(),n=n2(),t=on(),r=an();return In=function(s,u,a){if(!s||typeof s!="object"&&typeof s!="function")throw new t("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,u);if(e)e(s,u,{configurable:c===null&&d?d.configurable:!c,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:o===null&&d?d.writable:!o});else if(l||!f&&!o&&!c)s[u]=a;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},In}var Dn,za;function Mc(){if(za)return Dn;za=1;var e=da(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Dn=n,Dn}var On,Ga;function x2(){if(Ga)return On;Ga=1;var e=Rc(),n=Ac(),t=Mc()(),r=an(),i=on(),s=e("%Math.floor%");return On=function(a,f){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new i("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in a&&r){var d=r(a,"length");d&&!d.configurable&&(c=!1),d&&!d.writable&&(l=!1)}return(c||l||!o)&&(t?n(a,"length",f,!0,!0):n(a,"length",f)),a},On}var An,Wa;function b2(){if(Wa)return An;Wa=1;var e=o2(),n=a2(),t=i2();return An=function(){return t(e,n,arguments)},An}var Va;function sn(){return Va||(Va=1,function(e){var n=x2(),t=da(),r=s2(),i=b2();e.exports=function(u){var a=r(arguments),f=u.length-(arguments.length-1);return n(a,1+(f>0?f:0),!0)},t?t(e.exports,"apply",{value:i}):e.exports.apply=i}(Rn)),Rn.exports}var Mn,Ya;function cn(){if(Ya)return Mn;Ya=1;var e=Ic();return Mn=function(){return e()&&!!Symbol.toStringTag},Mn}var Un,Xa;function Uc(){if(Xa)return Un;Xa=1;var e=y2(),n=v2(),t=sn(),r=dt(),i=an(),s=Dc(),u=r("Object.prototype.toString"),a=cn()(),f=typeof globalThis>"u"?it:globalThis,o=n(),c=r("String.prototype.slice"),l=r("Array.prototype.indexOf",!0)||function(y,g){for(var v=0;v<y.length;v+=1)if(y[v]===g)return v;return-1},d={__proto__:null};a&&i&&s?e(o,function(x){var y=new f[x];if(Symbol.toStringTag in y&&s){var g=s(y),v=i(g,Symbol.toStringTag);if(!v&&g){var b=s(g);v=i(b,Symbol.toStringTag)}d["$"+x]=t(v.get)}}):e(o,function(x){var y=new f[x],g=y.slice||y.set;g&&(d["$"+x]=t(g))});var h=function(y){var g=!1;return e(d,function(v,b){if(!g)try{"$"+v(y)===b&&(g=c(b,1))}catch{}}),g},m=function(y){var g=!1;return e(d,function(v,b){if(!g)try{v(y),g=c(b,1)}catch{}}),g};return Un=function(y){if(!y||typeof y!="object")return!1;if(!a){var g=c(u(y),8,-1);return l(o,g)>-1?g:g!=="Object"?!1:m(y)}return i?h(y):null},Un}var Ln,Qa;function Lc(){if(Qa)return Ln;Qa=1;var e=Uc();return Ln=function(t){return!!e(t)},Ln}var jn,Ja;function C2(){if(Ja)return jn;Ja=1;var e=on(),n=dt(),t=n("TypedArray.prototype.buffer",!0),r=Lc();return jn=t||function(s){if(!r(s))throw new e("Not a Typed Array");return s.buffer},jn}var Nn,Za;function ga(){if(Za)return Nn;Za=1;var e=$e().Buffer,n=p2(),t=C2(),r=ArrayBuffer.isView||function(f){try{return t(f),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Nn=function(f,o){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,o);if(s&&r(f)){if(f.byteLength===0)return e.alloc(0);if(u){var c=e.from(f.buffer,f.byteOffset,f.byteLength);if(c.byteLength===f.byteLength)return c}var l=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),d=e.from(l);if(d.length===f.byteLength)return d}if(i&&f instanceof Uint8Array)return e.from(f);var h=n(f);if(h)for(var m=0;m<f.length;m+=1){var x=f[m];if(typeof x!="number"||x<0||x>255||~~x!==x)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Nn}var Fn,es;function _2(){if(es)return Fn;es=1;var e=$e().Buffer,n=ga(),t=typeof Uint8Array<"u",r=t&&typeof ArrayBuffer<"u",i=r&&ArrayBuffer.isView;return Fn=function(s,u){if(typeof s=="string"||e.isBuffer(s)||t&&s instanceof Uint8Array||i&&i(s))return n(s,u);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},Fn}var Dr={exports:{}},Or={exports:{}},ts;function un(){if(ts)return Or.exports;ts=1,typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Or.exports={nextTick:e}:Or.exports=process;function e(n,t,r,i){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,u,a;switch(s){case 0:case 1:return process.nextTick(n);case 2:return process.nextTick(function(){n.call(null,t)});case 3:return process.nextTick(function(){n.call(null,t,r)});case 4:return process.nextTick(function(){n.call(null,t,r,i)});default:for(u=new Array(s-1),a=0;a<u.length;)u[a++]=arguments[a];return process.nextTick(function(){n.apply(null,u)})}}return Or.exports}var qn,rs;function B2(){if(rs)return qn;rs=1;var e={}.toString;return qn=Array.isArray||function(n){return e.call(n)=="[object Array]"},qn}var $n,ns;function jc(){return ns||(ns=1,$n=fa().EventEmitter),$n}var Ar={exports:{}},is;function ya(){return is||(is=1,function(e,n){var t=wt(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Ar,Ar.exports)),Ar.exports}var Be={},os;function Sr(){if(os)return Be;os=1;function e(x){return Array.isArray?Array.isArray(x):m(x)==="[object Array]"}Be.isArray=e;function n(x){return typeof x=="boolean"}Be.isBoolean=n;function t(x){return x===null}Be.isNull=t;function r(x){return x==null}Be.isNullOrUndefined=r;function i(x){return typeof x=="number"}Be.isNumber=i;function s(x){return typeof x=="string"}Be.isString=s;function u(x){return typeof x=="symbol"}Be.isSymbol=u;function a(x){return x===void 0}Be.isUndefined=a;function f(x){return m(x)==="[object RegExp]"}Be.isRegExp=f;function o(x){return typeof x=="object"&&x!==null}Be.isObject=o;function c(x){return m(x)==="[object Date]"}Be.isDate=c;function l(x){return m(x)==="[object Error]"||x instanceof Error}Be.isError=l;function d(x){return typeof x=="function"}Be.isFunction=d;function h(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x>"u"}Be.isPrimitive=h,Be.isBuffer=wt().Buffer.isBuffer;function m(x){return Object.prototype.toString.call(x)}return Be}var Hn={exports:{}},as;function w2(){return as||(as=1,function(e){function n(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var t=ya().Buffer,r=la;function i(s,u,a){s.copy(u,a)}e.exports=function(){function s(){n(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var f={data:a,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},s.prototype.unshift=function(a){var f={data:a,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var f=this.head,o=""+f.data;f=f.next;)o+=a+f.data;return o},s.prototype.concat=function(a){if(this.length===0)return t.alloc(0);for(var f=t.allocUnsafe(a>>>0),o=this.head,c=0;o;)i(o.data,f,c),c+=o.data.length,o=o.next;return f},s}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var s=r.inspect({length:this.length});return this.constructor.name+" "+s})}(Hn)),Hn.exports}var Kn,ss;function Nc(){if(ss)return Kn;ss=1;var e=un();function n(i,s){var u=this,a=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return a||f?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,i)):e.nextTick(r,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(o){!s&&o?u._writableState?u._writableState.errorEmitted||(u._writableState.errorEmitted=!0,e.nextTick(r,u,o)):e.nextTick(r,u,o):s&&s(o)}),this)}function t(){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 r(i,s){i.emit("error",s)}return Kn={destroy:n,undestroy:t},Kn}var zn,cs;function S2(){if(cs)return zn;cs=1,zn=e;function e(t,r){if(n("noDeprecation"))return t;var i=!1;function s(){if(!i){if(n("throwDeprecation"))throw new Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return t.apply(this,arguments)}return s}function n(t){try{if(!it.localStorage)return!1}catch{return!1}var r=it.localStorage[t];return r==null?!1:String(r).toLowerCase()==="true"}return zn}var Gn,us;function Fc(){if(us)return Gn;us=1;var e=un();Gn=x;function n(R){var O=this;this.next=null,this.entry=null,this.finish=function(){W(O,R)}}var t=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick,r;x.WritableState=h;var i=Object.create(Sr());i.inherits=Pe();var s={deprecate:S2()},u=jc(),a=ya().Buffer,f=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(R){return a.from(R)}function c(R){return a.isBuffer(R)||R instanceof f}var l=Nc();i.inherits(x,u);function d(){}function h(R,O){r=r||_t(),R=R||{};var N=O instanceof r;this.objectMode=!!R.objectMode,N&&(this.objectMode=this.objectMode||!!R.writableObjectMode);var G=R.highWaterMark,J=R.writableHighWaterMark,Z=this.objectMode?16:16*1024;G||G===0?this.highWaterMark=G:N&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Z,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 $=R.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(M){p(O,M)},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 n(this)}h.prototype.getBuffer=function(){for(var O=this.bufferedRequest,N=[];O;)N.push(O),O=O.next;return N},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var m;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(R){return m.call(this,R)?!0:this!==x?!1:R&&R._writableState instanceof h}})):m=function(R){return R instanceof this};function x(R){if(r=r||_t(),!m.call(x,this)&&!(this instanceof r))return new x(R);this._writableState=new h(R,this),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),u.call(this)}x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y(R,O){var N=new Error("write after end");R.emit("error",N),e.nextTick(O,N)}function g(R,O,N,G){var J=!0,Z=!1;return N===null?Z=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!O.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z&&(R.emit("error",Z),e.nextTick(G,Z),J=!1),J}x.prototype.write=function(R,O,N){var G=this._writableState,J=!1,Z=!G.objectMode&&c(R);return Z&&!a.isBuffer(R)&&(R=o(R)),typeof O=="function"&&(N=O,O=null),Z?O="buffer":O||(O=G.defaultEncoding),typeof N!="function"&&(N=d),G.ended?y(this,N):(Z||g(this,G,R,N))&&(G.pendingcb++,J=b(this,G,Z,R,O,N)),J},x.prototype.cork=function(){var R=this._writableState;R.corked++},x.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&A(this,R))},x.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function v(R,O,N){return!R.objectMode&&R.decodeStrings!==!1&&typeof O=="string"&&(O=a.from(O,N)),O}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(R,O,N,G,J,Z){if(!N){var $=v(O,G,J);G!==$&&(N=!0,J="buffer",G=$)}var M=O.objectMode?1:G.length;O.length+=M;var U=O.length<O.highWaterMark;if(U||(O.needDrain=!0),O.writing||O.corked){var q=O.lastBufferedRequest;O.lastBufferedRequest={chunk:G,encoding:J,isBuf:N,callback:Z,next:null},q?q.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else E(R,O,!1,M,G,J,Z);return U}function E(R,O,N,G,J,Z,$){O.writelen=G,O.writecb=$,O.writing=!0,O.sync=!0,N?R._writev(J,O.onwrite):R._write(J,Z,O.onwrite),O.sync=!1}function D(R,O,N,G,J){--O.pendingcb,N?(e.nextTick(J,G),e.nextTick(L,R,O),R._writableState.errorEmitted=!0,R.emit("error",G)):(J(G),R._writableState.errorEmitted=!0,R.emit("error",G),L(R,O))}function w(R){R.writing=!1,R.writecb=null,R.length-=R.writelen,R.writelen=0}function p(R,O){var N=R._writableState,G=N.sync,J=N.writecb;if(w(N),O)D(R,N,G,O,J);else{var Z=j(N);!Z&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&A(R,N),G?t(C,R,N,Z,J):C(R,N,Z,J)}}function C(R,O,N,G){N||S(R,O),O.pendingcb--,G(),L(R,O)}function S(R,O){O.length===0&&O.needDrain&&(O.needDrain=!1,R.emit("drain"))}function A(R,O){O.bufferProcessing=!0;var N=O.bufferedRequest;if(R._writev&&N&&N.next){var G=O.bufferedRequestCount,J=new Array(G),Z=O.corkedRequestsFree;Z.entry=N;for(var $=0,M=!0;N;)J[$]=N,N.isBuf||(M=!1),N=N.next,$+=1;J.allBuffers=M,E(R,O,!0,O.length,J,"",Z.finish),O.pendingcb++,O.lastBufferedRequest=null,Z.next?(O.corkedRequestsFree=Z.next,Z.next=null):O.corkedRequestsFree=new n(O),O.bufferedRequestCount=0}else{for(;N;){var U=N.chunk,q=N.encoding,P=N.callback,k=O.objectMode?1:U.length;if(E(R,O,!1,k,U,q,P),N=N.next,O.bufferedRequestCount--,O.writing)break}N===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=N,O.bufferProcessing=!1}x.prototype._write=function(R,O,N){N(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(R,O,N){var G=this._writableState;typeof R=="function"?(N=R,R=null,O=null):typeof O=="function"&&(N=O,O=null),R!=null&&this.write(R,O),G.corked&&(G.corked=1,this.uncork()),G.ending||F(this,G,N)};function j(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function V(R,O){R._final(function(N){O.pendingcb--,N&&R.emit("error",N),O.prefinished=!0,R.emit("prefinish"),L(R,O)})}function z(R,O){!O.prefinished&&!O.finalCalled&&(typeof R._final=="function"?(O.pendingcb++,O.finalCalled=!0,e.nextTick(V,R,O)):(O.prefinished=!0,R.emit("prefinish")))}function L(R,O){var N=j(O);return N&&(z(R,O),O.pendingcb===0&&(O.finished=!0,R.emit("finish"))),N}function F(R,O,N){O.ending=!0,L(R,O),N&&(O.finished?e.nextTick(N):R.once("finish",N)),O.ended=!0,R.writable=!1}function W(R,O,N){var G=R.entry;for(R.entry=null;G;){var J=G.callback;O.pendingcb--,J(N),G=G.next}O.corkedRequestsFree.next=R}return Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(R,O){this.end(),O(R)},Gn}var Wn,fs;function _t(){if(fs)return Wn;fs=1;var e=un(),n=Object.keys||function(l){var d=[];for(var h in l)d.push(h);return d};Wn=f;var t=Object.create(Sr());t.inherits=Pe();var r=qc(),i=Fc();t.inherits(f,r);for(var s=n(i.prototype),u=0;u<s.length;u++){var a=s[u];f.prototype[a]||(f.prototype[a]=i.prototype[a])}function f(l){if(!(this instanceof f))return new f(l);r.call(this,l),i.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||e.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),f.prototype._destroy=function(l,d){this.push(null),this.end(),e.nextTick(d,l)},Wn}var Vn={},Mr={exports:{}},ls;function E2(){return ls||(ls=1,function(e,n){var t=wt(),r=t.Buffer;function i(u,a){for(var f in u)a[f]=u[f]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=s);function s(u,a,f){return r(u,a,f)}i(r,s),s.from=function(u,a,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return r(u,a,f)},s.alloc=function(u,a,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var o=r(u);return a!==void 0?typeof f=="string"?o.fill(a,f):o.fill(a):o.fill(0),o},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(u)}}(Mr,Mr.exports)),Mr.exports}var ds;function hs(){if(ds)return Vn;ds=1;var e=E2().Buffer,n=e.isEncoding||function(g){switch(g=""+g,g&&g.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 t(g){if(!g)return"utf8";for(var v;;)switch(g){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 g;default:if(v)return;g=(""+g).toLowerCase(),v=!0}}function r(g){var v=t(g);if(typeof v!="string"&&(e.isEncoding===n||!n(g)))throw new Error("Unknown encoding: "+g);return v||g}Vn.StringDecoder=i;function i(g){this.encoding=r(g);var v;switch(this.encoding){case"utf16le":this.text=l,this.end=d,v=4;break;case"utf8":this.fillLast=f,v=4;break;case"base64":this.text=h,this.end=m,v=3;break;default:this.write=x,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(v)}i.prototype.write=function(g){if(g.length===0)return"";var v,b;if(this.lastNeed){if(v=this.fillLast(g),v===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<g.length?v?v+this.text(g,b):this.text(g,b):v||""},i.prototype.end=c,i.prototype.text=o,i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function s(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function u(g,v,b){var E=v.length-1;if(E<b)return 0;var D=s(v[E]);return D>=0?(D>0&&(g.lastNeed=D-1),D):--E<b||D===-2?0:(D=s(v[E]),D>=0?(D>0&&(g.lastNeed=D-2),D):--E<b||D===-2?0:(D=s(v[E]),D>=0?(D>0&&(D===2?D=0:g.lastNeed=D-3),D):0))}function a(g,v,b){if((v[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return g.lastNeed=2,"�"}}function f(g){var v=this.lastTotal-this.lastNeed,b=a(this,g);if(b!==void 0)return b;if(this.lastNeed<=g.length)return g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,v,0,g.length),this.lastNeed-=g.length}function o(g,v){var b=u(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=b;var E=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,E),g.toString("utf8",v,E)}function c(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+"�":v}function l(g,v){if((g.length-v)%2===0){var b=g.toString("utf16le",v);if(b){var E=b.charCodeAt(b.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function d(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function h(g,v){var b=(g.length-v)%3;return b===0?g.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-b))}function m(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function x(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}return Vn}var Yn,ps;function qc(){if(ps)return Yn;ps=1;var e=un();Yn=v;var n=B2(),t;v.ReadableState=g,fa().EventEmitter;var r=function(P,k){return P.listeners(k).length},i=jc(),s=ya().Buffer,u=(typeof it<"u"?it:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(P){return s.from(P)}function f(P){return s.isBuffer(P)||P instanceof u}var o=Object.create(Sr());o.inherits=Pe();var c=la,l=void 0;c&&c.debuglog?l=c.debuglog("stream"):l=function(){};var d=w2(),h=Nc(),m;o.inherits(v,i);var x=["error","close","destroy","pause","resume"];function y(P,k,H){if(typeof P.prependListener=="function")return P.prependListener(k,H);!P._events||!P._events[k]?P.on(k,H):n(P._events[k])?P._events[k].unshift(H):P._events[k]=[H,P._events[k]]}function g(P,k){t=t||_t(),P=P||{};var H=k instanceof t;this.objectMode=!!P.objectMode,H&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var Y=P.highWaterMark,ne=P.readableHighWaterMark,re=this.objectMode?16:16*1024;Y||Y===0?this.highWaterMark=Y:H&&(ne||ne===0)?this.highWaterMark=ne:this.highWaterMark=re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(m||(m=hs().StringDecoder),this.decoder=new m(P.encoding),this.encoding=P.encoding)}function v(P){if(t=t||_t(),!(this instanceof v))return new v(P);this._readableState=new g(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),i.call(this)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),v.prototype.destroy=h.destroy,v.prototype._undestroy=h.undestroy,v.prototype._destroy=function(P,k){this.push(null),k(P)},v.prototype.push=function(P,k){var H=this._readableState,Y;return H.objectMode?Y=!0:typeof P=="string"&&(k=k||H.defaultEncoding,k!==H.encoding&&(P=s.from(P,k),k=""),Y=!0),b(this,P,k,!1,Y)},v.prototype.unshift=function(P){return b(this,P,null,!0,!1)};function b(P,k,H,Y,ne){var re=P._readableState;if(k===null)re.reading=!1,A(P,re);else{var oe;ne||(oe=D(re,k)),oe?P.emit("error",oe):re.objectMode||k&&k.length>0?(typeof k!="string"&&!re.objectMode&&Object.getPrototypeOf(k)!==s.prototype&&(k=a(k)),Y?re.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):E(P,re,k,!0):re.ended?P.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!H?(k=re.decoder.write(k),re.objectMode||k.length!==0?E(P,re,k,!1):z(P,re)):E(P,re,k,!1))):Y||(re.reading=!1)}return w(re)}function E(P,k,H,Y){k.flowing&&k.length===0&&!k.sync?(P.emit("data",H),P.read(0)):(k.length+=k.objectMode?1:H.length,Y?k.buffer.unshift(H):k.buffer.push(H),k.needReadable&&j(P)),z(P,k)}function D(P,k){var H;return!f(k)&&typeof k!="string"&&k!==void 0&&!P.objectMode&&(H=new TypeError("Invalid non-string/buffer chunk")),H}function w(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}v.prototype.isPaused=function(){return this._readableState.flowing===!1},v.prototype.setEncoding=function(P){return m||(m=hs().StringDecoder),this._readableState.decoder=new m(P),this._readableState.encoding=P,this};var p=8388608;function C(P){return P>=p?P=p:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function S(P,k){return P<=0||k.length===0&&k.ended?0:k.objectMode?1:P!==P?k.flowing&&k.length?k.buffer.head.data.length:k.length:(P>k.highWaterMark&&(k.highWaterMark=C(P)),P<=k.length?P:k.ended?k.length:(k.needReadable=!0,0))}v.prototype.read=function(P){l("read",P),P=parseInt(P,10);var k=this._readableState,H=P;if(P!==0&&(k.emittedReadable=!1),P===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return l("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?M(this):j(this),null;if(P=S(P,k),P===0&&k.ended)return k.length===0&&M(this),null;var Y=k.needReadable;l("need readable",Y),(k.length===0||k.length-P<k.highWaterMark)&&(Y=!0,l("length less than watermark",Y)),k.ended||k.reading?(Y=!1,l("reading or ended",Y)):Y&&(l("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(P=S(H,k)));var ne;return P>0?ne=G(P,k):ne=null,ne===null?(k.needReadable=!0,P=0):k.length-=P,k.length===0&&(k.ended||(k.needReadable=!0),H!==P&&k.ended&&M(this)),ne!==null&&this.emit("data",ne),ne};function A(P,k){if(!k.ended){if(k.decoder){var H=k.decoder.end();H&&H.length&&(k.buffer.push(H),k.length+=k.objectMode?1:H.length)}k.ended=!0,j(P)}}function j(P){var k=P._readableState;k.needReadable=!1,k.emittedReadable||(l("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?e.nextTick(V,P):V(P))}function V(P){l("emit readable"),P.emit("readable"),N(P)}function z(P,k){k.readingMore||(k.readingMore=!0,e.nextTick(L,P,k))}function L(P,k){for(var H=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(l("maybeReadMore read 0"),P.read(0),H!==k.length);)H=k.length;k.readingMore=!1}v.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(P,k){var H=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=P;break;case 1:Y.pipes=[Y.pipes,P];break;default:Y.pipes.push(P);break}Y.pipesCount+=1,l("pipe count=%d opts=%j",Y.pipesCount,k);var ne=(!k||k.end!==!1)&&P!==process.stdout&&P!==process.stderr,re=ne?fe:ce;Y.endEmitted?e.nextTick(re):H.once("end",re),P.on("unpipe",oe);function oe(K,Q){l("onunpipe"),K===H&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,_())}function fe(){l("onend"),P.end()}var he=F(H);P.on("drain",he);var I=!1;function _(){l("cleanup"),P.removeListener("close",ee),P.removeListener("finish",te),P.removeListener("drain",he),P.removeListener("error",X),P.removeListener("unpipe",oe),H.removeListener("end",fe),H.removeListener("end",ce),H.removeListener("data",T),I=!0,Y.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&he()}var B=!1;H.on("data",T);function T(K){l("ondata"),B=!1;var Q=P.write(K);Q===!1&&!B&&((Y.pipesCount===1&&Y.pipes===P||Y.pipesCount>1&&q(Y.pipes,P)!==-1)&&!I&&(l("false write response, pause",Y.awaitDrain),Y.awaitDrain++,B=!0),H.pause())}function X(K){l("onerror",K),ce(),P.removeListener("error",X),r(P,"error")===0&&P.emit("error",K)}y(P,"error",X);function ee(){P.removeListener("finish",te),ce()}P.once("close",ee);function te(){l("onfinish"),P.removeListener("close",ee),ce()}P.once("finish",te);function ce(){l("unpipe"),H.unpipe(P)}return P.emit("pipe",H),Y.flowing||(l("pipe resume"),H.resume()),P};function F(P){return function(){var k=P._readableState;l("pipeOnDrain",k.awaitDrain),k.awaitDrain&&k.awaitDrain--,k.awaitDrain===0&&r(P,"data")&&(k.flowing=!0,N(P))}}v.prototype.unpipe=function(P){var k=this._readableState,H={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return P&&P!==k.pipes?this:(P||(P=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,P&&P.emit("unpipe",this,H),this);if(!P){var Y=k.pipes,ne=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var re=0;re<ne;re++)Y[re].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=q(k.pipes,P);return oe===-1?this:(k.pipes.splice(oe,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),P.emit("unpipe",this,H),this)},v.prototype.on=function(P,k){var H=i.prototype.on.call(this,P,k);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var Y=this._readableState;!Y.endEmitted&&!Y.readableListening&&(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&j(this):e.nextTick(W,this))}return H},v.prototype.addListener=v.prototype.on;function W(P){l("readable nexttick read 0"),P.read(0)}v.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!0,R(this,P)),this};function R(P,k){k.resumeScheduled||(k.resumeScheduled=!0,e.nextTick(O,P,k))}function O(P,k){k.reading||(l("resume read 0"),P.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,P.emit("resume"),N(P),k.flowing&&!k.reading&&P.read(0)}v.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(P){var k=P._readableState;for(l("flow",k.flowing);k.flowing&&P.read()!==null;);}v.prototype.wrap=function(P){var k=this,H=this._readableState,Y=!1;P.on("end",function(){if(l("wrapped end"),H.decoder&&!H.ended){var oe=H.decoder.end();oe&&oe.length&&k.push(oe)}k.push(null)}),P.on("data",function(oe){if(l("wrapped data"),H.decoder&&(oe=H.decoder.write(oe)),!(H.objectMode&&oe==null)&&!(!H.objectMode&&(!oe||!oe.length))){var fe=k.push(oe);fe||(Y=!0,P.pause())}});for(var ne in P)this[ne]===void 0&&typeof P[ne]=="function"&&(this[ne]=function(oe){return function(){return P[oe].apply(P,arguments)}}(ne));for(var re=0;re<x.length;re++)P.on(x[re],this.emit.bind(this,x[re]));return this._read=function(oe){l("wrapped _read",oe),Y&&(Y=!1,P.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=G;function G(P,k){if(k.length===0)return null;var H;return k.objectMode?H=k.buffer.shift():!P||P>=k.length?(k.decoder?H=k.buffer.join(""):k.buffer.length===1?H=k.buffer.head.data:H=k.buffer.concat(k.length),k.buffer.clear()):H=J(P,k.buffer,k.decoder),H}function J(P,k,H){var Y;return P<k.head.data.length?(Y=k.head.data.slice(0,P),k.head.data=k.head.data.slice(P)):P===k.head.data.length?Y=k.shift():Y=H?Z(P,k):$(P,k),Y}function Z(P,k){var H=k.head,Y=1,ne=H.data;for(P-=ne.length;H=H.next;){var re=H.data,oe=P>re.length?re.length:P;if(oe===re.length?ne+=re:ne+=re.slice(0,P),P-=oe,P===0){oe===re.length?(++Y,H.next?k.head=H.next:k.head=k.tail=null):(k.head=H,H.data=re.slice(oe));break}++Y}return k.length-=Y,ne}function $(P,k){var H=s.allocUnsafe(P),Y=k.head,ne=1;for(Y.data.copy(H),P-=Y.data.length;Y=Y.next;){var re=Y.data,oe=P>re.length?re.length:P;if(re.copy(H,H.length-P,0,oe),P-=oe,P===0){oe===re.length?(++ne,Y.next?k.head=Y.next:k.head=k.tail=null):(k.head=Y,Y.data=re.slice(oe));break}++ne}return k.length-=ne,H}function M(P){var k=P._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,e.nextTick(U,k,P))}function U(P,k){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,k.readable=!1,k.emit("end"))}function q(P,k){for(var H=0,Y=P.length;H<Y;H++)if(P[H]===k)return H;return-1}return Yn}var Xn,gs;function $c(){if(gs)return Xn;gs=1,Xn=r;var e=_t(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(r,e);function t(u,a){var f=this._transformState;f.transforming=!1;var o=f.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,a!=null&&this.push(a),o(u);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function r(u){if(!(this instanceof r))return new r(u);e.call(this,u),this._transformState={afterTransform:t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",i)}function i(){var u=this;typeof this._flush=="function"?this._flush(function(a,f){s(u,a,f)}):s(this,null,null)}r.prototype.push=function(u,a){return this._transformState.needTransform=!1,e.prototype.push.call(this,u,a)},r.prototype._transform=function(u,a,f){throw new Error("_transform() is not implemented")},r.prototype._write=function(u,a,f){var o=this._transformState;if(o.writecb=f,o.writechunk=u,o.writeencoding=a,!o.transforming){var c=this._readableState;(o.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},r.prototype._read=function(u){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},r.prototype._destroy=function(u,a){var f=this;e.prototype._destroy.call(this,u,function(o){a(o),f.emit("close")})};function s(u,a,f){if(a)return u.emit("error",a);if(f!=null&&u.push(f),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}return Xn}var Qn,ys;function P2(){if(ys)return Qn;ys=1,Qn=t;var e=$c(),n=Object.create(Sr());n.inherits=Pe(),n.inherits(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,s){s(null,r)},Qn}var ms;function k2(){return ms||(ms=1,function(e,n){n=e.exports=qc(),n.Stream=n,n.Readable=n,n.Writable=Fc(),n.Duplex=_t(),n.Transform=$c(),n.PassThrough=P2()}(Dr,Dr.exports)),Dr.exports}var Jn,vs;function Hc(){if(vs)return Jn;vs=1;var e=$e().Buffer,n=_2(),t=k2().Transform,r=Pe();function i(s){t.call(this),this._block=e.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return r(i,t),i.prototype._transform=function(s,u,a){var f=null;try{this.update(s,u)}catch(o){f=o}a(f)},i.prototype._flush=function(s){var u=null;try{this.push(this.digest())}catch(a){u=a}s(u)},i.prototype.update=function(s,u){if(this._finalized)throw new Error("Digest already called");for(var a=n(s,u),f=this._block,o=0;this._blockOffset+a.length-o>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)f[c]=a[o],c+=1,o+=1;this._update(),this._blockOffset=0}for(;o<a.length;)f[this._blockOffset]=a[o],this._blockOffset+=1,o+=1;for(var l=0,d=a.length*8;d>0;++l)this._length[l]+=d,d=this._length[l]/4294967296|0,d>0&&(this._length[l]-=4294967296*d);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();s!==void 0&&(u=u.toString(s)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return u},i.prototype._digest=function(){throw new Error("_digest is not implemented")},Jn=i,Jn}var Zn,xs;function T2(){if(xs)return Zn;xs=1;var e=Pe(),n=Hc(),t=$e().Buffer,r=new Array(16);function i(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(i,n),i.prototype._update=function(){for(var c=r,l=0;l<16;++l)c[l]=this._block.readInt32LE(l*4);var d=this._a,h=this._b,m=this._c,x=this._d;d=u(d,h,m,x,c[0],3614090360,7),x=u(x,d,h,m,c[1],3905402710,12),m=u(m,x,d,h,c[2],606105819,17),h=u(h,m,x,d,c[3],3250441966,22),d=u(d,h,m,x,c[4],4118548399,7),x=u(x,d,h,m,c[5],1200080426,12),m=u(m,x,d,h,c[6],2821735955,17),h=u(h,m,x,d,c[7],4249261313,22),d=u(d,h,m,x,c[8],1770035416,7),x=u(x,d,h,m,c[9],2336552879,12),m=u(m,x,d,h,c[10],4294925233,17),h=u(h,m,x,d,c[11],2304563134,22),d=u(d,h,m,x,c[12],1804603682,7),x=u(x,d,h,m,c[13],4254626195,12),m=u(m,x,d,h,c[14],2792965006,17),h=u(h,m,x,d,c[15],1236535329,22),d=a(d,h,m,x,c[1],4129170786,5),x=a(x,d,h,m,c[6],3225465664,9),m=a(m,x,d,h,c[11],643717713,14),h=a(h,m,x,d,c[0],3921069994,20),d=a(d,h,m,x,c[5],3593408605,5),x=a(x,d,h,m,c[10],38016083,9),m=a(m,x,d,h,c[15],3634488961,14),h=a(h,m,x,d,c[4],3889429448,20),d=a(d,h,m,x,c[9],568446438,5),x=a(x,d,h,m,c[14],3275163606,9),m=a(m,x,d,h,c[3],4107603335,14),h=a(h,m,x,d,c[8],1163531501,20),d=a(d,h,m,x,c[13],2850285829,5),x=a(x,d,h,m,c[2],4243563512,9),m=a(m,x,d,h,c[7],1735328473,14),h=a(h,m,x,d,c[12],2368359562,20),d=f(d,h,m,x,c[5],4294588738,4),x=f(x,d,h,m,c[8],2272392833,11),m=f(m,x,d,h,c[11],1839030562,16),h=f(h,m,x,d,c[14],4259657740,23),d=f(d,h,m,x,c[1],2763975236,4),x=f(x,d,h,m,c[4],1272893353,11),m=f(m,x,d,h,c[7],4139469664,16),h=f(h,m,x,d,c[10],3200236656,23),d=f(d,h,m,x,c[13],681279174,4),x=f(x,d,h,m,c[0],3936430074,11),m=f(m,x,d,h,c[3],3572445317,16),h=f(h,m,x,d,c[6],76029189,23),d=f(d,h,m,x,c[9],3654602809,4),x=f(x,d,h,m,c[12],3873151461,11),m=f(m,x,d,h,c[15],530742520,16),h=f(h,m,x,d,c[2],3299628645,23),d=o(d,h,m,x,c[0],4096336452,6),x=o(x,d,h,m,c[7],1126891415,10),m=o(m,x,d,h,c[14],2878612391,15),h=o(h,m,x,d,c[5],4237533241,21),d=o(d,h,m,x,c[12],1700485571,6),x=o(x,d,h,m,c[3],2399980690,10),m=o(m,x,d,h,c[10],4293915773,15),h=o(h,m,x,d,c[1],2240044497,21),d=o(d,h,m,x,c[8],1873313359,6),x=o(x,d,h,m,c[15],4264355552,10),m=o(m,x,d,h,c[6],2734768916,15),h=o(h,m,x,d,c[13],1309151649,21),d=o(d,h,m,x,c[4],4149444226,6),x=o(x,d,h,m,c[11],3174756917,10),m=o(m,x,d,h,c[2],718787259,15),h=o(h,m,x,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+h|0,this._c=this._c+m|0,this._d=this._d+x|0},i.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 c=t.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function s(c,l){return c<<l|c>>>32-l}function u(c,l,d,h,m,x,y){return s(c+(l&d|~l&h)+m+x|0,y)+l|0}function a(c,l,d,h,m,x,y){return s(c+(l&h|d&~h)+m+x|0,y)+l|0}function f(c,l,d,h,m,x,y){return s(c+(l^d^h)+m+x|0,y)+l|0}function o(c,l,d,h,m,x,y){return s(c+(d^(l|~h))+m+x|0,y)+l|0}return Zn=i,Zn}var ei,bs;function R2(){if(bs)return ei;bs=1;var e=wt().Buffer,n=Pe(),t=Hc(),r=new Array(16),i=[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],s=[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],a=[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],f=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function c(g,v){return g<<v|g>>>32-v}function l(g,v,b,E,D,w,p,C){return c(g+(v^b^E)+w+p|0,C)+D|0}function d(g,v,b,E,D,w,p,C){return c(g+(v&b|~v&E)+w+p|0,C)+D|0}function h(g,v,b,E,D,w,p,C){return c(g+((v|~b)^E)+w+p|0,C)+D|0}function m(g,v,b,E,D,w,p,C){return c(g+(v&E|b&~E)+w+p|0,C)+D|0}function x(g,v,b,E,D,w,p,C){return c(g+(v^(b|~E))+w+p|0,C)+D|0}function y(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return n(y,t),y.prototype._update=function(){for(var g=r,v=0;v<16;++v)g[v]=this._block.readInt32LE(v*4);for(var b=this._a|0,E=this._b|0,D=this._c|0,w=this._d|0,p=this._e|0,C=this._a|0,S=this._b|0,A=this._c|0,j=this._d|0,V=this._e|0,z=0;z<80;z+=1){var L,F;z<16?(L=l(b,E,D,w,p,g[i[z]],f[0],u[z]),F=x(C,S,A,j,V,g[s[z]],o[0],a[z])):z<32?(L=d(b,E,D,w,p,g[i[z]],f[1],u[z]),F=m(C,S,A,j,V,g[s[z]],o[1],a[z])):z<48?(L=h(b,E,D,w,p,g[i[z]],f[2],u[z]),F=h(C,S,A,j,V,g[s[z]],o[2],a[z])):z<64?(L=m(b,E,D,w,p,g[i[z]],f[3],u[z]),F=d(C,S,A,j,V,g[s[z]],o[3],a[z])):(L=x(b,E,D,w,p,g[i[z]],f[4],u[z]),F=l(C,S,A,j,V,g[s[z]],o[4],a[z])),b=p,p=w,w=c(D,10),D=E,E=L,C=V,V=j,j=c(A,10),A=S,S=F}var W=this._b+D+j|0;this._b=this._c+w+V|0,this._c=this._d+p+C|0,this._d=this._e+b+S|0,this._e=this._a+E+A|0,this._a=W},y.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 g=e.alloc?e.alloc(20):new e(20);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g.writeInt32LE(this._e,16),g},ei=y,ei}var ti={exports:{}},ri,Cs;function Pt(){if(Cs)return ri;Cs=1;var e=$e().Buffer,n=ga();function t(r,i){this._block=e.alloc(r),this._finalSize=i,this._blockSize=r,this._len=0}return t.prototype.update=function(r,i){r=n(r,i||"utf8");for(var s=this._block,u=this._blockSize,a=r.length,f=this._len,o=0;o<a;){for(var c=f%u,l=Math.min(a-o,u-c),d=0;d<l;d++)s[c+d]=r[o+d];f+=l,o+=l,f%u===0&&this._update(s)}return this._len+=a,this},t.prototype.digest=function(r){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var u=(s&4294967295)>>>0,a=(s-u)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var f=this._hash();return r?f.toString(r):f},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ri=t,ri}var ni,_s;function I2(){if(_s)return ni;_s=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(o){return o<<5|o>>>27}function a(o){return o<<30|o>>>2}function f(o,c,l,d){return o===0?c&l|~c&d:o===2?c&l|c&d|l&d:c^l^d}return s.prototype._update=function(o){for(var c=this._w,l=this._a|0,d=this._b|0,h=this._c|0,m=this._d|0,x=this._e|0,y=0;y<16;++y)c[y]=o.readInt32BE(y*4);for(;y<80;++y)c[y]=c[y-3]^c[y-8]^c[y-14]^c[y-16];for(var g=0;g<80;++g){var v=~~(g/20),b=u(l)+f(v,d,h,m)+x+c[g]+r[v]|0;x=m,m=h,h=a(d),d=l,l=b}this._a=l+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=m+this._d|0,this._e=x+this._e|0},s.prototype._hash=function(){var o=t.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},ni=s,ni}var ii,Bs;function D2(){if(Bs)return ii;Bs=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u(c){return c<<1|c>>>31}function a(c){return c<<5|c>>>27}function f(c){return c<<30|c>>>2}function o(c,l,d,h){return c===0?l&d|~l&h:c===2?l&d|l&h|d&h:l^d^h}return s.prototype._update=function(c){for(var l=this._w,d=this._a|0,h=this._b|0,m=this._c|0,x=this._d|0,y=this._e|0,g=0;g<16;++g)l[g]=c.readInt32BE(g*4);for(;g<80;++g)l[g]=u(l[g-3]^l[g-8]^l[g-14]^l[g-16]);for(var v=0;v<80;++v){var b=~~(v/20),E=a(d)+o(b,h,m,x)+y+l[v]+r[b]|0;y=x,x=m,m=f(h),h=d,d=E}this._a=d+this._a|0,this._b=h+this._b|0,this._c=m+this._c|0,this._d=x+this._d|0,this._e=y+this._e|0},s.prototype._hash=function(){var c=t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},ii=s,ii}var oi,ws;function Kc(){if(ws)return oi;ws=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[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],i=new Array(64);function s(){this.init(),this._w=i,n.call(this,64,56)}e(s,n),s.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};function u(d,h,m){return m^d&(h^m)}function a(d,h,m){return d&h|m&(d|h)}function f(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function o(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function c(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}function l(d){return(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10}return s.prototype._update=function(d){for(var h=this._w,m=this._a|0,x=this._b|0,y=this._c|0,g=this._d|0,v=this._e|0,b=this._f|0,E=this._g|0,D=this._h|0,w=0;w<16;++w)h[w]=d.readInt32BE(w*4);for(;w<64;++w)h[w]=l(h[w-2])+h[w-7]+c(h[w-15])+h[w-16]|0;for(var p=0;p<64;++p){var C=D+o(v)+u(v,b,E)+r[p]+h[p]|0,S=f(m)+a(m,x,y)|0;D=E,E=b,b=v,v=g+C|0,g=y,y=x,x=m,m=C+S|0}this._a=m+this._a|0,this._b=x+this._b|0,this._c=y+this._c|0,this._d=g+this._d|0,this._e=v+this._e|0,this._f=b+this._f|0,this._g=E+this._g|0,this._h=D+this._h|0},s.prototype._hash=function(){var d=t.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d},oi=s,oi}var ai,Ss;function O2(){if(Ss)return ai;Ss=1;var e=Pe(),n=Kc(),t=Pt(),r=$e().Buffer,i=new Array(64);function s(){this.init(),this._w=i,t.call(this,64,56)}return e(s,n),s.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},s.prototype._hash=function(){var u=r.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},ai=s,ai}var si,Es;function zc(){if(Es)return si;Es=1;var e=Pe(),n=Pt(),t=$e().Buffer,r=[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],i=new Array(160);function s(){this.init(),this._w=i,n.call(this,128,112)}e(s,n),s.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};function u(x,y,g){return g^x&(y^g)}function a(x,y,g){return x&y|g&(x|y)}function f(x,y){return(x>>>28|y<<4)^(y>>>2|x<<30)^(y>>>7|x<<25)}function o(x,y){return(x>>>14|y<<18)^(x>>>18|y<<14)^(y>>>9|x<<23)}function c(x,y){return(x>>>1|y<<31)^(x>>>8|y<<24)^x>>>7}function l(x,y){return(x>>>1|y<<31)^(x>>>8|y<<24)^(x>>>7|y<<25)}function d(x,y){return(x>>>19|y<<13)^(y>>>29|x<<3)^x>>>6}function h(x,y){return(x>>>19|y<<13)^(y>>>29|x<<3)^(x>>>6|y<<26)}function m(x,y){return x>>>0<y>>>0?1:0}return s.prototype._update=function(x){for(var y=this._w,g=this._ah|0,v=this._bh|0,b=this._ch|0,E=this._dh|0,D=this._eh|0,w=this._fh|0,p=this._gh|0,C=this._hh|0,S=this._al|0,A=this._bl|0,j=this._cl|0,V=this._dl|0,z=this._el|0,L=this._fl|0,F=this._gl|0,W=this._hl|0,R=0;R<32;R+=2)y[R]=x.readInt32BE(R*4),y[R+1]=x.readInt32BE(R*4+4);for(;R<160;R+=2){var O=y[R-30],N=y[R-30+1],G=c(O,N),J=l(N,O);O=y[R-4],N=y[R-4+1];var Z=d(O,N),$=h(N,O),M=y[R-14],U=y[R-14+1],q=y[R-32],P=y[R-32+1],k=J+U|0,H=G+M+m(k,J)|0;k=k+$|0,H=H+Z+m(k,$)|0,k=k+P|0,H=H+q+m(k,P)|0,y[R]=H,y[R+1]=k}for(var Y=0;Y<160;Y+=2){H=y[Y],k=y[Y+1];var ne=a(g,v,b),re=a(S,A,j),oe=f(g,S),fe=f(S,g),he=o(D,z),I=o(z,D),_=r[Y],B=r[Y+1],T=u(D,w,p),X=u(z,L,F),ee=W+I|0,te=C+he+m(ee,W)|0;ee=ee+X|0,te=te+T+m(ee,X)|0,ee=ee+B|0,te=te+_+m(ee,B)|0,ee=ee+k|0,te=te+H+m(ee,k)|0;var ce=fe+re|0,K=oe+ne+m(ce,fe)|0;C=p,W=F,p=w,F=L,w=D,L=z,z=V+ee|0,D=E+te+m(z,V)|0,E=b,V=j,b=v,j=A,v=g,A=S,S=ee+ce|0,g=te+K+m(S,ee)|0}this._al=this._al+S|0,this._bl=this._bl+A|0,this._cl=this._cl+j|0,this._dl=this._dl+V|0,this._el=this._el+z|0,this._fl=this._fl+L|0,this._gl=this._gl+F|0,this._hl=this._hl+W|0,this._ah=this._ah+g+m(this._al,S)|0,this._bh=this._bh+v+m(this._bl,A)|0,this._ch=this._ch+b+m(this._cl,j)|0,this._dh=this._dh+E+m(this._dl,V)|0,this._eh=this._eh+D+m(this._el,z)|0,this._fh=this._fh+w+m(this._fl,L)|0,this._gh=this._gh+p+m(this._gl,F)|0,this._hh=this._hh+C+m(this._hl,W)|0},s.prototype._hash=function(){var x=t.allocUnsafe(64);function y(g,v,b){x.writeInt32BE(g,b),x.writeInt32BE(v,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),x},si=s,si}var ci,Ps;function A2(){if(Ps)return ci;Ps=1;var e=Pe(),n=zc(),t=Pt(),r=$e().Buffer,i=new Array(160);function s(){this.init(),this._w=i,t.call(this,128,112)}return e(s,n),s.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},s.prototype._hash=function(){var u=r.allocUnsafe(48);function a(f,o,c){u.writeInt32BE(f,c),u.writeInt32BE(o,c+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),u},ci=s,ci}var ks;function Gc(){return ks||(ks=1,function(e){e.exports=function(t){var r=t.toLowerCase(),i=e.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i},e.exports.sha=I2(),e.exports.sha1=D2(),e.exports.sha224=O2(),e.exports.sha256=Kc(),e.exports.sha384=A2(),e.exports.sha512=zc()}(ti)),ti.exports}var ui,Ts;function M2(){if(Ts)return ui;Ts=1;var e=$e().Buffer,n=la.Transform,t=f2().StringDecoder,r=Pe(),i=ga();function s(u){n.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(s,n),s.prototype.update=function(u,a,f){var o=i(u,a),c=this._update(o);return this.hashMode?this:(f&&(c=this._toString(c,f)),c)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(u,a,f){var o;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(c){o=c}finally{f(o)}},s.prototype._flush=function(u){var a;try{this.push(this.__final())}catch(f){a=f}u(a)},s.prototype._finalOrDigest=function(u){var a=this.__final()||e.alloc(0);return u&&(a=this._toString(a,u,!0)),a},s.prototype._toString=function(u,a,f){if(this._decoder||(this._decoder=new t(a),this._encoding=a),this._encoding!==a)throw new Error("can’t switch encodings");var o=this._decoder.write(u);return f&&(o+=this._decoder.end()),o},ui=s,ui}var fi,Rs;function U2(){if(Rs)return fi;Rs=1;var e=Pe(),n=T2(),t=R2(),r=Gc(),i=M2();function s(u){i.call(this,"digest"),this._hash=u}return e(s,i),s.prototype._update=function(u){this._hash.update(u)},s.prototype._final=function(){return this._hash.digest()},fi=function(a){return a=a.toLowerCase(),a==="md5"?new n:a==="rmd160"||a==="ripemd160"?new t:new s(r(a))},fi}var li,Is;function L2(){if(Is)return li;Is=1;var e=Jf(),n=$e().Buffer;return li=function(t){function r(a){var f=t(a);return e.encode(n.concat([a,f],a.length+4))}function i(a){var f=a.slice(0,-4),o=a.slice(-4),c=t(f);if(!(o[0]^c[0]|o[1]^c[1]|o[2]^c[2]|o[3]^c[3]))return f}function s(a){var f=e.decodeUnsafe(a);if(f)return i(f)}function u(a){var f=e.decode(a),o=i(f);if(!o)throw new Error("Invalid checksum");return o}return{encode:r,decode:u,decodeUnsafe:s}},li}var di,Ds;function Wc(){if(Ds)return di;Ds=1;var e=U2(),n=L2();function t(r){var i=e("sha256").update(r).digest();return e("sha256").update(i).digest()}return di=n(t),di}var hi={},jt={},We={},Ur={},qe={},Os;function ma(){if(Os)return qe;Os=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.InvalidChecksumError=qe.InvalidSequenceComponentError=qe.InvalidTypeError=qe.InvalidPathLengthError=qe.InvalidSchemeError=void 0;class e extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}qe.InvalidSchemeError=e;class n extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}qe.InvalidPathLengthError=n;class t extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}qe.InvalidTypeError=t;class r extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}qe.InvalidSequenceComponentError=r;class i extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}return qe.InvalidChecksumError=i,qe}var ve={},pi={};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|