@acedatacloud/nexior 3.30.2 → 3.30.3
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 +1 -0
- package/dist/assets/BotPlaceholder-Blzus1Ba.js +1 -0
- package/dist/assets/Callback-CTYxeo8Z.js +1 -0
- package/dist/assets/Console-BbGWMKKZ.js +1 -0
- package/dist/assets/Conversation-DiVMGW94.js +23 -0
- package/dist/assets/CopyToClipboard-CmHXEPMr.js +1 -0
- package/dist/assets/{Detail-HplVitVr.css → Detail-D68ZlN5z.css} +1 -1
- package/dist/assets/Detail-VDnCOUUU.js +2 -0
- package/dist/assets/{EditArray-DpGXSb1V.js → EditArray-OA-NVBZO.js} +1 -1
- package/dist/assets/Extra-BY28y3mx.js +1 -0
- package/dist/assets/FilePreview-DQpvzXs_.js +1 -0
- package/dist/assets/History-B1pKVuTR.js +1 -0
- package/dist/assets/{ImagePreview-Dun0qhAC.js → ImagePreview-DpdyaY-J.js} +1 -1
- package/dist/assets/ImageWrapper-D-q49c6z.js +1 -0
- package/dist/assets/Index-BCkGN8zE.css +1 -0
- package/dist/assets/Index-BJGORTT2.js +1 -0
- package/dist/assets/Index-Ba9yXMzu.js +1 -0
- package/dist/assets/Index-C7LHJpMK.js +1 -0
- package/dist/assets/Index-CCcF6hZ9.js +1 -0
- package/dist/assets/Index-Ch-rWHP2.css +1 -0
- package/dist/assets/{Index-CXVGa2ZU.css → Index-CuZIoeXJ.css} +1 -1
- package/dist/assets/{Index-DtTR08nA.css → Index-CujgCEXB.css} +1 -1
- package/dist/assets/Index-D1Rz1tfd.js +1 -0
- package/dist/assets/Index-D2oTY94j.js +1 -0
- package/dist/assets/Index-D7GnQkM4.js +1 -0
- package/dist/assets/{Index-BlTMjqXS.js → Index-DUJTbNQH.js} +1 -1
- package/dist/assets/Index-DZMphueF.js +1 -0
- package/dist/assets/Index-DZT53ftk.js +1 -0
- package/dist/assets/Index-DgsKsh3B.js +1 -0
- package/dist/assets/Index-Dia7Vi_r.js +1 -0
- package/dist/assets/Index-Ds2oO7k1.js +1 -0
- package/dist/assets/{Index-BS4HFQ5A.css → Index-DxzQLCOp.css} +1 -1
- package/dist/assets/Index-LTWS2Usl.css +1 -0
- package/dist/assets/Index-O0SBFGmH.js +1 -0
- package/dist/assets/Index-_Jl_BYAz.js +1 -0
- package/dist/assets/Index-dyBrOVOM.js +1 -0
- package/dist/assets/Index-guHNQauE.js +1 -0
- package/dist/assets/Index-myIt_TK4.js +1 -0
- package/dist/assets/Index-sDMWgguk.js +1 -0
- package/dist/assets/Index-xfpPqB6k.js +1 -0
- package/dist/assets/Invitees-DkWxP4e3.js +1 -0
- package/dist/assets/{List-DX7teWzL.js → List-BqzG7ehZ.js} +1 -1
- package/dist/assets/List-BxIMcYD8.js +1 -0
- package/dist/assets/{List-0wMSr6sl.js → List-CEq_u8D0.js} +1 -1
- package/dist/assets/{Login-HaVOMqv1.js → Login-CIXJrgOw.js} +1 -1
- package/dist/assets/Main-CQsNTqVL.js +1 -0
- package/dist/assets/Navigator-BrdQZd1b.js +1 -0
- package/dist/assets/NoTasks-BiOsXlaq.js +1 -0
- package/dist/assets/{Pagination-B1kOfzR8.js → Pagination-BbqydTat.js} +1 -1
- package/dist/assets/ScrollList-DPLKBqBd.js +1 -0
- package/dist/assets/{Status-CviAA8Me.js → Status-UWszJlPM.js} +1 -1
- package/dist/assets/Subscribe-DUBYadQ1.js +1 -0
- package/dist/assets/TransportWebHID-BEAZzcY0.js +1 -0
- package/dist/assets/VideoPlayer-DWTQSZjy.js +1 -0
- package/dist/assets/avatar-D84fE3q6.js +1 -0
- package/dist/assets/bignumber-C1xKUtxX.js +1 -0
- package/dist/assets/common-Cg7wDjqw.js +1 -0
- package/dist/assets/common-DFpFqR7d.js +1 -0
- package/dist/assets/{distribution-D9pkXpfI.js → distribution-CJuee8y2.js} +1 -1
- package/dist/assets/draggabilly-23WCleZP.js +14 -0
- package/dist/assets/hailuo-BW-py-iC.js +1 -0
- package/dist/assets/hailuo-CPbFju9j.js +1 -0
- package/dist/assets/index-BLy_0GNg.js +9 -0
- package/dist/assets/index-BfyfYtZm.js +1 -0
- package/dist/assets/index-C1rwxuCG.js +48 -0
- package/dist/assets/index-C49kyaKg.js +1 -0
- package/dist/assets/{index-BhLJWZHg.css → index-CJFrXZHu.css} +1 -1
- package/dist/assets/index-D-6_CPHX.js +196 -0
- package/dist/assets/index-DLiWuf1u.js +3 -0
- package/dist/assets/index-D_w37A4E.js +303 -0
- package/dist/assets/index-FyDryJF8.js +613 -0
- package/dist/assets/index-jeGnfJ_l.js +3 -0
- package/dist/assets/index.es-L8lIAtWn.js +1 -0
- package/dist/assets/{midjourney-pGIr4mFy.js → midjourney-7qNi1gDF.js} +1 -1
- package/dist/assets/{midjourney-DrEvLpOW.js → midjourney-AZSr0dUI.js} +1 -1
- package/dist/assets/{midjourney-DTPFL7H6.js → midjourney-BA9N9EzD.js} +1 -1
- package/dist/assets/{midjourney-BiEcgyn_.js → midjourney-BELjzcp_.js} +1 -1
- package/dist/assets/{midjourney-3qTfZ2g0.js → midjourney-BXioF2pd.js} +1 -1
- package/dist/assets/{midjourney-BB8_8Y0b.js → midjourney-BertSXin.js} +1 -1
- package/dist/assets/{midjourney-BX43t6mP.js → midjourney-C45UFOHr.js} +1 -1
- package/dist/assets/{midjourney-BSa-zke8.js → midjourney-C9mIk6WS.js} +1 -1
- package/dist/assets/{midjourney-BPH2f-mB.js → midjourney-CD2E4s8K.js} +1 -1
- package/dist/assets/{midjourney-J2zj1IYa.js → midjourney-CJ_sZW8R.js} +1 -1
- package/dist/assets/{midjourney-DrLxaHYR.js → midjourney-CTHpnRlb.js} +1 -1
- package/dist/assets/{midjourney-DLjNdgAu.js → midjourney-CZZTzaNU.js} +1 -1
- package/dist/assets/{midjourney-CsMxES1u.js → midjourney-CZybL7nq.js} +1 -1
- package/dist/assets/{midjourney-S0C_rEm5.js → midjourney-D0jbNv1J.js} +1 -1
- package/dist/assets/{midjourney-BforSgJQ.js → midjourney-D7EOsHLu.js} +1 -1
- package/dist/assets/{midjourney-DtqGn3W4.js → midjourney-H5Wuq1-p.js} +1 -1
- package/dist/assets/{midjourney-CF6rGKLn.js → midjourney-HSS4vV-y.js} +1 -1
- package/dist/assets/{midjourney-BlWzdaOt.js → midjourney-NmlOsMCS.js} +1 -1
- package/dist/assets/{order-DYcfG_Yw.js → order-DUXA8yqM.js} +1 -1
- package/dist/assets/{pagination-bjoHZNQW.js → pagination-CihAE3FS.js} +1 -1
- package/dist/assets/price-BRDkc6EK.js +1 -0
- package/dist/assets/solana-wallets-o-Zvvwmq.js +2 -0
- package/dist/assets/solanaEmbed.esm-B2cUJHFV.js +10 -0
- package/dist/assets/string_decoder-BJaILowq.js +1 -0
- package/dist/assets/vendor-chart-CZ0ow4AA.js +18 -0
- package/dist/assets/vendor-dayjs-CzbnksQQ.js +1 -0
- package/dist/assets/vendor-element-plus-B4FTqxj4.js +30 -0
- package/dist/assets/{vendor-highlight-BX2iaugd.js → vendor-highlight-CvK2rpA0.js} +2 -2
- package/dist/assets/{vendor-vue-BzRnDgD5.js → vendor-vue-1w_NBnjl.js} +1 -1
- package/dist/assets/{vendor-vue-router-nHemWFue.js → vendor-vue-router-Dj5bcX0v.js} +2 -2
- package/dist/assets/vendor-web3-BWcfcUXi.js +4912 -0
- package/dist/assets/vendor-web3-CY2j0e5U.css +1 -0
- package/dist/assets/vue-plyr-BqJN4-Iw.css +1 -0
- package/dist/assets/vue-plyr-QZFBikSk.js +2 -0
- package/dist/assets/web-D_YOPR7Z.js +1 -0
- package/dist/assets/web-TogH-A1y.js +1 -0
- package/dist/index.html +21 -12
- package/dist/llms.txt +43 -0
- package/dist/robots.txt +1 -0
- package/package.json +1 -1
- package/dist/assets/Auth-BkGrZ4Al.js +0 -1
- package/dist/assets/BotPlaceholder-ClX8uvvo.js +0 -1
- package/dist/assets/Callback-IUPA4O7m.js +0 -1
- package/dist/assets/Console-BTsHmxR2.js +0 -1
- package/dist/assets/Conversation-BQBR_j0K.js +0 -2
- package/dist/assets/CopyToClipboard-D0yPTPYW.js +0 -1
- package/dist/assets/Detail-BcwTLOZv.js +0 -2
- package/dist/assets/Extra-CE80Lwfe.js +0 -1
- package/dist/assets/FilePreview-FTIIxIUg.js +0 -1
- package/dist/assets/History-Cq4Psb81.js +0 -1
- package/dist/assets/ImageWrapper-DAJLZ3ud.js +0 -1
- package/dist/assets/Index-B3g6nU2_.js +0 -1
- package/dist/assets/Index-B8R2yKg9.js +0 -1
- package/dist/assets/Index-B8lqf5YW.js +0 -1
- package/dist/assets/Index-BEZF06uI.js +0 -1
- package/dist/assets/Index-BdtTQ6vy.js +0 -1
- package/dist/assets/Index-Bj7Azusj.js +0 -1
- package/dist/assets/Index-C1IT2qoC.css +0 -1
- package/dist/assets/Index-CisgqdWF.js +0 -1
- package/dist/assets/Index-DOEux2Eg.js +0 -1
- package/dist/assets/Index-DQFKWn2R.js +0 -1
- package/dist/assets/Index-DWvt1qKL.js +0 -1
- package/dist/assets/Index-DXqYbSJL.js +0 -1
- package/dist/assets/Index-DfUlcZfy.js +0 -1
- package/dist/assets/Index-DyjIS2LR.js +0 -1
- package/dist/assets/Index-KwYNRzOz.js +0 -1
- package/dist/assets/Index-M5tWRCsH.js +0 -1
- package/dist/assets/Index-Zpzkw1HQ.js +0 -1
- package/dist/assets/Index-ocDyFWdk.js +0 -1
- package/dist/assets/Invitees-BCHKmn__.js +0 -1
- package/dist/assets/List-D-RW25bD.js +0 -1
- package/dist/assets/Main-DgiFebD-.js +0 -1
- package/dist/assets/Navigator-D08MfOeK.js +0 -1
- package/dist/assets/NoTasks-CQZOGbwI.js +0 -1
- package/dist/assets/ScrollList-CfFOKFbb.js +0 -1
- package/dist/assets/Subscribe-QybZFlvY.js +0 -1
- package/dist/assets/VideoPlayer-Bx5Q-Jo7.js +0 -1
- package/dist/assets/common-4G-6GjVw.js +0 -1
- package/dist/assets/common-Dq_GF8st.js +0 -1
- package/dist/assets/hailuo-D-zG7pKA.js +0 -1
- package/dist/assets/hailuo-DjqqC0kS.js +0 -1
- package/dist/assets/index-BwtxyV6k.js +0 -3
- package/dist/assets/price-Clo8IP03.js +0 -1
- package/dist/assets/vendor-B4-12K57.js +0 -5564
- package/dist/assets/vendor-Cp-P0JlL.css +0 -1
- package/dist/assets/vendor-chart-BKONGlyX.js +0 -13
- package/dist/assets/vendor-dayjs-D6Igi227.js +0 -1
- package/dist/assets/vendor-element-plus-C2t7-rNg.js +0 -6
|
@@ -0,0 +1,196 @@
|
|
|
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={};/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/var As;function j2(){return As||(As=1,function(e){var n=Zf(),t=e2(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var I=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(I,_),I.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function u(I){if(I>i)throw new RangeError('The value "'+I+'" is invalid for option "size"');var _=new Uint8Array(I);return Object.setPrototypeOf(_,a.prototype),_}function a(I,_,B){if(typeof I=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(I)}return f(I,_,B)}a.poolSize=8192;function f(I,_,B){if(typeof I=="string")return d(I,_);if(ArrayBuffer.isView(I))return m(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(oe(I,ArrayBuffer)||I&&oe(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(I,SharedArrayBuffer)||I&&oe(I.buffer,SharedArrayBuffer)))return x(I,_,B);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return a.from(T,_,B);var X=y(I);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return a.from(I[Symbol.toPrimitive]("string"),_,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}a.from=function(I,_,B){return f(I,_,B)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function o(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function c(I,_,B){return o(I),I<=0?u(I):_!==void 0?typeof B=="string"?u(I).fill(_,B):u(I).fill(_):u(I)}a.alloc=function(I,_,B){return c(I,_,B)};function l(I){return o(I),u(I<0?0:g(I)|0)}a.allocUnsafe=function(I){return l(I)},a.allocUnsafeSlow=function(I){return l(I)};function d(I,_){if((typeof _!="string"||_==="")&&(_="utf8"),!a.isEncoding(_))throw new TypeError("Unknown encoding: "+_);var B=b(I,_)|0,T=u(B),X=T.write(I,_);return X!==B&&(T=T.slice(0,X)),T}function h(I){for(var _=I.length<0?0:g(I.length)|0,B=u(_),T=0;T<_;T+=1)B[T]=I[T]&255;return B}function m(I){if(oe(I,Uint8Array)){var _=new Uint8Array(I);return x(_.buffer,_.byteOffset,_.byteLength)}return h(I)}function x(I,_,B){if(_<0||I.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<_+(B||0))throw new RangeError('"length" is outside of buffer bounds');var T;return _===void 0&&B===void 0?T=new Uint8Array(I):B===void 0?T=new Uint8Array(I,_):T=new Uint8Array(I,_,B),Object.setPrototypeOf(T,a.prototype),T}function y(I){if(a.isBuffer(I)){var _=g(I.length)|0,B=u(_);return B.length===0||I.copy(B,0,0,_),B}if(I.length!==void 0)return typeof I.length!="number"||fe(I.length)?u(0):h(I);if(I.type==="Buffer"&&Array.isArray(I.data))return h(I.data)}function g(I){if(I>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return I|0}function v(I){return+I!=I&&(I=0),a.alloc(+I)}a.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==a.prototype},a.compare=function(_,B){if(oe(_,Uint8Array)&&(_=a.from(_,_.offset,_.byteLength)),oe(B,Uint8Array)&&(B=a.from(B,B.offset,B.byteLength)),!a.isBuffer(_)||!a.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===B)return 0;for(var T=_.length,X=B.length,ee=0,te=Math.min(T,X);ee<te;++ee)if(_[ee]!==B[ee]){T=_[ee],X=B[ee];break}return T<X?-1:X<T?1:0},a.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(_,B){if(!Array.isArray(_))throw new TypeError('"list" argument must be an Array of Buffers');if(_.length===0)return a.alloc(0);var T;if(B===void 0)for(B=0,T=0;T<_.length;++T)B+=_[T].length;var X=a.allocUnsafe(B),ee=0;for(T=0;T<_.length;++T){var te=_[T];if(oe(te,Uint8Array))ee+te.length>X.length?a.from(te).copy(X,ee):Uint8Array.prototype.set.call(X,te,ee);else if(a.isBuffer(te))te.copy(X,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=te.length}return X};function b(I,_){if(a.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||oe(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var B=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&B===0)return 0;for(var X=!1;;)switch(_){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return k(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return ne(I).length;default:if(X)return T?-1:k(I).length;_=(""+_).toLowerCase(),X=!0}}a.byteLength=b;function E(I,_,B){var T=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,_>>>=0,B<=_))return"";for(I||(I="utf8");;)switch(I){case"hex":return N(this,_,B);case"utf8":case"utf-8":return L(this,_,B);case"ascii":return R(this,_,B);case"latin1":case"binary":return O(this,_,B);case"base64":return z(this,_,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,_,B);default:if(T)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}a.prototype._isBuffer=!0;function D(I,_,B){var T=I[_];I[_]=I[B],I[B]=T}a.prototype.swap16=function(){var _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<_;B+=2)D(this,B,B+1);return this},a.prototype.swap32=function(){var _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<_;B+=4)D(this,B,B+3),D(this,B+1,B+2);return this},a.prototype.swap64=function(){var _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<_;B+=8)D(this,B,B+7),D(this,B+1,B+6),D(this,B+2,B+5),D(this,B+3,B+4);return this},a.prototype.toString=function(){var _=this.length;return _===0?"":arguments.length===0?L(this,0,_):E.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(_){if(!a.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:a.compare(this,_)===0},a.prototype.inspect=function(){var _="",B=e.INSPECT_MAX_BYTES;return _=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(_+=" ... "),"<Buffer "+_+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(_,B,T,X,ee){if(oe(_,Uint8Array)&&(_=a.from(_,_.offset,_.byteLength)),!a.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(B===void 0&&(B=0),T===void 0&&(T=_?_.length:0),X===void 0&&(X=0),ee===void 0&&(ee=this.length),B<0||T>_.length||X<0||ee>this.length)throw new RangeError("out of range index");if(X>=ee&&B>=T)return 0;if(X>=ee)return-1;if(B>=T)return 1;if(B>>>=0,T>>>=0,X>>>=0,ee>>>=0,this===_)return 0;for(var te=ee-X,ce=T-B,K=Math.min(te,ce),Q=this.slice(X,ee),ie=_.slice(B,T),ae=0;ae<K;++ae)if(Q[ae]!==ie[ae]){te=Q[ae],ce=ie[ae];break}return te<ce?-1:ce<te?1:0};function w(I,_,B,T,X){if(I.length===0)return-1;if(typeof B=="string"?(T=B,B=0):B>2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,fe(B)&&(B=X?0:I.length-1),B<0&&(B=I.length+B),B>=I.length){if(X)return-1;B=I.length-1}else if(B<0)if(X)B=0;else return-1;if(typeof _=="string"&&(_=a.from(_,T)),a.isBuffer(_))return _.length===0?-1:p(I,_,B,T,X);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(I,_,B):Uint8Array.prototype.lastIndexOf.call(I,_,B):p(I,[_],B,T,X);throw new TypeError("val must be string, number or Buffer")}function p(I,_,B,T,X){var ee=1,te=I.length,ce=_.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(I.length<2||_.length<2)return-1;ee=2,te/=2,ce/=2,B/=2}function K(le,ue){return ee===1?le[ue]:le.readUInt16BE(ue*ee)}var Q;if(X){var ie=-1;for(Q=B;Q<te;Q++)if(K(I,Q)===K(_,ie===-1?0:Q-ie)){if(ie===-1&&(ie=Q),Q-ie+1===ce)return ie*ee}else ie!==-1&&(Q-=Q-ie),ie=-1}else for(B+ce>te&&(B=te-ce),Q=B;Q>=0;Q--){for(var ae=!0,se=0;se<ce;se++)if(K(I,Q+se)!==K(_,se)){ae=!1;break}if(ae)return Q}return-1}a.prototype.includes=function(_,B,T){return this.indexOf(_,B,T)!==-1},a.prototype.indexOf=function(_,B,T){return w(this,_,B,T,!0)},a.prototype.lastIndexOf=function(_,B,T){return w(this,_,B,T,!1)};function C(I,_,B,T){B=Number(B)||0;var X=I.length-B;T?(T=Number(T),T>X&&(T=X)):T=X;var ee=_.length;T>ee/2&&(T=ee/2);for(var te=0;te<T;++te){var ce=parseInt(_.substr(te*2,2),16);if(fe(ce))return te;I[B+te]=ce}return te}function S(I,_,B,T){return re(k(_,I.length-B),I,B,T)}function A(I,_,B,T){return re(H(_),I,B,T)}function j(I,_,B,T){return re(ne(_),I,B,T)}function V(I,_,B,T){return re(Y(_,I.length-B),I,B,T)}a.prototype.write=function(_,B,T,X){if(B===void 0)X="utf8",T=this.length,B=0;else if(T===void 0&&typeof B=="string")X=B,T=this.length,B=0;else if(isFinite(B))B=B>>>0,isFinite(T)?(T=T>>>0,X===void 0&&(X="utf8")):(X=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee=this.length-B;if((T===void 0||T>ee)&&(T=ee),_.length>0&&(T<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var te=!1;;)switch(X){case"hex":return C(this,_,B,T);case"utf8":case"utf-8":return S(this,_,B,T);case"ascii":case"latin1":case"binary":return A(this,_,B,T);case"base64":return j(this,_,B,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,_,B,T);default:if(te)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(I,_,B){return _===0&&B===I.length?n.fromByteArray(I):n.fromByteArray(I.slice(_,B))}function L(I,_,B){B=Math.min(I.length,B);for(var T=[],X=_;X<B;){var ee=I[X],te=null,ce=ee>239?4:ee>223?3:ee>191?2:1;if(X+ce<=B){var K,Q,ie,ae;switch(ce){case 1:ee<128&&(te=ee);break;case 2:K=I[X+1],(K&192)===128&&(ae=(ee&31)<<6|K&63,ae>127&&(te=ae));break;case 3:K=I[X+1],Q=I[X+2],(K&192)===128&&(Q&192)===128&&(ae=(ee&15)<<12|(K&63)<<6|Q&63,ae>2047&&(ae<55296||ae>57343)&&(te=ae));break;case 4:K=I[X+1],Q=I[X+2],ie=I[X+3],(K&192)===128&&(Q&192)===128&&(ie&192)===128&&(ae=(ee&15)<<18|(K&63)<<12|(Q&63)<<6|ie&63,ae>65535&&ae<1114112&&(te=ae))}}te===null?(te=65533,ce=1):te>65535&&(te-=65536,T.push(te>>>10&1023|55296),te=56320|te&1023),T.push(te),X+=ce}return W(T)}var F=4096;function W(I){var _=I.length;if(_<=F)return String.fromCharCode.apply(String,I);for(var B="",T=0;T<_;)B+=String.fromCharCode.apply(String,I.slice(T,T+=F));return B}function R(I,_,B){var T="";B=Math.min(I.length,B);for(var X=_;X<B;++X)T+=String.fromCharCode(I[X]&127);return T}function O(I,_,B){var T="";B=Math.min(I.length,B);for(var X=_;X<B;++X)T+=String.fromCharCode(I[X]);return T}function N(I,_,B){var T=I.length;(!_||_<0)&&(_=0),(!B||B<0||B>T)&&(B=T);for(var X="",ee=_;ee<B;++ee)X+=he[I[ee]];return X}function G(I,_,B){for(var T=I.slice(_,B),X="",ee=0;ee<T.length-1;ee+=2)X+=String.fromCharCode(T[ee]+T[ee+1]*256);return X}a.prototype.slice=function(_,B){var T=this.length;_=~~_,B=B===void 0?T:~~B,_<0?(_+=T,_<0&&(_=0)):_>T&&(_=T),B<0?(B+=T,B<0&&(B=0)):B>T&&(B=T),B<_&&(B=_);var X=this.subarray(_,B);return Object.setPrototypeOf(X,a.prototype),X};function J(I,_,B){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+_>B)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(_,B,T){_=_>>>0,B=B>>>0,T||J(_,B,this.length);for(var X=this[_],ee=1,te=0;++te<B&&(ee*=256);)X+=this[_+te]*ee;return X},a.prototype.readUintBE=a.prototype.readUIntBE=function(_,B,T){_=_>>>0,B=B>>>0,T||J(_,B,this.length);for(var X=this[_+--B],ee=1;B>0&&(ee*=256);)X+=this[_+--B]*ee;return X},a.prototype.readUint8=a.prototype.readUInt8=function(_,B){return _=_>>>0,B||J(_,1,this.length),this[_]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(_,B){return _=_>>>0,B||J(_,2,this.length),this[_]|this[_+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(_,B){return _=_>>>0,B||J(_,2,this.length),this[_]<<8|this[_+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(_,B){return _=_>>>0,B||J(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(_,B){return _=_>>>0,B||J(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},a.prototype.readIntLE=function(_,B,T){_=_>>>0,B=B>>>0,T||J(_,B,this.length);for(var X=this[_],ee=1,te=0;++te<B&&(ee*=256);)X+=this[_+te]*ee;return ee*=128,X>=ee&&(X-=Math.pow(2,8*B)),X},a.prototype.readIntBE=function(_,B,T){_=_>>>0,B=B>>>0,T||J(_,B,this.length);for(var X=B,ee=1,te=this[_+--X];X>0&&(ee*=256);)te+=this[_+--X]*ee;return ee*=128,te>=ee&&(te-=Math.pow(2,8*B)),te},a.prototype.readInt8=function(_,B){return _=_>>>0,B||J(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},a.prototype.readInt16LE=function(_,B){_=_>>>0,B||J(_,2,this.length);var T=this[_]|this[_+1]<<8;return T&32768?T|4294901760:T},a.prototype.readInt16BE=function(_,B){_=_>>>0,B||J(_,2,this.length);var T=this[_+1]|this[_]<<8;return T&32768?T|4294901760:T},a.prototype.readInt32LE=function(_,B){return _=_>>>0,B||J(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},a.prototype.readInt32BE=function(_,B){return _=_>>>0,B||J(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},a.prototype.readFloatLE=function(_,B){return _=_>>>0,B||J(_,4,this.length),t.read(this,_,!0,23,4)},a.prototype.readFloatBE=function(_,B){return _=_>>>0,B||J(_,4,this.length),t.read(this,_,!1,23,4)},a.prototype.readDoubleLE=function(_,B){return _=_>>>0,B||J(_,8,this.length),t.read(this,_,!0,52,8)},a.prototype.readDoubleBE=function(_,B){return _=_>>>0,B||J(_,8,this.length),t.read(this,_,!1,52,8)};function Z(I,_,B,T,X,ee){if(!a.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>X||_<ee)throw new RangeError('"value" argument is out of bounds');if(B+T>I.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(_,B,T,X){if(_=+_,B=B>>>0,T=T>>>0,!X){var ee=Math.pow(2,8*T)-1;Z(this,_,B,T,ee,0)}var te=1,ce=0;for(this[B]=_&255;++ce<T&&(te*=256);)this[B+ce]=_/te&255;return B+T},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(_,B,T,X){if(_=+_,B=B>>>0,T=T>>>0,!X){var ee=Math.pow(2,8*T)-1;Z(this,_,B,T,ee,0)}var te=T-1,ce=1;for(this[B+te]=_&255;--te>=0&&(ce*=256);)this[B+te]=_/ce&255;return B+T},a.prototype.writeUint8=a.prototype.writeUInt8=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,1,255,0),this[B]=_&255,B+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,2,65535,0),this[B]=_&255,this[B+1]=_>>>8,B+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,2,65535,0),this[B]=_>>>8,this[B+1]=_&255,B+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,4,4294967295,0),this[B+3]=_>>>24,this[B+2]=_>>>16,this[B+1]=_>>>8,this[B]=_&255,B+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,4,4294967295,0),this[B]=_>>>24,this[B+1]=_>>>16,this[B+2]=_>>>8,this[B+3]=_&255,B+4},a.prototype.writeIntLE=function(_,B,T,X){if(_=+_,B=B>>>0,!X){var ee=Math.pow(2,8*T-1);Z(this,_,B,T,ee-1,-ee)}var te=0,ce=1,K=0;for(this[B]=_&255;++te<T&&(ce*=256);)_<0&&K===0&&this[B+te-1]!==0&&(K=1),this[B+te]=(_/ce>>0)-K&255;return B+T},a.prototype.writeIntBE=function(_,B,T,X){if(_=+_,B=B>>>0,!X){var ee=Math.pow(2,8*T-1);Z(this,_,B,T,ee-1,-ee)}var te=T-1,ce=1,K=0;for(this[B+te]=_&255;--te>=0&&(ce*=256);)_<0&&K===0&&this[B+te+1]!==0&&(K=1),this[B+te]=(_/ce>>0)-K&255;return B+T},a.prototype.writeInt8=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,1,127,-128),_<0&&(_=255+_+1),this[B]=_&255,B+1},a.prototype.writeInt16LE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,2,32767,-32768),this[B]=_&255,this[B+1]=_>>>8,B+2},a.prototype.writeInt16BE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,2,32767,-32768),this[B]=_>>>8,this[B+1]=_&255,B+2},a.prototype.writeInt32LE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,4,2147483647,-2147483648),this[B]=_&255,this[B+1]=_>>>8,this[B+2]=_>>>16,this[B+3]=_>>>24,B+4},a.prototype.writeInt32BE=function(_,B,T){return _=+_,B=B>>>0,T||Z(this,_,B,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[B]=_>>>24,this[B+1]=_>>>16,this[B+2]=_>>>8,this[B+3]=_&255,B+4};function $(I,_,B,T,X,ee){if(B+T>I.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function M(I,_,B,T,X){return _=+_,B=B>>>0,X||$(I,_,B,4),t.write(I,_,B,T,23,4),B+4}a.prototype.writeFloatLE=function(_,B,T){return M(this,_,B,!0,T)},a.prototype.writeFloatBE=function(_,B,T){return M(this,_,B,!1,T)};function U(I,_,B,T,X){return _=+_,B=B>>>0,X||$(I,_,B,8),t.write(I,_,B,T,52,8),B+8}a.prototype.writeDoubleLE=function(_,B,T){return U(this,_,B,!0,T)},a.prototype.writeDoubleBE=function(_,B,T){return U(this,_,B,!1,T)},a.prototype.copy=function(_,B,T,X){if(!a.isBuffer(_))throw new TypeError("argument should be a Buffer");if(T||(T=0),!X&&X!==0&&(X=this.length),B>=_.length&&(B=_.length),B||(B=0),X>0&&X<T&&(X=T),X===T||_.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),_.length-B<X-T&&(X=_.length-B+T);var ee=X-T;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,T,X):Uint8Array.prototype.set.call(_,this.subarray(T,X),B),ee},a.prototype.fill=function(_,B,T,X){if(typeof _=="string"){if(typeof B=="string"?(X=B,B=0,T=this.length):typeof T=="string"&&(X=T,T=this.length),X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!a.isEncoding(X))throw new TypeError("Unknown encoding: "+X);if(_.length===1){var ee=_.charCodeAt(0);(X==="utf8"&&ee<128||X==="latin1")&&(_=ee)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(B<0||this.length<B||this.length<T)throw new RangeError("Out of range index");if(T<=B)return this;B=B>>>0,T=T===void 0?this.length:T>>>0,_||(_=0);var te;if(typeof _=="number")for(te=B;te<T;++te)this[te]=_;else{var ce=a.isBuffer(_)?_:a.from(_,X),K=ce.length;if(K===0)throw new TypeError('The value "'+_+'" is invalid for argument "value"');for(te=0;te<T-B;++te)this[te+B]=ce[te%K]}return this};var q=/[^+/0-9A-Za-z-_]/g;function P(I){if(I=I.split("=")[0],I=I.trim().replace(q,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function k(I,_){_=_||1/0;for(var B,T=I.length,X=null,ee=[],te=0;te<T;++te){if(B=I.charCodeAt(te),B>55295&&B<57344){if(!X){if(B>56319){(_-=3)>-1&&ee.push(239,191,189);continue}else if(te+1===T){(_-=3)>-1&&ee.push(239,191,189);continue}X=B;continue}if(B<56320){(_-=3)>-1&&ee.push(239,191,189),X=B;continue}B=(X-55296<<10|B-56320)+65536}else X&&(_-=3)>-1&&ee.push(239,191,189);if(X=null,B<128){if((_-=1)<0)break;ee.push(B)}else if(B<2048){if((_-=2)<0)break;ee.push(B>>6|192,B&63|128)}else if(B<65536){if((_-=3)<0)break;ee.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((_-=4)<0)break;ee.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return ee}function H(I){for(var _=[],B=0;B<I.length;++B)_.push(I.charCodeAt(B)&255);return _}function Y(I,_){for(var B,T,X,ee=[],te=0;te<I.length&&!((_-=2)<0);++te)B=I.charCodeAt(te),T=B>>8,X=B%256,ee.push(X),ee.push(T);return ee}function ne(I){return n.toByteArray(P(I))}function re(I,_,B,T){for(var X=0;X<T&&!(X+B>=_.length||X>=I.length);++X)_[X+B]=I[X];return X}function oe(I,_){return I instanceof _||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===_.name}function fe(I){return I!==I}var he=function(){for(var I="0123456789abcdef",_=new Array(256),B=0;B<16;++B)for(var T=B*16,X=0;X<16;++X)_[T+X]=I[B]+I[X];return _}()}(pi)),pi}var Ee=j2();const Ye=Ee.Buffer.from&&Ee.Buffer.alloc&&Ee.Buffer.allocUnsafe&&Ee.Buffer.allocUnsafeSlow?Ee.Buffer.from:e=>new Ee.Buffer(e);function Xe(e,n){const t=(r,i)=>n(r,i)>>>0;return t.signed=n,t.unsigned=t,t.model=e,t}const Vc=Xe("crc1",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=~~n,r=0;for(let i=0;i<e.length;i++){const s=e[i];r+=s}return t+=r%256,t%256});let Mo=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(Mo=new Int32Array(Mo));const Yc=Xe("crc-8",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=~~n;for(let r=0;r<e.length;r++){const i=e[r];t=Mo[(t^i)&255]&255}return t});let Uo=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array<"u"&&(Uo=new Int32Array(Uo));const Xc=Xe("dallas-1-wire",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=~~n;for(let r=0;r<e.length;r++){const i=e[r];t=Uo[(t^i)&255]&255}return t});let Lo=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(Lo=new Int32Array(Lo));const Qc=Xe("crc-16",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=~~n;for(let r=0;r<e.length;r++){const i=e[r];t=(Lo[(t^i)&255]^t>>8)&65535}return t});let jo=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array<"u"&&(jo=new Int32Array(jo));const Jc=Xe("ccitt",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=typeof n<"u"?~~n:65535;for(let r=0;r<e.length;r++){const i=e[r];t=(jo[(t>>8^i)&255]^t<<8)&65535}return t});let No=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(No=new Int32Array(No));const Zc=Xe("crc-16-modbus",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=typeof n<"u"?~~n:65535;for(let r=0;r<e.length;r++){const i=e[r];t=(No[(t^i)&255]^t>>8)&65535}return t}),eu=Xe("xmodem",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=typeof n<"u"?~~n:0;for(let r=0;r<e.length;r++){const i=e[r];let s=t>>>8&255;s^=i&255,s^=s>>>4,t=t<<8&65535,t^=s,s=s<<5&65535,t^=s,s=s<<7&65535,t^=s}return t});let Fo=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array<"u"&&(Fo=new Int32Array(Fo));const tu=Xe("kermit",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=typeof n<"u"?~~n:0;for(let r=0;r<e.length;r++){const i=e[r];t=(Fo[(t^i)&255]^t>>8)&65535}return t});let qo=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array<"u"&&(qo=new Int32Array(qo));const ru=Xe("crc-24",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=typeof n<"u"?~~n:11994318;for(let r=0;r<e.length;r++){const i=e[r];t=(qo[(t>>16^i)&255]^t<<8)&16777215}return t});let $o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&($o=new Int32Array($o));const nu=Xe("crc-32",function(e,n){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=n===0?0:~~n^-1;for(let r=0;r<e.length;r++){const i=e[r];t=$o[(t^i)&255]^t>>>8}return t^-1});let Ho=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(Ho=new Int32Array(Ho));const iu=Xe("jam",function(e,n=-1){Ee.Buffer.isBuffer(e)||(e=Ye(e));let t=n===0?0:~~n;for(let r=0;r<e.length;r++){const i=e[r];t=Ho[(t^i)&255]^t>>>8}return t}),N2={crc1:Vc,crc8:Yc,crc81wire:Xc,crc16:Qc,crc16ccitt:Jc,crc16modbus:Zc,crc16xmodem:eu,crc16kermit:tu,crc24:ru,crc32:nu,crcjam:iu},F2=Object.freeze(Object.defineProperty({__proto__:null,crc1:Vc,crc16:Qc,crc16ccitt:Jc,crc16kermit:tu,crc16modbus:Zc,crc16xmodem:eu,crc24:ru,crc32:nu,crc8:Yc,crc81wire:Xc,crcjam:iu,default:N2},Symbol.toStringTag,{value:"Module"})),q2=St(F2);var Ms;function ht(){if(Ms)return ve;Ms=1;var e=ve&&ve.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.bufferXOR=ve.setDifference=ve.arrayContains=ve.arraysEqual=ve.hasPrefix=ve.isURType=ve.intToBytes=ve.toUint32=ve.getCRCHex=ve.getCRC=ve.split=ve.partition=ve.sha256Hash=void 0;const n=e(Gc()),t=q2,r=y=>n.default("sha256").update(y).digest();ve.sha256Hash=r;const i=(y,g)=>y.match(new RegExp(".{1,"+g+"}","g"))||[y];ve.partition=i;const s=(y,g)=>[y.slice(0,-g),y.slice(-g)];ve.split=s;const u=y=>t.crc32(y);ve.getCRC=u;const a=y=>t.crc32(y).toString(16).padStart(8,"0");ve.getCRCHex=a;const f=y=>y>>>0;ve.toUint32=f;const o=y=>{const g=new ArrayBuffer(4);return new DataView(g).setUint32(0,y,!1),Buffer.from(g)};ve.intToBytes=o;const c=y=>y.split("").every((g,v)=>{let b=y.charCodeAt(v);return 97<=b&&b<=122||48<=b&&b<=57||b===45});ve.isURType=c;const l=(y,g)=>y.indexOf(g)===0;ve.hasPrefix=l;const d=(y,g)=>y.length!==g.length?!1:y.every(v=>g.includes(v));ve.arraysEqual=d;const h=(y,g)=>g.every(v=>y.includes(v));ve.arrayContains=h;const m=(y,g)=>y.filter(v=>g.indexOf(v)<0);ve.setDifference=m;const x=(y,g)=>{const v=Math.max(y.length,g.length),b=Buffer.allocUnsafe(v);for(let E=0;E<v;++E)b[E]=y[E]^g[E];return b};return ve.bufferXOR=x,ve}var ut={},zr={exports:{}},$2=zr.exports,Us;function H2(){return Us||(Us=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})($2,function(){var n=function(){function t(w){this.$hex=w}t.prototype={length:function(){return this.$hex.length/2},toString:function(w){if(!w||w==="hex"||w===16)return this.$hex;if(w==="utf-8"){for(var p="",C=0;C<this.$hex.length;C+=2)p+="%"+this.$hex.substring(C,C+2);return decodeURIComponent(p)}if(w==="latin"){for(var p=[],C=0;C<this.$hex.length;C+=2)p.push(parseInt(this.$hex.substring(C,C+2),16));return String.fromCharCode.apply(String,p)}throw new Error("Unrecognised format: "+w)}},t.fromLatinString=function(w){for(var p="",C=0;C<w.length;C++){var S=w.charCodeAt(C).toString(16);S.length===1&&(S="0"+S),p+=S}return new t(p)},t.fromUtf8String=function(w){for(var p=encodeURIComponent(w),C="",S=0;S<p.length;S++)if(p.charAt(S)==="%")C+=p.substring(S+1,S+3),S+=2;else{var A=p.charCodeAt(S).toString(16);A.length<2&&(A="0"+A),C+=A}return new t(C)};var r=[],i={},s=function(w){return function(){throw new Error(w+" not implemented")}};function u(){}u.prototype={peekByte:s("peekByte"),readByte:s("readByte"),readChunk:s("readChunk"),readFloat16:function(){var w=this.readUint16(),p=(w&32767)>>10,C=w&1023,S=w&32768;if(p===31)return C===0?S?-1/0:1/0:NaN;var A=p?Math.pow(2,p-25)*(1024+C):Math.pow(2,-24)*C;return S?-A:A},readFloat32:function(){var w=this.readUint32(),p=(w&2147483647)>>23,C=w&8388607,S=w&2147483648;if(p===255)return C===0?S?-1/0:1/0:NaN;var A=p?Math.pow(2,p-23-127)*(8388608+C):Math.pow(2,-149)*C;return S?-A:A},readFloat64:function(){var w=this.readUint32(),p=this.readUint32(),C=w>>20&2047,S=(w&1048575)*4294967296+p,A=w&2147483648;if(C===2047)return S===0?A?-1/0:1/0:NaN;var j=C?Math.pow(2,C-52-1023)*(4503599627370496+S):Math.pow(2,-1074)*S;return A?-j:j},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 a(){}a.prototype={writeByte:s("writeByte"),result:s("result"),writeFloat16:s("writeFloat16"),writeFloat32:s("writeFloat32"),writeFloat64:s("writeFloat64"),writeUint16:function(w){this.writeByte(w>>8&255),this.writeByte(w&255)},writeUint32:function(w){this.writeUint16(w>>16&65535),this.writeUint16(w&65535)},writeUint64:function(w){if(w>=9007199254740992||w<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+w+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(w/4294967296)),this.writeUint32(w%4294967296)},writeString:s("writeString"),canWriteBinary:function(w){return!1},writeBinary:s("writeChunk")};function f(w){var p=w.readByte(),C=p>>5,S=p&31;return{type:C,value:S}}function o(w,p){var C=w.value;if(C<24)return C;if(C==24)return p.readByte();if(C==25)return p.readUint16();if(C==26)return p.readUint32();if(C==27)return p.readUint64();if(C==31)return null;s("Additional info: "+C)()}function c(w,p,C){C.writeByte(w<<5|p)}function l(w,p,C){var S=w<<5;p<24?C.writeByte(S|p):p<256?(C.writeByte(S|24),C.writeByte(p)):p<65536?(C.writeByte(S|25),C.writeUint16(p)):p<4294967296?(C.writeByte(S|26),C.writeUint32(p)):(C.writeByte(S|27),C.writeUint64(p))}var d=new Error;function h(w){var p=f(w);switch(p.type){case 0:return o(p,w);case 1:return-1-o(p,w);case 2:return w.readChunk(o(p,w));case 3:var C=w.readChunk(o(p,w));return C.toString("utf-8");case 4:case 5:var S=o(p,w),F=[];if(S!==null){p.type===5&&(S*=2);for(var A=0;A<S;A++)F[A]=h(w)}else for(var j;(j=h(w))!==d;)F.push(j);if(p.type===5){for(var V={},A=0;A<F.length;A+=2)V[F[A]]=F[A+1];return V}else return F;case 6:var z=o(p,w),L=i[z],F=h(w);return L?L(F):F;case 7:if(p.value===25)return w.readFloat16();if(p.value===26)return w.readFloat32();if(p.value===27)return w.readFloat64();switch(o(p,w)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return d;default:throw new Error("Unknown fixed value: "+p.value)}default:throw new Error("Unsupported header: "+JSON.stringify(p))}throw new Error("not implemented yet")}function m(w,p){for(var C=0;C<r.length;C++){var S=r[C].fn(w);if(S!==void 0)return l(6,r[C].tag,p),m(S,p)}if(w&&typeof w.toCBOR=="function"&&(w=w.toCBOR()),w===!1)l(7,20,p);else if(w===!0)l(7,21,p);else if(w===null)l(7,22,p);else if(w===void 0)l(7,23,p);else if(typeof w=="number")Math.floor(w)===w&&w<9007199254740992&&w>-9007199254740992?w<0?l(1,-1-w,p):l(0,w,p):(c(7,27,p),p.writeFloat64(w));else if(typeof w=="string")p.writeString(w,function(j){l(3,j,p)});else if(p.canWriteBinary(w))p.writeBinary(w,function(j){l(2,j,p)});else if(typeof w=="object")if(g.config.useToJSON&&typeof w.toJSON=="function"&&(w=w.toJSON()),Array.isArray(w)){l(4,w.length,p);for(var C=0;C<w.length;C++)m(w[C],p)}else{var A=Object.keys(w);l(5,A.length,p);for(var C=0;C<A.length;C++)m(A[C],p),m(w[A[C]],p)}else throw new Error("CBOR encoding not supported: "+w)}var x=[],y=[],g={config:{useToJSON:!0},addWriter:function(w,p){typeof w=="string"?y.push(function(C){if(w===C)return p(C)}):y.push(w)},addReader:function(w,p){typeof w=="string"?x.push(function(C,S){if(w===S)return p(C,S)}):x.push(w)},encode:function(w,p){for(var C=0;C<y.length;C++){var S=y[C],A=S(p);if(A)return m(w,A),A.result()}throw new Error("Unsupported output format: "+p)},decode:function(w,p){for(var C=0;C<x.length;C++){var S=x[C],A=S(w,p);if(A)return h(A)}throw new Error("Unsupported input format: "+p)},addSemanticEncode:function(w,p){if(typeof w!="number"||w%1!==0||w<0)throw new Error("Tag must be a positive integer");return r.push({tag:w,fn:p}),this},addSemanticDecode:function(w,p){if(typeof w!="number"||w%1!==0||w<0)throw new Error("Tag must be a positive integer");return i[w]=p,this},Reader:u,Writer:a};function v(w){this.buffer=w,this.pos=0}v.prototype=Object.create(u.prototype),v.prototype.peekByte=function(){return this.buffer[this.pos]},v.prototype.readByte=function(){return this.buffer[this.pos++]},v.prototype.readUint16=function(){var w=this.buffer.readUInt16BE(this.pos);return this.pos+=2,w},v.prototype.readUint32=function(){var w=this.buffer.readUInt32BE(this.pos);return this.pos+=4,w},v.prototype.readFloat32=function(){var w=this.buffer.readFloatBE(this.pos);return this.pos+=4,w},v.prototype.readFloat64=function(){var w=this.buffer.readDoubleBE(this.pos);return this.pos+=8,w},v.prototype.readChunk=function(w){var p=Buffer.alloc(w);return this.buffer.copy(p,0,this.pos,this.pos+=w),p};function b(w){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=w}b.prototype=Object.create(a.prototype),b.prototype.writeByte=function(w){this.latestBuffer[this.latestBufferOffset++]=w,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},b.prototype.writeFloat32=function(w){var p=Buffer.alloc(4);p.writeFloatBE(w,0),this.writeBuffer(p)},b.prototype.writeFloat64=function(w){var p=Buffer.alloc(8);p.writeDoubleBE(w,0),this.writeBuffer(p)},b.prototype.writeString=function(w,p){var C=Buffer.from(w,"utf-8");p(C.length),this.writeBuffer(C)},b.prototype.canWriteBinary=function(w){return w instanceof Buffer},b.prototype.writeBinary=function(w,p){p(w.length),this.writeBuffer(w)},b.prototype.writeBuffer=function(w){if(!(w instanceof Buffer))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=w.length?(w.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=w.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(w),this.latestBuffer=Buffer.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(w),this.byteLength+=w.length},b.prototype.result=function(){for(var w=Buffer.alloc(this.byteLength),p=0,C=0;C<this.completeBuffers.length;C++){var S=this.completeBuffers[C];S.copy(w,p,0,S.length),p+=S.length}return this.latestBufferOffset&&this.latestBuffer.copy(w,p,0,this.latestBufferOffset),this.stringFormat?w.toString(this.stringFormat):w},typeof Buffer=="function"&&(g.addReader(function(w,p){if(w instanceof Buffer)return new v(w);if(p==="hex"||p==="base64"){var C=Buffer.from(w,p);return new v(C)}}),g.addWriter(function(w){if(!w||w==="buffer")return new b;if(w==="hex"||w==="base64")return new b(w)}));function E(w){this.hex=w,this.pos=0}E.prototype=Object.create(u.prototype),E.prototype.peekByte=function(){var w=this.hex.substring(this.pos,2);return parseInt(w,16)},E.prototype.readByte=function(){var w=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(w,16)},E.prototype.readChunk=function(w){var p=this.hex.substring(this.pos,this.pos+w*2);return this.pos+=w*2,typeof Buffer=="function"?Buffer.from(p,"hex"):new t(p)};function D(w){this.$hex="",this.finalFormat=w||"hex"}return D.prototype=Object.create(a.prototype),D.prototype.writeByte=function(w){if(w<0||w>255)throw new Error("Byte value out of range: "+w);var p=w.toString(16);p.length==1&&(p="0"+p),this.$hex+=p},D.prototype.canWriteBinary=function(w){return w instanceof t||typeof Buffer=="function"&&w instanceof Buffer},D.prototype.writeBinary=function(w,p){if(w instanceof t)p(w.length()),this.$hex+=w.$hex;else if(typeof Buffer=="function"&&w instanceof Buffer)p(w.length),this.$hex+=w.toString("hex");else throw new TypeError("HexWriter only accepts BinaryHex or Buffers")},D.prototype.result=function(){return this.finalFormat==="buffer"&&typeof Buffer=="function"?Buffer.from(this.$hex,"hex"):new t(this.$hex).toString(this.finalFormat)},D.prototype.writeString=function(w,p){var C=t.fromUtf8String(w);p(C.length()),this.$hex+=C.$hex},g.addReader(function(w,p){if(w instanceof t||w.$hex)return new E(w.$hex);if(p==="hex")return new E(w)}),g.addWriter(function(w){if(w==="hex")return new D}),g}();return n.addSemanticEncode(0,function(t){if(t instanceof Date)return t.toISOString()}).addSemanticDecode(0,function(t){return new Date(t)}).addSemanticDecode(1,function(t){return new Date(t)}),n})}(zr)),zr.exports}var Ls;function ou(){if(Ls)return ut;Ls=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.cborDecode=ut.cborEncode=void 0;const e=H2(),n=r=>e.encode(r);ut.cborEncode=n;const t=r=>e.decode(Buffer.isBuffer(r)?r:Buffer.from(r,"hex"));return ut.cborDecode=t,ut}var js;function au(){if(js)return Ur;js=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=ma(),n=ht(),t=ou();class r{constructor(s,u="bytes"){if(this._cborPayload=s,this._type=u,!n.isURType(this._type))throw new e.InvalidTypeError}static fromBuffer(s){return new r(t.cborEncode(s))}static from(s,u){return r.fromBuffer(Buffer.from(s,u))}decodeCBOR(){return t.cborDecode(this._cborPayload)}get type(){return this._type}get cbor(){return this._cborPayload}equals(s){return this.type===s.type&&this.cbor.equals(s.cbor)}}return Ur.default=r,Ur}var gt={},Ze={},gi={exports:{}},yi={},mi={},vi={},xi,Ns;function K2(){if(Ns)return xi;Ns=1;var e=cn()(),n=dt(),t=n("Object.prototype.toString"),r=function(a){return e&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:t(a)==="[object Arguments]"},i=function(a){return r(a)?!0:a!==null&&typeof a=="object"&&"length"in a&&typeof a.length=="number"&&a.length>=0&&t(a)!=="[object Array]"&&"callee"in a&&t(a.callee)==="[object Function]"},s=function(){return r(arguments)}();return r.isLegacyArguments=i,xi=s?r:i,xi}var bi,Fs;function z2(){if(Fs)return bi;Fs=1;var e=dt(),n=cn()(),t=c2(),r=an(),i;if(n){var s=e("RegExp.prototype.exec"),u={},a=function(){throw u},f={toString:a,valueOf:a};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=a),i=function(d){if(!d||typeof d!="object")return!1;var h=r(d,"lastIndex"),m=h&&t(h,"value");if(!m)return!1;try{s(d,f)}catch(x){return x===u}}}else{var o=e("Object.prototype.toString"),c="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:o(d)===c}}return bi=i,bi}var Ci,qs;function G2(){if(qs)return Ci;qs=1;var e=dt(),n=z2(),t=e("RegExp.prototype.exec"),r=on();return Ci=function(s){if(!n(s))throw new r("`regex` must be a RegExp");return function(a){return t(s,a)!==null}},Ci}var _i,$s;function W2(){if($s)return _i;$s=1;const e=(function*(){}).constructor;return _i=()=>e,_i}var Bi,Hs;function V2(){if(Hs)return Bi;Hs=1;var e=dt(),n=G2(),t=n(/^\s*(?:function)?\*/),r=cn()(),i=Dc(),s=e("Object.prototype.toString"),u=e("Function.prototype.toString"),a=W2();return Bi=function(o){if(typeof o!="function")return!1;if(t(u(o)))return!0;if(!r){var c=s(o);return c==="[object GeneratorFunction]"}if(!i)return!1;var l=a();return l&&i(o)===l.prototype},Bi}var Ks;function Y2(){return Ks||(Ks=1,function(e){var n=K2(),t=V2(),r=Uc(),i=Lc();function s(T){return T.call.bind(T)}var u=typeof BigInt<"u",a=typeof Symbol<"u",f=s(Object.prototype.toString),o=s(Number.prototype.valueOf),c=s(String.prototype.valueOf),l=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(a)var h=s(Symbol.prototype.valueOf);function m(T,X){if(typeof T!="object")return!1;try{return X(T),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=t,e.isTypedArray=i;function x(T){return typeof Promise<"u"&&T instanceof Promise||T!==null&&typeof T=="object"&&typeof T.then=="function"&&typeof T.catch=="function"}e.isPromise=x;function y(T){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(T):i(T)||$(T)}e.isArrayBufferView=y;function g(T){return r(T)==="Uint8Array"}e.isUint8Array=g;function v(T){return r(T)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function b(T){return r(T)==="Uint16Array"}e.isUint16Array=b;function E(T){return r(T)==="Uint32Array"}e.isUint32Array=E;function D(T){return r(T)==="Int8Array"}e.isInt8Array=D;function w(T){return r(T)==="Int16Array"}e.isInt16Array=w;function p(T){return r(T)==="Int32Array"}e.isInt32Array=p;function C(T){return r(T)==="Float32Array"}e.isFloat32Array=C;function S(T){return r(T)==="Float64Array"}e.isFloat64Array=S;function A(T){return r(T)==="BigInt64Array"}e.isBigInt64Array=A;function j(T){return r(T)==="BigUint64Array"}e.isBigUint64Array=j;function V(T){return f(T)==="[object Map]"}V.working=typeof Map<"u"&&V(new Map);function z(T){return typeof Map>"u"?!1:V.working?V(T):T instanceof Map}e.isMap=z;function L(T){return f(T)==="[object Set]"}L.working=typeof Set<"u"&&L(new Set);function F(T){return typeof Set>"u"?!1:L.working?L(T):T instanceof Set}e.isSet=F;function W(T){return f(T)==="[object WeakMap]"}W.working=typeof WeakMap<"u"&&W(new WeakMap);function R(T){return typeof WeakMap>"u"?!1:W.working?W(T):T instanceof WeakMap}e.isWeakMap=R;function O(T){return f(T)==="[object WeakSet]"}O.working=typeof WeakSet<"u"&&O(new WeakSet);function N(T){return O(T)}e.isWeakSet=N;function G(T){return f(T)==="[object ArrayBuffer]"}G.working=typeof ArrayBuffer<"u"&&G(new ArrayBuffer);function J(T){return typeof ArrayBuffer>"u"?!1:G.working?G(T):T instanceof ArrayBuffer}e.isArrayBuffer=J;function Z(T){return f(T)==="[object DataView]"}Z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Z(new DataView(new ArrayBuffer(1),0,1));function $(T){return typeof DataView>"u"?!1:Z.working?Z(T):T instanceof DataView}e.isDataView=$;var M=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(T){return f(T)==="[object SharedArrayBuffer]"}function q(T){return typeof M>"u"?!1:(typeof U.working>"u"&&(U.working=U(new M)),U.working?U(T):T instanceof M)}e.isSharedArrayBuffer=q;function P(T){return f(T)==="[object AsyncFunction]"}e.isAsyncFunction=P;function k(T){return f(T)==="[object Map Iterator]"}e.isMapIterator=k;function H(T){return f(T)==="[object Set Iterator]"}e.isSetIterator=H;function Y(T){return f(T)==="[object Generator]"}e.isGeneratorObject=Y;function ne(T){return f(T)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ne;function re(T){return m(T,o)}e.isNumberObject=re;function oe(T){return m(T,c)}e.isStringObject=oe;function fe(T){return m(T,l)}e.isBooleanObject=fe;function he(T){return u&&m(T,d)}e.isBigIntObject=he;function I(T){return a&&m(T,h)}e.isSymbolObject=I;function _(T){return re(T)||oe(T)||fe(T)||he(T)||I(T)}e.isBoxedPrimitive=_;function B(T){return typeof Uint8Array<"u"&&(J(T)||q(T))}e.isAnyArrayBuffer=B,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(T){Object.defineProperty(e,T,{enumerable:!1,value:function(){throw new Error(T+" is not supported in userland")}})})}(vi)),vi}var wi,zs;function X2(){return zs||(zs=1,wi=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),wi}var Gs;function vr(){return Gs||(Gs=1,function(e){var n={},t=Object.getOwnPropertyDescriptors||function(M){for(var U=Object.keys(M),q={},P=0;P<U.length;P++)q[U[P]]=Object.getOwnPropertyDescriptor(M,U[P]);return q},r=/%[sdj%]/g;e.format=function($){if(!w($)){for(var M=[],U=0;U<arguments.length;U++)M.push(a(arguments[U]));return M.join(" ")}for(var U=1,q=arguments,P=q.length,k=String($).replace(r,function(Y){if(Y==="%%")return"%";if(U>=P)return Y;switch(Y){case"%s":return String(q[U++]);case"%d":return Number(q[U++]);case"%j":try{return JSON.stringify(q[U++])}catch{return"[Circular]"}default:return Y}}),H=q[U];U<P;H=q[++U])b(H)||!A(H)?k+=" "+H:k+=" "+a(H);return k},e.deprecate=function($,M){if(typeof process<"u"&&process.noDeprecation===!0)return $;if(typeof process>"u")return function(){return e.deprecate($,M).apply(this,arguments)};var U=!1;function q(){if(!U){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),U=!0}return $.apply(this,arguments)}return q};var i={},s=/^$/;if(n.NODE_DEBUG){var u=n.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}e.debuglog=function($){if($=$.toUpperCase(),!i[$])if(s.test($)){var M=process.pid;i[$]=function(){var U=e.format.apply(e,arguments);console.error("%s %d: %s",$,M,U)}}else i[$]=function(){};return i[$]};function a($,M){var U={seen:[],stylize:o};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),v(M)?U.showHidden=M:M&&e._extend(U,M),C(U.showHidden)&&(U.showHidden=!1),C(U.depth)&&(U.depth=2),C(U.colors)&&(U.colors=!1),C(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=f),l(U,$,U.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f($,M){var U=a.styles[M];return U?"\x1B["+a.colors[U][0]+"m"+$+"\x1B["+a.colors[U][1]+"m":$}function o($,M){return $}function c($){var M={};return $.forEach(function(U,q){M[U]=!0}),M}function l($,M,U){if($.customInspect&&M&&z(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var q=M.inspect(U,$);return w(q)||(q=l($,q,U)),q}var P=d($,M);if(P)return P;var k=Object.keys(M),H=c(k);if($.showHidden&&(k=Object.getOwnPropertyNames(M)),V(M)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return h(M);if(k.length===0){if(z(M)){var Y=M.name?": "+M.name:"";return $.stylize("[Function"+Y+"]","special")}if(S(M))return $.stylize(RegExp.prototype.toString.call(M),"regexp");if(j(M))return $.stylize(Date.prototype.toString.call(M),"date");if(V(M))return h(M)}var ne="",re=!1,oe=["{","}"];if(g(M)&&(re=!0,oe=["[","]"]),z(M)){var fe=M.name?": "+M.name:"";ne=" [Function"+fe+"]"}if(S(M)&&(ne=" "+RegExp.prototype.toString.call(M)),j(M)&&(ne=" "+Date.prototype.toUTCString.call(M)),V(M)&&(ne=" "+h(M)),k.length===0&&(!re||M.length==0))return oe[0]+ne+oe[1];if(U<0)return S(M)?$.stylize(RegExp.prototype.toString.call(M),"regexp"):$.stylize("[Object]","special");$.seen.push(M);var he;return re?he=m($,M,U,H,k):he=k.map(function(I){return x($,M,U,H,I,re)}),$.seen.pop(),y(he,ne,oe)}function d($,M){if(C(M))return $.stylize("undefined","undefined");if(w(M)){var U="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(U,"string")}if(D(M))return $.stylize(""+M,"number");if(v(M))return $.stylize(""+M,"boolean");if(b(M))return $.stylize("null","null")}function h($){return"["+Error.prototype.toString.call($)+"]"}function m($,M,U,q,P){for(var k=[],H=0,Y=M.length;H<Y;++H)N(M,String(H))?k.push(x($,M,U,q,String(H),!0)):k.push("");return P.forEach(function(ne){ne.match(/^\d+$/)||k.push(x($,M,U,q,ne,!0))}),k}function x($,M,U,q,P,k){var H,Y,ne;if(ne=Object.getOwnPropertyDescriptor(M,P)||{value:M[P]},ne.get?ne.set?Y=$.stylize("[Getter/Setter]","special"):Y=$.stylize("[Getter]","special"):ne.set&&(Y=$.stylize("[Setter]","special")),N(q,P)||(H="["+P+"]"),Y||($.seen.indexOf(ne.value)<0?(b(U)?Y=l($,ne.value,null):Y=l($,ne.value,U-1),Y.indexOf(`
|
|
7
|
+
`)>-1&&(k?Y=Y.split(`
|
|
8
|
+
`).map(function(re){return" "+re}).join(`
|
|
9
|
+
`).slice(2):Y=`
|
|
10
|
+
`+Y.split(`
|
|
11
|
+
`).map(function(re){return" "+re}).join(`
|
|
12
|
+
`))):Y=$.stylize("[Circular]","special")),C(H)){if(k&&P.match(/^\d+$/))return Y;H=JSON.stringify(""+P),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=$.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=$.stylize(H,"string"))}return H+": "+Y}function y($,M,U){var q=$.reduce(function(P,k){return k.indexOf(`
|
|
13
|
+
`)>=0,P+k.replace(/\u001b\[\d\d?m/g,"").length+1},0);return q>60?U[0]+(M===""?"":M+`
|
|
14
|
+
`)+" "+$.join(`,
|
|
15
|
+
`)+" "+U[1]:U[0]+M+" "+$.join(", ")+" "+U[1]}e.types=Y2();function g($){return Array.isArray($)}e.isArray=g;function v($){return typeof $=="boolean"}e.isBoolean=v;function b($){return $===null}e.isNull=b;function E($){return $==null}e.isNullOrUndefined=E;function D($){return typeof $=="number"}e.isNumber=D;function w($){return typeof $=="string"}e.isString=w;function p($){return typeof $=="symbol"}e.isSymbol=p;function C($){return $===void 0}e.isUndefined=C;function S($){return A($)&&F($)==="[object RegExp]"}e.isRegExp=S,e.types.isRegExp=S;function A($){return typeof $=="object"&&$!==null}e.isObject=A;function j($){return A($)&&F($)==="[object Date]"}e.isDate=j,e.types.isDate=j;function V($){return A($)&&(F($)==="[object Error]"||$ instanceof Error)}e.isError=V,e.types.isNativeError=V;function z($){return typeof $=="function"}e.isFunction=z;function L($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}e.isPrimitive=L,e.isBuffer=X2();function F($){return Object.prototype.toString.call($)}function W($){return $<10?"0"+$.toString(10):$.toString(10)}var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var $=new Date,M=[W($.getHours()),W($.getMinutes()),W($.getSeconds())].join(":");return[$.getDate(),R[$.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",O(),e.format.apply(e,arguments))},e.inherits=Pe(),e._extend=function($,M){if(!M||!A(M))return $;for(var U=Object.keys(M),q=U.length;q--;)$[U[q]]=M[U[q]];return $};function N($,M){return Object.prototype.hasOwnProperty.call($,M)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&M[G]){var U=M[G];if(typeof U!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(U,G,{value:U,enumerable:!1,writable:!1,configurable:!0}),U}function U(){for(var q,P,k=new Promise(function(ne,re){q=ne,P=re}),H=[],Y=0;Y<arguments.length;Y++)H.push(arguments[Y]);H.push(function(ne,re){ne?P(ne):q(re)});try{M.apply(this,H)}catch(ne){P(ne)}return k}return Object.setPrototypeOf(U,Object.getPrototypeOf(M)),G&&Object.defineProperty(U,G,{value:U,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(U,t(M))},e.promisify.custom=G;function J($,M){if(!$){var U=new Error("Promise was rejected with a falsy value");U.reason=$,$=U}return M($)}function Z($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var U=[],q=0;q<arguments.length;q++)U.push(arguments[q]);var P=U.pop();if(typeof P!="function")throw new TypeError("The last argument must be of type Function");var k=this,H=function(){return P.apply(k,arguments)};$.apply(this,U).then(function(Y){process.nextTick(H.bind(null,null,Y))},function(Y){process.nextTick(J.bind(null,Y,H))})}return Object.setPrototypeOf(M,Object.getPrototypeOf($)),Object.defineProperties(M,t($)),M}e.callbackify=Z}(mi)),mi}var Ws;function su(){if(Ws)return yi;Ws=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(v)}function n(v,b,E){return Object.defineProperty(v,"prototype",{writable:!1}),v}function t(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function r(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),b&&i(v,b)}function i(v,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,w){return D.__proto__=w,D},i(v,b)}function s(v){var b=f();return function(){var D=o(v),w;if(b){var p=o(this).constructor;w=Reflect.construct(D,arguments,p)}else w=D.apply(this,arguments);return u(this,w)}}function u(v,b){if(b&&(e(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(v)}function a(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(v){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},o(v)}var c={},l,d;function h(v,b,E){E||(E=Error);function D(p,C,S){return typeof b=="string"?b:b(p,C,S)}var w=function(p){r(S,p);var C=s(S);function S(A,j,V){var z;return t(this,S),z=C.call(this,D(A,j,V)),z.code=v,z}return n(S)}(E);c[v]=w}function m(v,b){if(Array.isArray(v)){var E=v.length;return v=v.map(function(D){return String(D)}),E>2?"one of ".concat(b," ").concat(v.slice(0,E-1).join(", "),", or ")+v[E-1]:E===2?"one of ".concat(b," ").concat(v[0]," or ").concat(v[1]):"of ".concat(b," ").concat(v[0])}else return"of ".concat(b," ").concat(String(v))}function x(v,b,E){return v.substr(0,b.length)===b}function y(v,b,E){return(E===void 0||E>v.length)&&(E=v.length),v.substring(E-b.length,E)===b}function g(v,b,E){return typeof E!="number"&&(E=0),E+b.length>v.length?!1:v.indexOf(b,E)!==-1}return h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(v,b,E){l===void 0&&(l=xr()),l(typeof v=="string","'name' must be a string");var D;typeof b=="string"&&x(b,"not ")?(D="must not be",b=b.replace(/^not /,"")):D="must be";var w;if(y(v," argument"))w="The ".concat(v," ").concat(D," ").concat(m(b,"type"));else{var p=g(v,".")?"property":"argument";w='The "'.concat(v,'" ').concat(p," ").concat(D," ").concat(m(b,"type"))}return w+=". Received type ".concat(e(E)),w},TypeError),h("ERR_INVALID_ARG_VALUE",function(v,b){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=vr());var D=d.inspect(b);return D.length>128&&(D="".concat(D.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(E,". Received ").concat(D)},TypeError),h("ERR_INVALID_RETURN_VALUE",function(v,b,E){var D;return E&&E.constructor&&E.constructor.name?D="instance of ".concat(E.constructor.name):D="type ".concat(e(E)),"Expected ".concat(v,' to be returned from the "').concat(b,'"')+" function but got ".concat(D,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var v=arguments.length,b=new Array(v),E=0;E<v;E++)b[E]=arguments[E];l===void 0&&(l=xr()),l(b.length>0,"At least one arg needs to be specified");var D="The ",w=b.length;switch(b=b.map(function(p){return'"'.concat(p,'"')}),w){case 1:D+="".concat(b[0]," argument");break;case 2:D+="".concat(b[0]," and ").concat(b[1]," arguments");break;default:D+=b.slice(0,w-1).join(", "),D+=", and ".concat(b[w-1]," arguments");break}return"".concat(D," must be specified")},TypeError),yi.codes=c,yi}var Si,Vs;function Q2(){if(Vs)return Si;Vs=1;function e(N,G){var J=Object.keys(N);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(N);G&&(Z=Z.filter(function($){return Object.getOwnPropertyDescriptor(N,$).enumerable})),J.push.apply(J,Z)}return J}function n(N){for(var G=1;G<arguments.length;G++){var J=arguments[G]!=null?arguments[G]:{};G%2?e(Object(J),!0).forEach(function(Z){t(N,Z,J[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(J)):e(Object(J)).forEach(function(Z){Object.defineProperty(N,Z,Object.getOwnPropertyDescriptor(J,Z))})}return N}function t(N,G,J){return G=u(G),G in N?Object.defineProperty(N,G,{value:J,enumerable:!0,configurable:!0,writable:!0}):N[G]=J,N}function r(N,G){if(!(N instanceof G))throw new TypeError("Cannot call a class as a function")}function i(N,G){for(var J=0;J<G.length;J++){var Z=G[J];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(N,u(Z.key),Z)}}function s(N,G,J){return G&&i(N.prototype,G),Object.defineProperty(N,"prototype",{writable:!1}),N}function u(N){var G=a(N,"string");return v(G)==="symbol"?G:String(G)}function a(N,G){if(v(N)!=="object"||N===null)return N;var J=N[Symbol.toPrimitive];if(J!==void 0){var Z=J.call(N,G);if(v(Z)!=="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function f(N,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(G&&G.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),G&&y(N,G)}function o(N){var G=m();return function(){var Z=g(N),$;if(G){var M=g(this).constructor;$=Reflect.construct(Z,arguments,M)}else $=Z.apply(this,arguments);return c(this,$)}}function c(N,G){if(G&&(v(G)==="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(N)}function l(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function d(N){var G=typeof Map=="function"?new Map:void 0;return d=function(Z){if(Z===null||!x(Z))return Z;if(typeof Z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof G<"u"){if(G.has(Z))return G.get(Z);G.set(Z,$)}function $(){return h(Z,arguments,g(this).constructor)}return $.prototype=Object.create(Z.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),y($,Z)},d(N)}function h(N,G,J){return m()?h=Reflect.construct.bind():h=function($,M,U){var q=[null];q.push.apply(q,M);var P=Function.bind.apply($,q),k=new P;return U&&y(k,U.prototype),k},h.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x(N){return Function.toString.call(N).indexOf("[native code]")!==-1}function y(N,G){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,$){return Z.__proto__=$,Z},y(N,G)}function g(N){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},g(N)}function v(N){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},v(N)}var b=vr(),E=b.inspect,D=su(),w=D.codes.ERR_INVALID_ARG_TYPE;function p(N,G,J){return(J===void 0||J>N.length)&&(J=N.length),N.substring(J-G.length,J)===G}function C(N,G){if(G=Math.floor(G),N.length==0||G==0)return"";var J=N.length*G;for(G=Math.floor(Math.log(G)/Math.log(2));G;)N+=N,G--;return N+=N.substring(0,J-N.length),N}var S="",A="",j="",V="",z={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function F(N){var G=Object.keys(N),J=Object.create(Object.getPrototypeOf(N));return G.forEach(function(Z){J[Z]=N[Z]}),Object.defineProperty(J,"message",{value:N.message}),J}function W(N){return E(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function R(N,G,J){var Z="",$="",M=0,U="",q=!1,P=W(N),k=P.split(`
|
|
16
|
+
`),H=W(G).split(`
|
|
17
|
+
`),Y=0,ne="";if(J==="strictEqual"&&v(N)==="object"&&v(G)==="object"&&N!==null&&G!==null&&(J="strictEqualObject"),k.length===1&&H.length===1&&k[0]!==H[0]){var re=k[0].length+H[0].length;if(re<=L){if((v(N)!=="object"||N===null)&&(v(G)!=="object"||G===null)&&(N!==0||G!==0))return"".concat(z[J],`
|
|
18
|
+
|
|
19
|
+
`)+"".concat(k[0]," !== ").concat(H[0],`
|
|
20
|
+
`)}else if(J!=="strictEqualObject"){var oe=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(re<oe){for(;k[0][Y]===H[0][Y];)Y++;Y>2&&(ne=`
|
|
21
|
+
`.concat(C(" ",Y),"^"),Y=0)}}}for(var fe=k[k.length-1],he=H[H.length-1];fe===he&&(Y++<2?U=`
|
|
22
|
+
`.concat(fe).concat(U):Z=fe,k.pop(),H.pop(),!(k.length===0||H.length===0));)fe=k[k.length-1],he=H[H.length-1];var I=Math.max(k.length,H.length);if(I===0){var _=P.split(`
|
|
23
|
+
`);if(_.length>30)for(_[26]="".concat(S,"...").concat(V);_.length>27;)_.pop();return"".concat(z.notIdentical,`
|
|
24
|
+
|
|
25
|
+
`).concat(_.join(`
|
|
26
|
+
`),`
|
|
27
|
+
`)}Y>3&&(U=`
|
|
28
|
+
`.concat(S,"...").concat(V).concat(U),q=!0),Z!==""&&(U=`
|
|
29
|
+
`.concat(Z).concat(U),Z="");var B=0,T=z[J]+`
|
|
30
|
+
`.concat(A,"+ actual").concat(V," ").concat(j,"- expected").concat(V),X=" ".concat(S,"...").concat(V," Lines skipped");for(Y=0;Y<I;Y++){var ee=Y-M;if(k.length<Y+1)ee>1&&Y>2&&(ee>4?($+=`
|
|
31
|
+
`.concat(S,"...").concat(V),q=!0):ee>3&&($+=`
|
|
32
|
+
`.concat(H[Y-2]),B++),$+=`
|
|
33
|
+
`.concat(H[Y-1]),B++),M=Y,Z+=`
|
|
34
|
+
`.concat(j,"-").concat(V," ").concat(H[Y]),B++;else if(H.length<Y+1)ee>1&&Y>2&&(ee>4?($+=`
|
|
35
|
+
`.concat(S,"...").concat(V),q=!0):ee>3&&($+=`
|
|
36
|
+
`.concat(k[Y-2]),B++),$+=`
|
|
37
|
+
`.concat(k[Y-1]),B++),M=Y,$+=`
|
|
38
|
+
`.concat(A,"+").concat(V," ").concat(k[Y]),B++;else{var te=H[Y],ce=k[Y],K=ce!==te&&(!p(ce,",")||ce.slice(0,-1)!==te);K&&p(te,",")&&te.slice(0,-1)===ce&&(K=!1,ce+=","),K?(ee>1&&Y>2&&(ee>4?($+=`
|
|
39
|
+
`.concat(S,"...").concat(V),q=!0):ee>3&&($+=`
|
|
40
|
+
`.concat(k[Y-2]),B++),$+=`
|
|
41
|
+
`.concat(k[Y-1]),B++),M=Y,$+=`
|
|
42
|
+
`.concat(A,"+").concat(V," ").concat(ce),Z+=`
|
|
43
|
+
`.concat(j,"-").concat(V," ").concat(te),B+=2):($+=Z,Z="",(ee===1||Y===0)&&($+=`
|
|
44
|
+
`.concat(ce),B++))}if(B>20&&Y<I-2)return"".concat(T).concat(X,`
|
|
45
|
+
`).concat($,`
|
|
46
|
+
`).concat(S,"...").concat(V).concat(Z,`
|
|
47
|
+
`)+"".concat(S,"...").concat(V)}return"".concat(T).concat(q?X:"",`
|
|
48
|
+
`).concat($).concat(Z).concat(U).concat(ne)}var O=function(N,G){f(Z,N);var J=o(Z);function Z($){var M;if(r(this,Z),v($)!=="object"||$===null)throw new w("options","Object",$);var U=$.message,q=$.operator,P=$.stackStartFn,k=$.actual,H=$.expected,Y=Error.stackTraceLimit;if(Error.stackTraceLimit=0,U!=null)M=J.call(this,String(U));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(S="\x1B[34m",A="\x1B[32m",V="\x1B[39m",j="\x1B[31m"):(S="",A="",V="",j="")),v(k)==="object"&&k!==null&&v(H)==="object"&&H!==null&&"stack"in k&&k instanceof Error&&"stack"in H&&H instanceof Error&&(k=F(k),H=F(H)),q==="deepStrictEqual"||q==="strictEqual")M=J.call(this,R(k,H,q));else if(q==="notDeepStrictEqual"||q==="notStrictEqual"){var ne=z[q],re=W(k).split(`
|
|
49
|
+
`);if(q==="notStrictEqual"&&v(k)==="object"&&k!==null&&(ne=z.notStrictEqualObject),re.length>30)for(re[26]="".concat(S,"...").concat(V);re.length>27;)re.pop();re.length===1?M=J.call(this,"".concat(ne," ").concat(re[0])):M=J.call(this,"".concat(ne,`
|
|
50
|
+
|
|
51
|
+
`).concat(re.join(`
|
|
52
|
+
`),`
|
|
53
|
+
`))}else{var oe=W(k),fe="",he=z[q];q==="notDeepEqual"||q==="notEqual"?(oe="".concat(z[q],`
|
|
54
|
+
|
|
55
|
+
`).concat(oe),oe.length>1024&&(oe="".concat(oe.slice(0,1021),"..."))):(fe="".concat(W(H)),oe.length>512&&(oe="".concat(oe.slice(0,509),"...")),fe.length>512&&(fe="".concat(fe.slice(0,509),"...")),q==="deepEqual"||q==="equal"?oe="".concat(he,`
|
|
56
|
+
|
|
57
|
+
`).concat(oe,`
|
|
58
|
+
|
|
59
|
+
should equal
|
|
60
|
+
|
|
61
|
+
`):fe=" ".concat(q," ").concat(fe)),M=J.call(this,"".concat(oe).concat(fe))}return Error.stackTraceLimit=Y,M.generatedMessage=!U,Object.defineProperty(l(M),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),M.code="ERR_ASSERTION",M.actual=k,M.expected=H,M.operator=q,Error.captureStackTrace&&Error.captureStackTrace(l(M),P),M.stack,M.name="AssertionError",c(M)}return s(Z,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:G,value:function(M,U){return E(this,n(n({},U),{},{customInspect:!1,depth:0}))}}]),Z}(d(Error),E.custom);return Si=O,Si}var Ei,Ys;function cu(){if(Ys)return Ei;Ys=1;var e=Object.prototype.toString;return Ei=function(t){var r=e.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&e.call(t.callee)==="[object Function]"),i},Ei}var Pi,Xs;function J2(){if(Xs)return Pi;Xs=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=cu(),i=Object.prototype.propertyIsEnumerable,s=!i.call({toString:null},"toString"),u=i.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(d){var h=d.constructor;return h&&h.prototype===d},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!o["$"+d]&&n.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{f(window[d])}catch{return!0}}catch{return!0}return!1}(),l=function(d){if(typeof window>"u"||!c)return f(d);try{return f(d)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",x=t.call(h)==="[object Function]",y=r(h),g=m&&t.call(h)==="[object String]",v=[];if(!m&&!x&&!y)throw new TypeError("Object.keys called on a non-object");var b=u&&x;if(g&&h.length>0&&!n.call(h,0))for(var E=0;E<h.length;++E)v.push(String(E));if(y&&h.length>0)for(var D=0;D<h.length;++D)v.push(String(D));else for(var w in h)!(b&&w==="prototype")&&n.call(h,w)&&v.push(String(w));if(s)for(var p=l(h),C=0;C<a.length;++C)!(p&&a[C]==="constructor")&&n.call(h,a[C])&&v.push(a[C]);return v}}return Pi=e,Pi}var ki,Qs;function uu(){if(Qs)return ki;Qs=1;var e=Array.prototype.slice,n=cu(),t=Object.keys,r=t?function(u){return t(u)}:J2(),i=Object.keys;return r.shim=function(){if(Object.keys){var u=function(){var a=Object.keys(arguments);return a&&a.length===arguments.length}(1,2);u||(Object.keys=function(f){return n(f)?i(e.call(f)):i(f)})}else Object.keys=r;return Object.keys||r},ki=r,ki}var Ti,Js;function Z2(){if(Js)return Ti;Js=1;var e=uu(),n=Ic()(),t=dt(),r=u2(),i=t("Array.prototype.push"),s=t("Object.prototype.propertyIsEnumerable"),u=n?r.getOwnPropertySymbols:null;return Ti=function(f,o){if(f==null)throw new TypeError("target must be an object");var c=r(f);if(arguments.length===1)return c;for(var l=1;l<arguments.length;++l){var d=r(arguments[l]),h=e(d),m=n&&(r.getOwnPropertySymbols||u);if(m)for(var x=m(d),y=0;y<x.length;++y){var g=x[y];s(d,g)&&i(h,g)}for(var v=0;v<h.length;++v){var b=h[v];if(s(d,b)){var E=d[b];c[b]=E}}}return c},Ti}var Ri,Zs;function el(){if(Zs)return Ri;Zs=1;var e=Z2(),n=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",i=r.split(""),s={},u=0;u<i.length;++u)s[i[u]]=i[u];var a=Object.assign({},s),f="";for(var o in a)f+=o;return r!==f},t=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};return Ri=function(){return!Object.assign||n()||t()?e:Object.assign},Ri}var Ii,e3;function fu(){if(e3)return Ii;e3=1;var e=function(n){return n!==n};return Ii=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||e(t)&&e(r))},Ii}var Di,t3;function va(){if(t3)return Di;t3=1;var e=fu();return Di=function(){return typeof Object.is=="function"?Object.is:e},Di}var Oi,r3;function tl(){if(r3)return Oi;r3=1;var e=Rc(),n=sn(),t=n(e("String.prototype.indexOf"));return Oi=function(i,s){var u=e(i,!!s);return typeof u=="function"&&t(i,".prototype.")>-1?n(u):u},Oi}var Ai,n3;function fn(){if(n3)return Ai;n3=1;var e=uu(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",t=Object.prototype.toString,r=Array.prototype.concat,i=Ac(),s=function(o){return typeof o=="function"&&t.call(o)==="[object Function]"},u=Mc()(),a=function(o,c,l,d){if(c in o){if(d===!0){if(o[c]===l)return}else if(!s(d)||!d())return}u?i(o,c,l,!0):i(o,c,l)},f=function(o,c){var l=arguments.length>2?arguments[2]:{},d=e(c);n&&(d=r.call(d,Object.getOwnPropertySymbols(c)));for(var h=0;h<d.length;h+=1)a(o,d[h],c[d[h]],l[d[h]])};return f.supportsDescriptors=!!u,Ai=f,Ai}var Mi,i3;function rl(){if(i3)return Mi;i3=1;var e=va(),n=fn();return Mi=function(){var r=e();return n(Object,{is:r},{is:function(){return Object.is!==r}}),r},Mi}var Ui,o3;function nl(){if(o3)return Ui;o3=1;var e=fn(),n=sn(),t=fu(),r=va(),i=rl(),s=n(r(),Object);return e(s,{getPolyfill:r,implementation:t,shim:i}),Ui=s,Ui}var Li,a3;function lu(){return a3||(a3=1,Li=function(n){return n!==n}),Li}var ji,s3;function du(){if(s3)return ji;s3=1;var e=lu();return ji=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},ji}var Ni,c3;function il(){if(c3)return Ni;c3=1;var e=fn(),n=du();return Ni=function(){var r=n();return e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r},Ni}var Fi,u3;function ol(){if(u3)return Fi;u3=1;var e=sn(),n=fn(),t=lu(),r=du(),i=il(),s=e(r(),Number);return n(s,{getPolyfill:r,implementation:t,shim:i}),Fi=s,Fi}var qi,f3;function al(){if(f3)return qi;f3=1;function e(K,Q){return s(K)||i(K,Q)||t(K,Q)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t(K,Q){if(K){if(typeof K=="string")return r(K,Q);var ie=Object.prototype.toString.call(K).slice(8,-1);if(ie==="Object"&&K.constructor&&(ie=K.constructor.name),ie==="Map"||ie==="Set")return Array.from(K);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return r(K,Q)}}function r(K,Q){(Q==null||Q>K.length)&&(Q=K.length);for(var ie=0,ae=new Array(Q);ie<Q;ie++)ae[ie]=K[ie];return ae}function i(K,Q){var ie=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(ie!=null){var ae,se,le,ue,de=[],pe=!0,ge=!1;try{if(le=(ie=ie.call(K)).next,Q!==0)for(;!(pe=(ae=le.call(ie)).done)&&(de.push(ae.value),de.length!==Q);pe=!0);}catch(xe){ge=!0,se=xe}finally{try{if(!pe&&ie.return!=null&&(ue=ie.return(),Object(ue)!==ue))return}finally{if(ge)throw se}}return de}}function s(K){if(Array.isArray(K))return K}function u(K){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},u(K)}var a=/a/g.flags!==void 0,f=function(Q){var ie=[];return Q.forEach(function(ae){return ie.push(ae)}),ie},o=function(Q){var ie=[];return Q.forEach(function(ae,se){return ie.push([se,ae])}),ie},c=Object.is?Object.is:nl(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:ol();function h(K){return K.call.bind(K)}var m=h(Object.prototype.hasOwnProperty),x=h(Object.prototype.propertyIsEnumerable),y=h(Object.prototype.toString),g=vr().types,v=g.isAnyArrayBuffer,b=g.isArrayBufferView,E=g.isDate,D=g.isMap,w=g.isRegExp,p=g.isSet,C=g.isNativeError,S=g.isBoxedPrimitive,A=g.isNumberObject,j=g.isStringObject,V=g.isBooleanObject,z=g.isBigIntObject,L=g.isSymbolObject,F=g.isFloat32Array,W=g.isFloat64Array;function R(K){if(K.length===0||K.length>10)return!0;for(var Q=0;Q<K.length;Q++){var ie=K.charCodeAt(Q);if(ie<48||ie>57)return!0}return K.length===10&&K>=Math.pow(2,32)}function O(K){return Object.keys(K).filter(R).concat(l(K).filter(Object.prototype.propertyIsEnumerable.bind(K)))}/*!
|
|
63
|
+
* The buffer module from node.js, for the browser.
|
|
64
|
+
*
|
|
65
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function N(K,Q){if(K===Q)return 0;for(var ie=K.length,ae=Q.length,se=0,le=Math.min(ie,ae);se<le;++se)if(K[se]!==Q[se]){ie=K[se],ae=Q[se];break}return ie<ae?-1:ae<ie?1:0}var G=!0,J=!1,Z=0,$=1,M=2,U=3;function q(K,Q){return a?K.source===Q.source&&K.flags===Q.flags:RegExp.prototype.toString.call(K)===RegExp.prototype.toString.call(Q)}function P(K,Q){if(K.byteLength!==Q.byteLength)return!1;for(var ie=0;ie<K.byteLength;ie++)if(K[ie]!==Q[ie])return!1;return!0}function k(K,Q){return K.byteLength!==Q.byteLength?!1:N(new Uint8Array(K.buffer,K.byteOffset,K.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function H(K,Q){return K.byteLength===Q.byteLength&&N(new Uint8Array(K),new Uint8Array(Q))===0}function Y(K,Q){return A(K)?A(Q)&&c(Number.prototype.valueOf.call(K),Number.prototype.valueOf.call(Q)):j(K)?j(Q)&&String.prototype.valueOf.call(K)===String.prototype.valueOf.call(Q):V(K)?V(Q)&&Boolean.prototype.valueOf.call(K)===Boolean.prototype.valueOf.call(Q):z(K)?z(Q)&&BigInt.prototype.valueOf.call(K)===BigInt.prototype.valueOf.call(Q):L(Q)&&Symbol.prototype.valueOf.call(K)===Symbol.prototype.valueOf.call(Q)}function ne(K,Q,ie,ae){if(K===Q)return K!==0?!0:ie?c(K,Q):!0;if(ie){if(u(K)!=="object")return typeof K=="number"&&d(K)&&d(Q);if(u(Q)!=="object"||K===null||Q===null||Object.getPrototypeOf(K)!==Object.getPrototypeOf(Q))return!1}else{if(K===null||u(K)!=="object")return Q===null||u(Q)!=="object"?K==Q:!1;if(Q===null||u(Q)!=="object")return!1}var se=y(K),le=y(Q);if(se!==le)return!1;if(Array.isArray(K)){if(K.length!==Q.length)return!1;var ue=O(K),de=O(Q);return ue.length!==de.length?!1:oe(K,Q,ie,ae,$,ue)}if(se==="[object Object]"&&(!D(K)&&D(Q)||!p(K)&&p(Q)))return!1;if(E(K)){if(!E(Q)||Date.prototype.getTime.call(K)!==Date.prototype.getTime.call(Q))return!1}else if(w(K)){if(!w(Q)||!q(K,Q))return!1}else if(C(K)||K instanceof Error){if(K.message!==Q.message||K.name!==Q.name)return!1}else if(b(K)){if(!ie&&(F(K)||W(K))){if(!P(K,Q))return!1}else if(!k(K,Q))return!1;var pe=O(K),ge=O(Q);return pe.length!==ge.length?!1:oe(K,Q,ie,ae,Z,pe)}else{if(p(K))return!p(Q)||K.size!==Q.size?!1:oe(K,Q,ie,ae,M);if(D(K))return!D(Q)||K.size!==Q.size?!1:oe(K,Q,ie,ae,U);if(v(K)){if(!H(K,Q))return!1}else if(S(K)&&!Y(K,Q))return!1}return oe(K,Q,ie,ae,Z)}function re(K,Q){return Q.filter(function(ie){return x(K,ie)})}function oe(K,Q,ie,ae,se,le){if(arguments.length===5){le=Object.keys(K);var ue=Object.keys(Q);if(le.length!==ue.length)return!1}for(var de=0;de<le.length;de++)if(!m(Q,le[de]))return!1;if(ie&&arguments.length===5){var pe=l(K);if(pe.length!==0){var ge=0;for(de=0;de<pe.length;de++){var xe=pe[de];if(x(K,xe)){if(!x(Q,xe))return!1;le.push(xe),ge++}else if(x(Q,xe))return!1}var st=l(Q);if(pe.length!==st.length&&re(Q,st).length!==ge)return!1}else{var pt=l(Q);if(pt.length!==0&&re(Q,pt).length!==0)return!1}}if(le.length===0&&(se===Z||se===$&&K.length===0||K.size===0))return!0;if(ae===void 0)ae={val1:new Map,val2:new Map,position:0};else{var Dt=ae.val1.get(K);if(Dt!==void 0){var Je=ae.val2.get(Q);if(Je!==void 0)return Dt===Je}ae.position++}ae.val1.set(K,ae.position),ae.val2.set(Q,ae.position);var Ot=ee(K,Q,ie,le,ae,se);return ae.val1.delete(K),ae.val2.delete(Q),Ot}function fe(K,Q,ie,ae){for(var se=f(K),le=0;le<se.length;le++){var ue=se[le];if(ne(Q,ue,ie,ae))return K.delete(ue),!0}return!1}function he(K){switch(u(K)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":K=+K;case"number":if(d(K))return!1}return!0}function I(K,Q,ie){var ae=he(ie);return ae??(Q.has(ae)&&!K.has(ae))}function _(K,Q,ie,ae,se){var le=he(ie);if(le!=null)return le;var ue=Q.get(le);return ue===void 0&&!Q.has(le)||!ne(ae,ue,!1,se)?!1:!K.has(le)&&ne(ae,ue,!1,se)}function B(K,Q,ie,ae){for(var se=null,le=f(K),ue=0;ue<le.length;ue++){var de=le[ue];if(u(de)==="object"&&de!==null)se===null&&(se=new Set),se.add(de);else if(!Q.has(de)){if(ie||!I(K,Q,de))return!1;se===null&&(se=new Set),se.add(de)}}if(se!==null){for(var pe=f(Q),ge=0;ge<pe.length;ge++){var xe=pe[ge];if(u(xe)==="object"&&xe!==null){if(!fe(se,xe,ie,ae))return!1}else if(!ie&&!K.has(xe)&&!fe(se,xe,ie,ae))return!1}return se.size===0}return!0}function T(K,Q,ie,ae,se,le){for(var ue=f(K),de=0;de<ue.length;de++){var pe=ue[de];if(ne(ie,pe,se,le)&&ne(ae,Q.get(pe),se,le))return K.delete(pe),!0}return!1}function X(K,Q,ie,ae){for(var se=null,le=o(K),ue=0;ue<le.length;ue++){var de=e(le[ue],2),pe=de[0],ge=de[1];if(u(pe)==="object"&&pe!==null)se===null&&(se=new Set),se.add(pe);else{var xe=Q.get(pe);if(xe===void 0&&!Q.has(pe)||!ne(ge,xe,ie,ae)){if(ie||!_(K,Q,pe,ge,ae))return!1;se===null&&(se=new Set),se.add(pe)}}}if(se!==null){for(var st=o(Q),pt=0;pt<st.length;pt++){var Dt=e(st[pt],2),Je=Dt[0],Ot=Dt[1];if(u(Je)==="object"&&Je!==null){if(!T(se,K,Je,Ot,ie,ae))return!1}else if(!ie&&(!K.has(Je)||!ne(K.get(Je),Ot,!1,ae))&&!T(se,K,Je,Ot,!1,ae))return!1}return se.size===0}return!0}function ee(K,Q,ie,ae,se,le){var ue=0;if(le===M){if(!B(K,Q,ie,se))return!1}else if(le===U){if(!X(K,Q,ie,se))return!1}else if(le===$)for(;ue<K.length;ue++)if(m(K,ue)){if(!m(Q,ue)||!ne(K[ue],Q[ue],ie,se))return!1}else{if(m(Q,ue))return!1;for(var de=Object.keys(K);ue<de.length;ue++){var pe=de[ue];if(!m(Q,pe)||!ne(K[pe],Q[pe],ie,se))return!1}return de.length===Object.keys(Q).length}for(ue=0;ue<ae.length;ue++){var ge=ae[ue];if(!ne(K[ge],Q[ge],ie,se))return!1}return!0}function te(K,Q){return ne(K,Q,J)}function ce(K,Q){return ne(K,Q,G)}return qi={isDeepEqual:te,isDeepStrictEqual:ce},qi}var l3;function xr(){if(l3)return gi.exports;l3=1;function e(M){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},e(M)}function n(M,U,q){return Object.defineProperty(M,"prototype",{writable:!1}),M}function t(M,U){if(!(M instanceof U))throw new TypeError("Cannot call a class as a function")}var r=su(),i=r.codes,s=i.ERR_AMBIGUOUS_ARGUMENT,u=i.ERR_INVALID_ARG_TYPE,a=i.ERR_INVALID_ARG_VALUE,f=i.ERR_INVALID_RETURN_VALUE,o=i.ERR_MISSING_ARGS,c=Q2(),l=vr(),d=l.inspect,h=vr().types,m=h.isPromise,x=h.isRegExp,y=el()(),g=va()(),v=tl()("RegExp.prototype.test"),b,E;function D(){var M=al();b=M.isDeepEqual,E=M.isDeepStrictEqual}var w=!1,p=gi.exports=V,C={};function S(M){throw M.message instanceof Error?M.message:new c(M)}function A(M,U,q,P,k){var H=arguments.length,Y;if(H===0)Y="Failed";else if(H===1)q=M,M=void 0;else{if(w===!1){w=!0;var ne=process.emitWarning?process.emitWarning:console.warn.bind(console);ne("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}H===2&&(P="!=")}if(q instanceof Error)throw q;var re={actual:M,expected:U,operator:P===void 0?"fail":P,stackStartFn:k||A};q!==void 0&&(re.message=q);var oe=new c(re);throw Y&&(oe.message=Y,oe.generatedMessage=!0),oe}p.fail=A,p.AssertionError=c;function j(M,U,q,P){if(!q){var k=!1;if(U===0)k=!0,P="No value argument passed to `assert.ok()`";else if(P instanceof Error)throw P;var H=new c({actual:q,expected:!0,message:P,operator:"==",stackStartFn:M});throw H.generatedMessage=k,H}}function V(){for(var M=arguments.length,U=new Array(M),q=0;q<M;q++)U[q]=arguments[q];j.apply(void 0,[V,U.length].concat(U))}p.ok=V,p.equal=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");U!=q&&S({actual:U,expected:q,message:P,operator:"==",stackStartFn:M})},p.notEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");U==q&&S({actual:U,expected:q,message:P,operator:"!=",stackStartFn:M})},p.deepEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");b===void 0&&D(),b(U,q)||S({actual:U,expected:q,message:P,operator:"deepEqual",stackStartFn:M})},p.notDeepEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");b===void 0&&D(),b(U,q)&&S({actual:U,expected:q,message:P,operator:"notDeepEqual",stackStartFn:M})},p.deepStrictEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");b===void 0&&D(),E(U,q)||S({actual:U,expected:q,message:P,operator:"deepStrictEqual",stackStartFn:M})},p.notDeepStrictEqual=z;function z(M,U,q){if(arguments.length<2)throw new o("actual","expected");b===void 0&&D(),E(M,U)&&S({actual:M,expected:U,message:q,operator:"notDeepStrictEqual",stackStartFn:z})}p.strictEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");g(U,q)||S({actual:U,expected:q,message:P,operator:"strictEqual",stackStartFn:M})},p.notStrictEqual=function M(U,q,P){if(arguments.length<2)throw new o("actual","expected");g(U,q)&&S({actual:U,expected:q,message:P,operator:"notStrictEqual",stackStartFn:M})};var L=n(function M(U,q,P){var k=this;t(this,M),q.forEach(function(H){H in U&&(P!==void 0&&typeof P[H]=="string"&&x(U[H])&&v(U[H],P[H])?k[H]=P[H]:k[H]=U[H])})});function F(M,U,q,P,k,H){if(!(q in M)||!E(M[q],U[q])){if(!P){var Y=new L(M,k),ne=new L(U,k,M),re=new c({actual:Y,expected:ne,operator:"deepStrictEqual",stackStartFn:H});throw re.actual=M,re.expected=U,re.operator=H.name,re}S({actual:M,expected:U,message:P,operator:H.name,stackStartFn:H})}}function W(M,U,q,P){if(typeof U!="function"){if(x(U))return v(U,M);if(arguments.length===2)throw new u("expected",["Function","RegExp"],U);if(e(M)!=="object"||M===null){var k=new c({actual:M,expected:U,message:q,operator:"deepStrictEqual",stackStartFn:P});throw k.operator=P.name,k}var H=Object.keys(U);if(U instanceof Error)H.push("name","message");else if(H.length===0)throw new a("error",U,"may not be an empty object");return b===void 0&&D(),H.forEach(function(Y){typeof M[Y]=="string"&&x(U[Y])&&v(U[Y],M[Y])||F(M,U,Y,q,H,P)}),!0}return U.prototype!==void 0&&M instanceof U?!0:Error.isPrototypeOf(U)?!1:U.call({},M)===!0}function R(M){if(typeof M!="function")throw new u("fn","Function",M);try{M()}catch(U){return U}return C}function O(M){return m(M)||M!==null&&e(M)==="object"&&typeof M.then=="function"&&typeof M.catch=="function"}function N(M){return Promise.resolve().then(function(){var U;if(typeof M=="function"){if(U=M(),!O(U))throw new f("instance of Promise","promiseFn",U)}else if(O(M))U=M;else throw new u("promiseFn",["Function","Promise"],M);return Promise.resolve().then(function(){return U}).then(function(){return C}).catch(function(q){return q})})}function G(M,U,q,P){if(typeof q=="string"){if(arguments.length===4)throw new u("error",["Object","Error","Function","RegExp"],q);if(e(U)==="object"&&U!==null){if(U.message===q)throw new s("error/message",'The error message "'.concat(U.message,'" is identical to the message.'))}else if(U===q)throw new s("error/message",'The error "'.concat(U,'" is identical to the message.'));P=q,q=void 0}else if(q!=null&&e(q)!=="object"&&typeof q!="function")throw new u("error",["Object","Error","Function","RegExp"],q);if(U===C){var k="";q&&q.name&&(k+=" (".concat(q.name,")")),k+=P?": ".concat(P):".";var H=M.name==="rejects"?"rejection":"exception";S({actual:void 0,expected:q,operator:M.name,message:"Missing expected ".concat(H).concat(k),stackStartFn:M})}if(q&&!W(U,q,P,M))throw U}function J(M,U,q,P){if(U!==C){if(typeof q=="string"&&(P=q,q=void 0),!q||W(U,q)){var k=P?": ".concat(P):".",H=M.name==="doesNotReject"?"rejection":"exception";S({actual:U,expected:q,operator:M.name,message:"Got unwanted ".concat(H).concat(k,`
|
|
68
|
+
`)+'Actual message: "'.concat(U&&U.message,'"'),stackStartFn:M})}throw U}}p.throws=function M(U){for(var q=arguments.length,P=new Array(q>1?q-1:0),k=1;k<q;k++)P[k-1]=arguments[k];G.apply(void 0,[M,R(U)].concat(P))},p.rejects=function M(U){for(var q=arguments.length,P=new Array(q>1?q-1:0),k=1;k<q;k++)P[k-1]=arguments[k];return N(U).then(function(H){return G.apply(void 0,[M,H].concat(P))})},p.doesNotThrow=function M(U){for(var q=arguments.length,P=new Array(q>1?q-1:0),k=1;k<q;k++)P[k-1]=arguments[k];J.apply(void 0,[M,R(U)].concat(P))},p.doesNotReject=function M(U){for(var q=arguments.length,P=new Array(q>1?q-1:0),k=1;k<q;k++)P[k-1]=arguments[k];return N(U).then(function(H){return J.apply(void 0,[M,H].concat(P))})},p.ifError=function M(U){if(U!=null){var q="ifError got unwanted exception: ";e(U)==="object"&&typeof U.message=="string"?U.message.length===0&&U.constructor?q+=U.constructor.name:q+=U.message:q+=d(U);var P=new c({actual:U,expected:null,operator:"ifError",message:q,stackStartFn:M}),k=U.stack;if(typeof k=="string"){var H=k.split(`
|
|
69
|
+
`);H.shift();for(var Y=P.stack.split(`
|
|
70
|
+
`),ne=0;ne<H.length;ne++){var re=Y.indexOf(H[ne]);if(re!==-1){Y=Y.slice(0,re);break}}P.stack="".concat(Y.join(`
|
|
71
|
+
`),`
|
|
72
|
+
`).concat(H.join(`
|
|
73
|
+
`))}throw P}};function Z(M,U,q,P,k){if(!x(U))throw new u("regexp","RegExp",U);var H=k==="match";if(typeof M!="string"||v(U,M)!==H){if(q instanceof Error)throw q;var Y=!q;q=q||(typeof M!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(M)," (").concat(d(M),")"):(H?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(d(U),`. Input:
|
|
74
|
+
|
|
75
|
+
`).concat(d(M),`
|
|
76
|
+
`));var ne=new c({actual:M,expected:U,message:q,operator:k,stackStartFn:P});throw ne.generatedMessage=Y,ne}}p.match=function M(U,q,P){Z(U,q,P,M,"match")},p.doesNotMatch=function M(U,q,P){Z(U,q,P,M,"doesNotMatch")};function $(){for(var M=arguments.length,U=new Array(M),q=0;q<M;q++)U[q]=arguments[q];j.apply(void 0,[$,U.length].concat(U))}return p.strict=y($,p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict,gi.exports}var Nt={},yt={},Gr={exports:{}},sl=Gr.exports,d3;function cl(){return d3||(d3=1,function(e,n){(function(t,r){e.exports=r()})(sl,function(){var t=Math.imul,r=Math.clz32,i=Math.abs,s=Math.max,u=Math.floor;class a extends Array{constructor(o,c){if(super(o),this.sign=c,o>a.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(o){var c=Number.isFinite;if(typeof o=="number"){if(o===0)return a.__zero();if(a.__isOneDigitInt(o))return 0>o?a.__oneDigit(-o,!0):a.__oneDigit(o,!1);if(!c(o)||u(o)!==o)throw new RangeError("The number "+o+" cannot be converted to BigInt because it is not an integer");return a.__fromDouble(o)}if(typeof o=="string"){const l=a.__fromString(o);if(l===null)throw new SyntaxError("Cannot convert "+o+" to a BigInt");return l}if(typeof o=="boolean")return o===!0?a.__oneDigit(1,!1):a.__zero();if(typeof o=="object"){if(o.constructor===a)return o;const l=a.__toPrimitive(o);return a.BigInt(l)}throw new TypeError("Cannot convert "+o+" to a BigInt")}toDebugString(){const o=["BigInt["];for(const c of this)o.push((c&&(c>>>0).toString(16))+", ");return o.push("]"),o.join("")}toString(o=10){if(2>o||36<o)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(o&o-1)==0?a.__toStringBasePowerOfTwo(this,o):a.__toStringGeneric(this,o,!1)}static toNumber(o){const c=o.length;if(c===0)return 0;if(c===1){const C=o.__unsignedDigit(0);return o.sign?-C:C}const l=o.__digit(c-1),d=a.__clz30(l),h=30*c-d;if(1024<h)return o.sign?-1/0:1/0;let m=h-1,x=l,y=c-1;const g=d+3;let v=g===32?0:x<<g;v>>>=12;const b=g-12;let E=12<=g?0:x<<20+g,D=20+g;for(0<b&&0<y&&(y--,x=o.__digit(y),v|=x>>>30-b,E=x<<b+2,D=b+2);0<D&&0<y;)y--,x=o.__digit(y),E|=30<=D?x<<D-30:x>>>30-D,D-=30;const w=a.__decideRounding(o,D,y,x);if((w===1||w===0&&(1&E)==1)&&(E=E+1>>>0,E===0&&(v++,v>>>20!=0&&(v=0,m++,1023<m))))return o.sign?-1/0:1/0;const p=o.sign?-2147483648:0;return m=m+1023<<20,a.__kBitConversionInts[1]=p|m|v,a.__kBitConversionInts[0]=E,a.__kBitConversionDouble[0]}static unaryMinus(o){if(o.length===0)return o;const c=o.__copy();return c.sign=!o.sign,c}static bitwiseNot(o){return o.sign?a.__absoluteSubOne(o).__trim():a.__absoluteAddOne(o,!0)}static exponentiate(o,c){if(c.sign)throw new RangeError("Exponent must be positive");if(c.length===0)return a.__oneDigit(1,!1);if(o.length===0)return o;if(o.length===1&&o.__digit(0)===1)return o.sign&&(1&c.__digit(0))==0?a.unaryMinus(o):o;if(1<c.length)throw new RangeError("BigInt too big");let l=c.__unsignedDigit(0);if(l===1)return o;if(l>=a.__kMaxLengthBits)throw new RangeError("BigInt too big");if(o.length===1&&o.__digit(0)===2){const m=1+(0|l/30),x=o.sign&&(1&l)!=0,y=new a(m,x);y.__initializeDigits();const g=1<<l%30;return y.__setDigit(m-1,g),y}let d=null,h=o;for((1&l)!=0&&(d=o),l>>=1;l!==0;l>>=1)h=a.multiply(h,h),(1&l)!=0&&(d===null?d=h:d=a.multiply(d,h));return d}static multiply(o,c){if(o.length===0)return o;if(c.length===0)return c;let l=o.length+c.length;30<=o.__clzmsd()+c.__clzmsd()&&l--;const d=new a(l,o.sign!==c.sign);d.__initializeDigits();for(let h=0;h<o.length;h++)a.__multiplyAccumulate(c,o.__digit(h),d,h);return d.__trim()}static divide(o,c){if(c.length===0)throw new RangeError("Division by zero");if(0>a.__absoluteCompare(o,c))return a.__zero();const l=o.sign!==c.sign,d=c.__unsignedDigit(0);let h;if(c.length===1&&32767>=d){if(d===1)return l===o.sign?o:a.unaryMinus(o);h=a.__absoluteDivSmall(o,d,null)}else h=a.__absoluteDivLarge(o,c,!0,!1);return h.sign=l,h.__trim()}static remainder(o,c){if(c.length===0)throw new RangeError("Division by zero");if(0>a.__absoluteCompare(o,c))return o;const l=c.__unsignedDigit(0);if(c.length===1&&32767>=l){if(l===1)return a.__zero();const h=a.__absoluteModSmall(o,l);return h===0?a.__zero():a.__oneDigit(h,o.sign)}const d=a.__absoluteDivLarge(o,c,!1,!0);return d.sign=o.sign,d.__trim()}static add(o,c){const l=o.sign;return l===c.sign?a.__absoluteAdd(o,c,l):0<=a.__absoluteCompare(o,c)?a.__absoluteSub(o,c,l):a.__absoluteSub(c,o,!l)}static subtract(o,c){const l=o.sign;return l===c.sign?0<=a.__absoluteCompare(o,c)?a.__absoluteSub(o,c,l):a.__absoluteSub(c,o,!l):a.__absoluteAdd(o,c,l)}static leftShift(o,c){return c.length===0||o.length===0?o:c.sign?a.__rightShiftByAbsolute(o,c):a.__leftShiftByAbsolute(o,c)}static signedRightShift(o,c){return c.length===0||o.length===0?o:c.sign?a.__leftShiftByAbsolute(o,c):a.__rightShiftByAbsolute(o,c)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(o,c){return 0>a.__compareToBigInt(o,c)}static lessThanOrEqual(o,c){return 0>=a.__compareToBigInt(o,c)}static greaterThan(o,c){return 0<a.__compareToBigInt(o,c)}static greaterThanOrEqual(o,c){return 0<=a.__compareToBigInt(o,c)}static equal(o,c){if(o.sign!==c.sign||o.length!==c.length)return!1;for(let l=0;l<o.length;l++)if(o.__digit(l)!==c.__digit(l))return!1;return!0}static notEqual(o,c){return!a.equal(o,c)}static bitwiseAnd(o,c){if(!o.sign&&!c.sign)return a.__absoluteAnd(o,c).__trim();if(o.sign&&c.sign){const l=s(o.length,c.length)+1;let d=a.__absoluteSubOne(o,l);const h=a.__absoluteSubOne(c);return d=a.__absoluteOr(d,h,d),a.__absoluteAddOne(d,!0,d).__trim()}return o.sign&&([o,c]=[c,o]),a.__absoluteAndNot(o,a.__absoluteSubOne(c)).__trim()}static bitwiseXor(o,c){if(!o.sign&&!c.sign)return a.__absoluteXor(o,c).__trim();if(o.sign&&c.sign){const h=s(o.length,c.length),m=a.__absoluteSubOne(o,h),x=a.__absoluteSubOne(c);return a.__absoluteXor(m,x,m).__trim()}const l=s(o.length,c.length)+1;o.sign&&([o,c]=[c,o]);let d=a.__absoluteSubOne(c,l);return d=a.__absoluteXor(d,o,d),a.__absoluteAddOne(d,!0,d).__trim()}static bitwiseOr(o,c){const l=s(o.length,c.length);if(!o.sign&&!c.sign)return a.__absoluteOr(o,c).__trim();if(o.sign&&c.sign){let h=a.__absoluteSubOne(o,l);const m=a.__absoluteSubOne(c);return h=a.__absoluteAnd(h,m,h),a.__absoluteAddOne(h,!0,h).__trim()}o.sign&&([o,c]=[c,o]);let d=a.__absoluteSubOne(c,l);return d=a.__absoluteAndNot(d,o,d),a.__absoluteAddOne(d,!0,d).__trim()}static asIntN(o,c){if(c.length===0)return c;if(o=u(o),0>o)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(o===0)return a.__zero();if(o>=a.__kMaxLengthBits)return c;const l=0|(o+29)/30;if(c.length<l)return c;const d=c.__unsignedDigit(l-1),h=1<<(o-1)%30;if(c.length===l&&d<h)return c;if((d&h)!==h)return a.__truncateToNBits(o,c);if(!c.sign)return a.__truncateAndSubFromPowerOfTwo(o,c,!0);if((d&h-1)==0){for(let m=l-2;0<=m;m--)if(c.__digit(m)!==0)return a.__truncateAndSubFromPowerOfTwo(o,c,!1);return c.length===l&&d===h?c:a.__truncateToNBits(o,c)}return a.__truncateAndSubFromPowerOfTwo(o,c,!1)}static asUintN(o,c){if(c.length===0)return c;if(o=u(o),0>o)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(o===0)return a.__zero();if(c.sign){if(o>a.__kMaxLengthBits)throw new RangeError("BigInt too big");return a.__truncateAndSubFromPowerOfTwo(o,c,!1)}if(o>=a.__kMaxLengthBits)return c;const l=0|(o+29)/30;if(c.length<l)return c;const d=o%30;return c.length==l&&(d===0||!(c.__digit(l-1)>>>d))?c:a.__truncateToNBits(o,c)}static ADD(o,c){if(o=a.__toPrimitive(o),c=a.__toPrimitive(c),typeof o=="string")return typeof c!="string"&&(c=c.toString()),o+c;if(typeof c=="string")return o.toString()+c;if(o=a.__toNumeric(o),c=a.__toNumeric(c),a.__isBigInt(o)&&a.__isBigInt(c))return a.add(o,c);if(typeof o=="number"&&typeof c=="number")return o+c;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(o,c){return a.__compare(o,c,0)}static LE(o,c){return a.__compare(o,c,1)}static GT(o,c){return a.__compare(o,c,2)}static GE(o,c){return a.__compare(o,c,3)}static EQ(o,c){for(;;){if(a.__isBigInt(o))return a.__isBigInt(c)?a.equal(o,c):a.EQ(c,o);if(typeof o=="number"){if(a.__isBigInt(c))return a.__equalToNumber(c,o);if(typeof c!="object")return o==c;c=a.__toPrimitive(c)}else if(typeof o=="string"){if(a.__isBigInt(c))return o=a.__fromString(o),o!==null&&a.equal(o,c);if(typeof c!="object")return o==c;c=a.__toPrimitive(c)}else if(typeof o=="boolean"){if(a.__isBigInt(c))return a.__equalToNumber(c,+o);if(typeof c!="object")return o==c;c=a.__toPrimitive(c)}else if(typeof o=="symbol"){if(a.__isBigInt(c))return!1;if(typeof c!="object")return o==c;c=a.__toPrimitive(c)}else if(typeof o=="object"){if(typeof c=="object"&&c.constructor!==a)return o==c;o=a.__toPrimitive(o)}else return o==c}}static NE(o,c){return!a.EQ(o,c)}static __zero(){return new a(0,!1)}static __oneDigit(o,c){const l=new a(1,c);return l.__setDigit(0,o),l}__copy(){const o=new a(this.length,this.sign);for(let c=0;c<this.length;c++)o[c]=this[c];return o}__trim(){let o=this.length,c=this[o-1];for(;c===0;)o--,c=this[o-1],this.pop();return o===0&&(this.sign=!1),this}__initializeDigits(){for(let o=0;o<this.length;o++)this[o]=0}static __decideRounding(o,c,l,d){if(0<c)return-1;let h;if(0>c)h=-c-1;else{if(l===0)return-1;l--,d=o.__digit(l),h=29}let m=1<<h;if((d&m)==0)return-1;if(m-=1,(d&m)!=0)return 1;for(;0<l;)if(l--,o.__digit(l)!==0)return 1;return 0}static __fromDouble(o){a.__kBitConversionDouble[0]=o;const c=2047&a.__kBitConversionInts[1]>>>20,l=c-1023,d=(0|l/30)+1,h=new a(d,0>o);let m=1048575&a.__kBitConversionInts[1]|1048576,x=a.__kBitConversionInts[0];const y=20,g=l%30;let v,b=0;if(20>g){const E=y-g;b=E+32,v=m>>>E,m=m<<32-E|x>>>E,x<<=32-E}else if(g===20)b=32,v=m,m=x,x=0;else{const E=g-y;b=32-E,v=m<<E|x>>>32-E,m=x<<E,x=0}h.__setDigit(d-1,v);for(let E=d-2;0<=E;E--)0<b?(b-=30,v=m>>>2,m=m<<30|x>>>2,x<<=30):v=0,h.__setDigit(E,v);return h.__trim()}static __isWhitespace(o){return 13>=o&&9<=o||(159>=o?o==32:131071>=o?o==160||o==5760:196607>=o?(o&=131071,10>=o||o==40||o==41||o==47||o==95||o==4096):o==65279)}static __fromString(o,c=0){let l=0;const d=o.length;let h=0;if(h===d)return a.__zero();let m=o.charCodeAt(h);for(;a.__isWhitespace(m);){if(++h===d)return a.__zero();m=o.charCodeAt(h)}if(m===43){if(++h===d)return null;m=o.charCodeAt(h),l=1}else if(m===45){if(++h===d)return null;m=o.charCodeAt(h),l=-1}if(c===0){if(c=10,m===48){if(++h===d)return a.__zero();if(m=o.charCodeAt(h),m===88||m===120){if(c=16,++h===d)return null;m=o.charCodeAt(h)}else if(m===79||m===111){if(c=8,++h===d)return null;m=o.charCodeAt(h)}else if(m===66||m===98){if(c=2,++h===d)return null;m=o.charCodeAt(h)}}}else if(c===16&&m===48){if(++h===d)return a.__zero();if(m=o.charCodeAt(h),m===88||m===120){if(++h===d)return null;m=o.charCodeAt(h)}}if(l!=0&&c!==10)return null;for(;m===48;){if(++h===d)return a.__zero();m=o.charCodeAt(h)}const x=d-h;let y=a.__kMaxBitsPerChar[c],g=a.__kBitsPerCharTableMultiplier-1;if(x>1073741824/y)return null;const v=y*x+g>>>a.__kBitsPerCharTableShift,b=new a(0|(v+29)/30,!1),E=10>c?c:10,D=10<c?c-10:0;if((c&c-1)==0){y>>=a.__kBitsPerCharTableShift;const w=[],p=[];let C=!1;do{let S=0,A=0;for(;;){let j;if(m-48>>>0<E)j=m-48;else if((32|m)-97>>>0<D)j=(32|m)-87;else{C=!0;break}if(A+=y,S=S<<y|j,++h===d){C=!0;break}if(m=o.charCodeAt(h),30<A+y)break}w.push(S),p.push(A)}while(!C);a.__fillFromParts(b,w,p)}else{b.__initializeDigits();let w=!1,p=0;do{let C=0,S=1;for(;;){let j;if(m-48>>>0<E)j=m-48;else if((32|m)-97>>>0<D)j=(32|m)-87;else{w=!0;break}const V=S*c;if(1073741823<V)break;if(S=V,C=C*c+j,p++,++h===d){w=!0;break}m=o.charCodeAt(h)}g=30*a.__kBitsPerCharTableMultiplier-1;const A=0|(y*p+g>>>a.__kBitsPerCharTableShift)/30;b.__inplaceMultiplyAdd(S,C,A)}while(!w)}if(h!==d){if(!a.__isWhitespace(m))return null;for(h++;h<d;h++)if(m=o.charCodeAt(h),!a.__isWhitespace(m))return null}return b.sign=l==-1,b.__trim()}static __fillFromParts(o,c,l){let d=0,h=0,m=0;for(let x=c.length-1;0<=x;x--){const y=c[x],g=l[x];h|=y<<m,m+=g,m===30?(o.__setDigit(d++,h),m=0,h=0):30<m&&(o.__setDigit(d++,1073741823&h),m-=30,h=y>>>g-m)}if(h!==0){if(d>=o.length)throw new Error("implementation bug");o.__setDigit(d++,h)}for(;d<o.length;d++)o.__setDigit(d,0)}static __toStringBasePowerOfTwo(o,c){const l=o.length;let d=c-1;d=(85&d>>>1)+(85&d),d=(51&d>>>2)+(51&d),d=(15&d>>>4)+(15&d);const h=d,m=c-1,x=o.__digit(l-1),y=a.__clz30(x);let g=0|(30*l-y+h-1)/h;if(o.sign&&g++,268435456<g)throw new Error("string too long");const v=Array(g);let b=g-1,E=0,D=0;for(let p=0;p<l-1;p++){const C=o.__digit(p),S=(E|C<<D)&m;v[b--]=a.__kConversionChars[S];const A=h-D;for(E=C>>>A,D=30-A;D>=h;)v[b--]=a.__kConversionChars[E&m],E>>>=h,D-=h}const w=(E|x<<D)&m;for(v[b--]=a.__kConversionChars[w],E=x>>>h-D;E!==0;)v[b--]=a.__kConversionChars[E&m],E>>>=h;if(o.sign&&(v[b--]="-"),b!=-1)throw new Error("implementation bug");return v.join("")}static __toStringGeneric(o,c,l){const d=o.length;if(d===0)return"";if(d===1){let p=o.__unsignedDigit(0).toString(c);return l===!1&&o.sign&&(p="-"+p),p}const h=30*d-a.__clz30(o.__digit(d-1)),m=a.__kMaxBitsPerChar[c],x=m-1;let y=h*a.__kBitsPerCharTableMultiplier;y+=x-1,y=0|y/x;const g=y+1>>1,v=a.exponentiate(a.__oneDigit(c,!1),a.__oneDigit(g,!1));let b,E;const D=v.__unsignedDigit(0);if(v.length===1&&32767>=D){b=new a(o.length,!1),b.__initializeDigits();let p=0;for(let C=2*o.length-1;0<=C;C--){const S=p<<15|o.__halfDigit(C);b.__setHalfDigit(C,0|S/D),p=0|S%D}E=p.toString(c)}else{const p=a.__absoluteDivLarge(o,v,!0,!0);b=p.quotient;const C=p.remainder.__trim();E=a.__toStringGeneric(C,c,!0)}b.__trim();let w=a.__toStringGeneric(b,c,!0);for(;E.length<g;)E="0"+E;return l===!1&&o.sign&&(w="-"+w),w+E}static __unequalSign(o){return o?-1:1}static __absoluteGreater(o){return o?-1:1}static __absoluteLess(o){return o?1:-1}static __compareToBigInt(o,c){const l=o.sign;if(l!==c.sign)return a.__unequalSign(l);const d=a.__absoluteCompare(o,c);return 0<d?a.__absoluteGreater(l):0>d?a.__absoluteLess(l):0}static __compareToNumber(o,c){if(a.__isOneDigitInt(c)){const l=o.sign,d=0>c;if(l!==d)return a.__unequalSign(l);if(o.length===0){if(d)throw new Error("implementation bug");return c===0?0:-1}if(1<o.length)return a.__absoluteGreater(l);const h=i(c),m=o.__unsignedDigit(0);return m>h?a.__absoluteGreater(l):m<h?a.__absoluteLess(l):0}return a.__compareToDouble(o,c)}static __compareToDouble(o,c){if(c!==c)return c;if(c===1/0)return-1;if(c===-1/0)return 1;const l=o.sign;if(l!==0>c)return a.__unequalSign(l);if(c===0)throw new Error("implementation bug: should be handled elsewhere");if(o.length===0)return-1;a.__kBitConversionDouble[0]=c;const d=2047&a.__kBitConversionInts[1]>>>20;if(d==2047)throw new Error("implementation bug: handled elsewhere");const h=d-1023;if(0>h)return a.__absoluteGreater(l);const m=o.length;let x=o.__digit(m-1);const y=a.__clz30(x),g=30*m-y,v=h+1;if(g<v)return a.__absoluteLess(l);if(g>v)return a.__absoluteGreater(l);let b=1048576|1048575&a.__kBitConversionInts[1],E=a.__kBitConversionInts[0];const D=20,w=29-y;if(w!==(0|(g-1)%30))throw new Error("implementation bug");let p,C=0;if(20>w){const S=D-w;C=S+32,p=b>>>S,b=b<<32-S|E>>>S,E<<=32-S}else if(w===20)C=32,p=b,b=E,E=0;else{const S=w-D;C=32-S,p=b<<S|E>>>32-S,b=E<<S,E=0}if(x>>>=0,p>>>=0,x>p)return a.__absoluteGreater(l);if(x<p)return a.__absoluteLess(l);for(let S=m-2;0<=S;S--){0<C?(C-=30,p=b>>>2,b=b<<30|E>>>2,E<<=30):p=0;const A=o.__unsignedDigit(S);if(A>p)return a.__absoluteGreater(l);if(A<p)return a.__absoluteLess(l)}if(b!==0||E!==0){if(C===0)throw new Error("implementation bug");return a.__absoluteLess(l)}return 0}static __equalToNumber(o,c){return a.__isOneDigitInt(c)?c===0?o.length===0:o.length===1&&o.sign===0>c&&o.__unsignedDigit(0)===i(c):a.__compareToDouble(o,c)===0}static __comparisonResultToBool(o,c){return c===0?0>o:c===1?0>=o:c===2?0<o:c===3?0<=o:void 0}static __compare(o,c,l){if(o=a.__toPrimitive(o),c=a.__toPrimitive(c),typeof o=="string"&&typeof c=="string")switch(l){case 0:return o<c;case 1:return o<=c;case 2:return o>c;case 3:return o>=c}if(a.__isBigInt(o)&&typeof c=="string")return c=a.__fromString(c),c!==null&&a.__comparisonResultToBool(a.__compareToBigInt(o,c),l);if(typeof o=="string"&&a.__isBigInt(c))return o=a.__fromString(o),o!==null&&a.__comparisonResultToBool(a.__compareToBigInt(o,c),l);if(o=a.__toNumeric(o),c=a.__toNumeric(c),a.__isBigInt(o)){if(a.__isBigInt(c))return a.__comparisonResultToBool(a.__compareToBigInt(o,c),l);if(typeof c!="number")throw new Error("implementation bug");return a.__comparisonResultToBool(a.__compareToNumber(o,c),l)}if(typeof o!="number")throw new Error("implementation bug");if(a.__isBigInt(c))return a.__comparisonResultToBool(a.__compareToNumber(c,o),2^l);if(typeof c!="number")throw new Error("implementation bug");return l===0?o<c:l===1?o<=c:l===2?o>c:l===3?o>=c:void 0}__clzmsd(){return a.__clz30(this.__digit(this.length-1))}static __absoluteAdd(o,c,l){if(o.length<c.length)return a.__absoluteAdd(c,o,l);if(o.length===0)return o;if(c.length===0)return o.sign===l?o:a.unaryMinus(o);let d=o.length;(o.__clzmsd()===0||c.length===o.length&&c.__clzmsd()===0)&&d++;const h=new a(d,l);let m=0,x=0;for(;x<c.length;x++){const y=o.__digit(x)+c.__digit(x)+m;m=y>>>30,h.__setDigit(x,1073741823&y)}for(;x<o.length;x++){const y=o.__digit(x)+m;m=y>>>30,h.__setDigit(x,1073741823&y)}return x<h.length&&h.__setDigit(x,m),h.__trim()}static __absoluteSub(o,c,l){if(o.length===0)return o;if(c.length===0)return o.sign===l?o:a.unaryMinus(o);const d=new a(o.length,l);let h=0,m=0;for(;m<c.length;m++){const x=o.__digit(m)-c.__digit(m)-h;h=1&x>>>30,d.__setDigit(m,1073741823&x)}for(;m<o.length;m++){const x=o.__digit(m)-h;h=1&x>>>30,d.__setDigit(m,1073741823&x)}return d.__trim()}static __absoluteAddOne(o,c,l=null){const d=o.length;l===null?l=new a(d,c):l.sign=c;let h=1;for(let m=0;m<d;m++){const x=o.__digit(m)+h;h=x>>>30,l.__setDigit(m,1073741823&x)}return h!=0&&l.__setDigitGrow(d,1),l}static __absoluteSubOne(o,c){const l=o.length;c=c||l;const d=new a(c,!1);let h=1;for(let m=0;m<l;m++){const x=o.__digit(m)-h;h=1&x>>>30,d.__setDigit(m,1073741823&x)}if(h!=0)throw new Error("implementation bug");for(let m=l;m<c;m++)d.__setDigit(m,0);return d}static __absoluteAnd(o,c,l=null){let d=o.length,h=c.length,m=h;if(d<h){m=d;const g=o,v=d;o=c,d=h,c=g,h=v}let x=m;l===null?l=new a(x,!1):x=l.length;let y=0;for(;y<m;y++)l.__setDigit(y,o.__digit(y)&c.__digit(y));for(;y<x;y++)l.__setDigit(y,0);return l}static __absoluteAndNot(o,c,l=null){const d=o.length,h=c.length;let m=h;d<h&&(m=d);let x=d;l===null?l=new a(x,!1):x=l.length;let y=0;for(;y<m;y++)l.__setDigit(y,o.__digit(y)&~c.__digit(y));for(;y<d;y++)l.__setDigit(y,o.__digit(y));for(;y<x;y++)l.__setDigit(y,0);return l}static __absoluteOr(o,c,l=null){let d=o.length,h=c.length,m=h;if(d<h){m=d;const g=o,v=d;o=c,d=h,c=g,h=v}let x=d;l===null?l=new a(x,!1):x=l.length;let y=0;for(;y<m;y++)l.__setDigit(y,o.__digit(y)|c.__digit(y));for(;y<d;y++)l.__setDigit(y,o.__digit(y));for(;y<x;y++)l.__setDigit(y,0);return l}static __absoluteXor(o,c,l=null){let d=o.length,h=c.length,m=h;if(d<h){m=d;const g=o,v=d;o=c,d=h,c=g,h=v}let x=d;l===null?l=new a(x,!1):x=l.length;let y=0;for(;y<m;y++)l.__setDigit(y,o.__digit(y)^c.__digit(y));for(;y<d;y++)l.__setDigit(y,o.__digit(y));for(;y<x;y++)l.__setDigit(y,0);return l}static __absoluteCompare(o,c){const l=o.length-c.length;if(l!=0)return l;let d=o.length-1;for(;0<=d&&o.__digit(d)===c.__digit(d);)d--;return 0>d?0:o.__unsignedDigit(d)>c.__unsignedDigit(d)?1:-1}static __multiplyAccumulate(o,c,l,d){if(c===0)return;const h=32767&c,m=c>>>15;let x=0,y=0;for(let g,v=0;v<o.length;v++,d++){g=l.__digit(d);const b=o.__digit(v),E=32767&b,D=b>>>15,w=a.__imul(E,h),p=a.__imul(E,m),C=a.__imul(D,h),S=a.__imul(D,m);g+=y+w+x,x=g>>>30,g&=1073741823,g+=((32767&p)<<15)+((32767&C)<<15),x+=g>>>30,y=S+(p>>>15)+(C>>>15),l.__setDigit(d,1073741823&g)}for(;x!=0||y!==0;d++){let g=l.__digit(d);g+=x+y,y=0,x=g>>>30,l.__setDigit(d,1073741823&g)}}static __internalMultiplyAdd(o,c,l,d,h){let m=l,x=0;for(let y=0;y<d;y++){const g=o.__digit(y),v=a.__imul(32767&g,c),b=a.__imul(g>>>15,c),E=v+((32767&b)<<15)+x+m;m=E>>>30,x=b>>>15,h.__setDigit(y,1073741823&E)}if(h.length>d)for(h.__setDigit(d++,m+x);d<h.length;)h.__setDigit(d++,0);else if(m+x!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(o,c,l){l>this.length&&(l=this.length);const d=32767&o,h=o>>>15;let m=0,x=c;for(let y=0;y<l;y++){const g=this.__digit(y),v=32767&g,b=g>>>15,E=a.__imul(v,d),D=a.__imul(v,h),w=a.__imul(b,d),p=a.__imul(b,h);let C=x+E+m;m=C>>>30,C&=1073741823,C+=((32767&D)<<15)+((32767&w)<<15),m+=C>>>30,x=p+(D>>>15)+(w>>>15),this.__setDigit(y,1073741823&C)}if(m!=0||x!==0)throw new Error("implementation bug")}static __absoluteDivSmall(o,c,l=null){l===null&&(l=new a(o.length,!1));let d=0;for(let h,m=2*o.length-1;0<=m;m-=2){h=(d<<15|o.__halfDigit(m))>>>0;const x=0|h/c;d=0|h%c,h=(d<<15|o.__halfDigit(m-1))>>>0;const y=0|h/c;d=0|h%c,l.__setDigit(m>>>1,x<<15|y)}return l}static __absoluteModSmall(o,c){let l=0;for(let d=2*o.length-1;0<=d;d--)l=0|((l<<15|o.__halfDigit(d))>>>0)%c;return l}static __absoluteDivLarge(o,c,l,d){const h=c.__halfDigitLength(),m=c.length,x=o.__halfDigitLength()-h;let y=null;l&&(y=new a(x+2>>>1,!1),y.__initializeDigits());const g=new a(h+2>>>1,!1);g.__initializeDigits();const v=a.__clz15(c.__halfDigit(h-1));0<v&&(c=a.__specialLeftShift(c,v,0));const b=a.__specialLeftShift(o,v,1),E=c.__halfDigit(h-1);let D=0;for(let w,p=x;0<=p;p--){w=32767;const C=b.__halfDigit(p+h);if(C!==E){const A=(C<<15|b.__halfDigit(p+h-1))>>>0;w=0|A/E;let j=0|A%E;const V=c.__halfDigit(h-2),z=b.__halfDigit(p+h-2);for(;a.__imul(w,V)>>>0>(j<<16|z)>>>0&&(w--,j+=E,!(32767<j)););}a.__internalMultiplyAdd(c,w,0,m,g);let S=b.__inplaceSub(g,p,h+1);S!==0&&(S=b.__inplaceAdd(c,p,h),b.__setHalfDigit(p+h,32767&b.__halfDigit(p+h)+S),w--),l&&(1&p?D=w<<15:y.__setDigit(p>>>1,D|w))}if(d)return b.__inplaceRightShift(v),l?{quotient:y,remainder:b}:b;if(l)return y;throw new Error("unreachable")}static __clz15(o){return a.__clz30(o)-15}__inplaceAdd(o,c,l){let d=0;for(let h=0;h<l;h++){const m=this.__halfDigit(c+h)+o.__halfDigit(h)+d;d=m>>>15,this.__setHalfDigit(c+h,32767&m)}return d}__inplaceSub(o,c,l){let d=0;if(1&c){c>>=1;let h=this.__digit(c),m=32767&h,x=0;for(;x<l-1>>>1;x++){const v=o.__digit(x),b=(h>>>15)-(32767&v)-d;d=1&b>>>15,this.__setDigit(c+x,(32767&b)<<15|32767&m),h=this.__digit(c+x+1),m=(32767&h)-(v>>>15)-d,d=1&m>>>15}const y=o.__digit(x),g=(h>>>15)-(32767&y)-d;if(d=1&g>>>15,this.__setDigit(c+x,(32767&g)<<15|32767&m),c+x+1>=this.length)throw new RangeError("out of bounds");(1&l)==0&&(h=this.__digit(c+x+1),m=(32767&h)-(y>>>15)-d,d=1&m>>>15,this.__setDigit(c+o.length,1073709056&h|32767&m))}else{c>>=1;let h=0;for(;h<o.length-1;h++){const v=this.__digit(c+h),b=o.__digit(h),E=(32767&v)-(32767&b)-d;d=1&E>>>15;const D=(v>>>15)-(b>>>15)-d;d=1&D>>>15,this.__setDigit(c+h,(32767&D)<<15|32767&E)}const m=this.__digit(c+h),x=o.__digit(h),y=(32767&m)-(32767&x)-d;d=1&y>>>15;let g=0;(1&l)==0&&(g=(m>>>15)-(x>>>15)-d,d=1&g>>>15),this.__setDigit(c+h,(32767&g)<<15|32767&y)}return d}__inplaceRightShift(o){if(o===0)return;let c=this.__digit(0)>>>o;const l=this.length-1;for(let d=0;d<l;d++){const h=this.__digit(d+1);this.__setDigit(d,1073741823&h<<30-o|c),c=h>>>o}this.__setDigit(l,c)}static __specialLeftShift(o,c,l){const d=o.length,h=new a(d+l,!1);if(c===0){for(let x=0;x<d;x++)h.__setDigit(x,o.__digit(x));return 0<l&&h.__setDigit(d,0),h}let m=0;for(let x=0;x<d;x++){const y=o.__digit(x);h.__setDigit(x,1073741823&y<<c|m),m=y>>>30-c}return 0<l&&h.__setDigit(d,m),h}static __leftShiftByAbsolute(o,c){const l=a.__toShiftAmount(c);if(0>l)throw new RangeError("BigInt too big");const d=0|l/30,h=l%30,m=o.length,x=h!==0&&o.__digit(m-1)>>>30-h!=0,y=m+d+(x?1:0),g=new a(y,o.sign);if(h===0){let v=0;for(;v<d;v++)g.__setDigit(v,0);for(;v<y;v++)g.__setDigit(v,o.__digit(v-d))}else{let v=0;for(let b=0;b<d;b++)g.__setDigit(b,0);for(let b=0;b<m;b++){const E=o.__digit(b);g.__setDigit(b+d,1073741823&E<<h|v),v=E>>>30-h}if(x)g.__setDigit(m+d,v);else if(v!==0)throw new Error("implementation bug")}return g.__trim()}static __rightShiftByAbsolute(o,c){const l=o.length,d=o.sign,h=a.__toShiftAmount(c);if(0>h)return a.__rightShiftByMaximum(d);const m=0|h/30,x=h%30;let y=l-m;if(0>=y)return a.__rightShiftByMaximum(d);let g=!1;if(d){if((o.__digit(m)&(1<<x)-1)!=0)g=!0;else for(let b=0;b<m;b++)if(o.__digit(b)!==0){g=!0;break}}g&&x===0&&~o.__digit(l-1)==0&&y++;let v=new a(y,d);if(x===0){v.__setDigit(y-1,0);for(let b=m;b<l;b++)v.__setDigit(b-m,o.__digit(b))}else{let b=o.__digit(m)>>>x;const E=l-m-1;for(let D=0;D<E;D++){const w=o.__digit(D+m+1);v.__setDigit(D,1073741823&w<<30-x|b),b=w>>>x}v.__setDigit(E,b)}return g&&(v=a.__absoluteAddOne(v,!0,v)),v.__trim()}static __rightShiftByMaximum(o){return o?a.__oneDigit(1,!0):a.__zero()}static __toShiftAmount(o){if(1<o.length)return-1;const c=o.__unsignedDigit(0);return c>a.__kMaxLengthBits?-1:c}static __toPrimitive(o,c="default"){if(typeof o!="object"||o.constructor===a)return o;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"){const h=o[Symbol.toPrimitive];if(h){const m=h(c);if(typeof m!="object")return m;throw new TypeError("Cannot convert object to primitive value")}}const l=o.valueOf;if(l){const h=l.call(o);if(typeof h!="object")return h}const d=o.toString;if(d){const h=d.call(o);if(typeof h!="object")return h}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(o){return a.__isBigInt(o)?o:+o}static __isBigInt(o){return typeof o=="object"&&o!==null&&o.constructor===a}static __truncateToNBits(o,c){const l=0|(o+29)/30,d=new a(l,c.sign),h=l-1;for(let x=0;x<h;x++)d.__setDigit(x,c.__digit(x));let m=c.__digit(h);if(o%30!=0){const x=32-o%30;m=m<<x>>>x}return d.__setDigit(h,m),d.__trim()}static __truncateAndSubFromPowerOfTwo(o,c,l){var d=Math.min;const h=0|(o+29)/30,m=new a(h,l);let x=0;const y=h-1;let g=0;for(const D=d(y,c.length);x<D;x++){const w=0-c.__digit(x)-g;g=1&w>>>30,m.__setDigit(x,1073741823&w)}for(;x<y;x++)m.__setDigit(x,0|1073741823&-g);let v=y<c.length?c.__digit(y):0;const b=o%30;let E;if(b==0)E=0-v-g,E&=1073741823;else{const D=32-b;v=v<<D>>>D;const w=1<<32-D;E=w-v-g,E&=w-1}return m.__setDigit(y,E),m.__trim()}__digit(o){return this[o]}__unsignedDigit(o){return this[o]>>>0}__setDigit(o,c){this[o]=0|c}__setDigitGrow(o,c){this[o]=0|c}__halfDigitLength(){const o=this.length;return 32767>=this.__unsignedDigit(o-1)?2*o-1:2*o}__halfDigit(o){return 32767&this[o>>>1]>>>15*(1&o)}__setHalfDigit(o,c){const l=o>>>1,d=this.__digit(l),h=1&o?32767&d|c<<15:1073709056&d|32767&c;this.__setDigit(l,h)}static __digitPow(o,c){let l=1;for(;0<c;)1&c&&(l*=o),c>>>=1,o*=o;return l}static __isOneDigitInt(o){return(1073741823&o)===o}}return a.__kMaxLength=33554432,a.__kMaxLengthBits=a.__kMaxLength<<5,a.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],a.__kBitsPerCharTableShift=5,a.__kBitsPerCharTableMultiplier=1<<a.__kBitsPerCharTableShift,a.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],a.__kBitConversionBuffer=new ArrayBuffer(8),a.__kBitConversionDouble=new Float64Array(a.__kBitConversionBuffer),a.__kBitConversionInts=new Int32Array(a.__kBitConversionBuffer),a.__clz30=r?function(f){return r(f)-2}:function(f){var o=Math.LN2,c=Math.log;return f===0?30:0|29-(0|c(f>>>0)/o)},a.__imul=t||function(f,o){return 0|f*o},a})}(Gr)),Gr.exports}var h3;function ul(){if(h3)return yt;h3=1;var e=yt&&yt.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(yt,"__esModule",{value:!0});const n=ht(),t=e(Qf()),r=e(cl()),i=18446744073709552e3,s=(a,f)=>r.default.bitwiseXor(r.default.asUintN(64,r.default.leftShift(a,r.default.BigInt(f))),r.default.BigInt(r.default.asUintN(64,r.default.signedRightShift(a,r.default.subtract(r.default.BigInt(64),r.default.BigInt(f))))));class u{constructor(f){this.next=()=>new t.default(this.roll().toString()),this.nextDouble=()=>new t.default(this.roll().toString()).div(i+1),this.nextInt=(c,l)=>Math.floor(this.nextDouble().toNumber()*(l-c+1)+c),this.nextByte=()=>this.nextInt(0,255),this.nextData=c=>[...new Array(c)].map(()=>this.nextByte());const o=n.sha256Hash(f);this.s=[r.default.BigInt(0),r.default.BigInt(0),r.default.BigInt(0),r.default.BigInt(0)],this.setS(o)}setS(f){for(let o=0;o<4;o++){let c=o*8,l=r.default.BigInt(0);for(let d=0;d<8;d++)l=r.default.asUintN(64,r.default.leftShift(l,r.default.BigInt(8))),l=r.default.asUintN(64,r.default.bitwiseOr(l,r.default.BigInt(f[c+d])));this.s[o]=r.default.asUintN(64,l)}}roll(){const f=r.default.asUintN(64,r.default.multiply(s(r.default.asUintN(64,r.default.multiply(this.s[1],r.default.BigInt(5))),7),r.default.BigInt(9))),o=r.default.asUintN(64,r.default.leftShift(this.s[1],r.default.BigInt(17)));return this.s[2]=r.default.asUintN(64,r.default.bitwiseXor(this.s[2],r.default.BigInt(this.s[0]))),this.s[3]=r.default.asUintN(64,r.default.bitwiseXor(this.s[3],r.default.BigInt(this.s[1]))),this.s[1]=r.default.asUintN(64,r.default.bitwiseXor(this.s[1],r.default.BigInt(this.s[2]))),this.s[0]=r.default.asUintN(64,r.default.bitwiseXor(this.s[0],r.default.BigInt(this.s[3]))),this.s[2]=r.default.asUintN(64,r.default.bitwiseXor(this.s[2],r.default.BigInt(o))),this.s[3]=r.default.asUintN(64,s(this.s[3],45)),f}}return yt.default=u,yt}var fl=function(e,n){var t=e.reduce(function(c,l){if(l<0)throw new Error("Probability must be a positive: p["+e.indexOf(l)+"]="+l);return c+l},0);if(t===0)throw new Error("Probability sum must be greater than zero.");for(var r=e.map(function(c){return c*n/t}),i={prob:new Array(n),alias:new Array(n)},s=[],u=[],a=n-1;a>=0;a--)r[a]<1?s.push(a):u.push(a);for(;s.length>0&&u.length>0;){var f=s.pop(),o=u.pop();i.prob[f]=r[f],i.alias[f]=o,r[o]=r[o]+r[f]-1,r[o]<1?s.push(o):u.push(o)}for(;u.length>0;)i.prob[u.pop()]=1;for(;s.length>0;)i.prob[s.pop()]=1;return i},p3=function(e,n,t){var r=Math.floor(t()*e.prob.length);return n[t()<e.prob[r]?r:e.alias[r]]},ll=function(e,n,t,r){if(r===void 0&&(r=1),r===1)return p3(e,n,t);for(var i=[],s=0;s<r;s++)i.push(p3(e,n,t));return i},dl=function(e,n,t){if(t===void 0&&(t=Math.random),!Array.isArray(e))throw new Error("Probabilities must be an array.");if(e.length===0)throw new Error("Probabilities array must not be empty.");var r=e.length,i=n??Array.from({length:r},function(u,a){return a}),s=fl(e,r);return{next:function(u){return u===void 0&&(u=1),ll(s,i,t,u)}}};const hl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),pl=St(hl);var g3;function hu(){return g3||(g3=1,function(e){var n=Nt&&Nt.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.chooseFragments=e.shuffle=e.chooseDegree=void 0;const t=ht(),r=n(ul()),i=n(pl),s=(f,o)=>{const c=[...new Array(f)].map((d,h)=>1/(h+1));return i.default(c,void 0,o.nextDouble).next()+1};e.chooseDegree=s;const u=(f,o)=>{let c=[...f],l=[];for(;c.length>0;){let d=o.nextInt(0,c.length-1),h=c[d];c.splice(d,1),l.push(h)}return l};e.shuffle=u;const a=(f,o,c)=>{if(f<=o)return[f-1];{const l=Buffer.concat([t.intToBytes(f),t.intToBytes(c)]),d=new r.default(l),h=e.chooseDegree(o,d),m=[...new Array(o)].map((y,g)=>g);return e.shuffle(m,d).slice(0,h)}};e.chooseFragments=a}(Nt)),Nt}var y3;function pu(){if(y3)return Ze;y3=1;var e=Ze&&Ze.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.FountainEncoderPart=void 0;const n=e(xr()),t=ht(),r=hu(),i=ou();class s{constructor(f,o,c,l,d){this._seqNum=f,this._seqLength=o,this._messageLength=c,this._checksum=l,this._fragment=d}get messageLength(){return this._messageLength}get fragment(){return this._fragment}get seqNum(){return this._seqNum}get seqLength(){return this._seqLength}get checksum(){return this._checksum}cbor(){const f=i.cborEncode([this._seqNum,this._seqLength,this._messageLength,this._checksum,this._fragment]);return Buffer.from(f)}description(){return`seqNum:${this._seqNum}, seqLen:${this._seqLength}, messageLen:${this._messageLength}, checksum:${this._checksum}, data:${this._fragment.toString("hex")}`}static fromCBOR(f){const[o,c,l,d,h]=i.cborDecode(f);return n.default(typeof o=="number"),n.default(typeof c=="number"),n.default(typeof l=="number"),n.default(typeof d=="number"),n.default(Buffer.isBuffer(h)&&h.length>0),new s(o,c,l,d,Buffer.from(h))}}Ze.FountainEncoderPart=s;class u{constructor(f,o=100,c=0,l=10){const d=u.findNominalFragmentLength(f.length,l,o);this._messageLength=f.length,this._fragments=u.partitionMessage(f,d),this.fragmentLength=d,this.seqNum=t.toUint32(c),this.checksum=t.getCRC(f)}get fragmentsLength(){return this._fragments.length}get fragments(){return this._fragments}get messageLength(){return this._messageLength}isComplete(){return this.seqNum>=this._fragments.length}isSinglePart(){return this._fragments.length===1}seqLength(){return this._fragments.length}mix(f){return f.reduce((o,c)=>t.bufferXOR(this._fragments[c],o),Buffer.alloc(this.fragmentLength,0))}nextPart(){this.seqNum=t.toUint32(this.seqNum+1);const f=r.chooseFragments(this.seqNum,this._fragments.length,this.checksum),o=this.mix(f);return new s(this.seqNum,this._fragments.length,this._messageLength,this.checksum,o)}static findNominalFragmentLength(f,o,c){n.default(f>0),n.default(o>0),n.default(c>=o);const l=Math.ceil(f/o);let d=0;for(let h=1;h<=l&&(d=Math.ceil(f/h),!(d<=c));h++);return d}static partitionMessage(f,o){let c=Buffer.from(f),l,d=[];for(;c.length>0;)[l,c]=t.split(c,-o),l=Buffer.alloc(o,0).fill(l,0,l.length),d.push(l);return d}}return Ze.default=u,Ze}var mt={},m3;function gu(){if(m3)return mt;m3=1;var e=mt&&mt.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(mt,"__esModule",{value:!0});const n=e(xr()),t=ht(),r="ableacidalsoapexaquaarchatomauntawayaxisbackbaldbarnbeltbetabiasbluebodybragbrewbulbbuzzcalmcashcatschefcityclawcodecolacookcostcruxcurlcuspcyandarkdatadaysdelidicedietdoordowndrawdropdrumdulldutyeacheasyechoedgeepicevenexamexiteyesfactfairfernfigsfilmfishfizzflapflewfluxfoxyfreefrogfuelfundgalagamegeargemsgiftgirlglowgoodgraygrimgurugushgyrohalfhanghardhawkheathelphighhillholyhopehornhutsicedideaidleinchinkyintoirisironitemjadejazzjoinjoltjowljudojugsjumpjunkjurykeepkenokeptkeyskickkilnkingkitekiwiknoblamblavalazyleaflegsliarlimplionlistlogoloudloveluaulucklungmainmanymathmazememomenumeowmildmintmissmonknailnavyneednewsnextnoonnotenumbobeyoboeomitonyxopenovalowlspaidpartpeckplaypluspoempoolposepuffpumapurrquadquizraceramprealredorichroadrockroofrubyruinrunsrustsafesagascarsetssilkskewslotsoapsolosongstubsurfswantacotasktaxitenttiedtimetinytoiltombtoystriptunatwinuglyundouniturgeuservastveryvetovialvibeviewvisavoidvowswallwandwarmwaspwavewaxywebswhatwhenwhizwolfworkyankyawnyellyogayurtzapszerozestzinczonezoom";let i=[];const s=256,u=4,a=2;var f;(function(v){v.STANDARD="standard",v.URI="uri",v.MINIMAL="minimal"})(f||(f={}));const o=v=>r.slice(v*u,v*u+u),c=v=>{const b=o(v);return`${b[0]}${b[u-1]}`},l=v=>{const b=t.getCRCHex(Buffer.from(v,"hex"));return`${v}${b}`},d=(v,b)=>{const E=l(v);return Buffer.from(E,"hex").reduce((p,C)=>[...p,o(C)],[]).join(b)},h=v=>{const b=l(v);return Buffer.from(b,"hex").reduce((w,p)=>w+c(p),"")},m=(v,b)=>{n.default(v.length===b,"Invalid Bytewords: word.length does not match wordLength provided");const E=26;if(i.length===0){const S=E*E;i=[...new Array(S)].map(()=>-1);for(let A=0;A<s;A++){const j=o(A);let V=j[0].charCodeAt(0)-97,L=(j[3].charCodeAt(0)-97)*E+V;i[L]=A}}let D=v[0].toLowerCase().charCodeAt(0)-97,w=v[b==4?3:1].toLowerCase().charCodeAt(0)-97;n.default(0<=D&&D<E&&0<=w&&w<E,"Invalid Bytewords: invalid word");let p=w*E+D,C=i[p];if(n.default(C!==-1,"Invalid Bytewords: value not in lookup table"),b==u){const S=o(C);let A=v[1].toLowerCase(),j=v[2].toLowerCase();n.default(A===S[1]&&j===S[2],"Invalid Bytewords: invalid middle letters of word")}return Buffer.from([C]).toString("hex")},x=(v,b,E)=>{const w=(E==u?v.split(b):t.partition(v,2)).map(A=>m(A,E)).join("");n.default(w.length>=5,"Invalid Bytewords: invalid decoded string length");const[p,C]=t.split(Buffer.from(w,"hex"),4),S=t.getCRCHex(p);return n.default(S===C.toString("hex"),"Invalid Checksum"),p.toString("hex")},y=(v,b=f.MINIMAL)=>{switch(b){case f.STANDARD:return x(v," ",u);case f.URI:return x(v,"-",u);case f.MINIMAL:return x(v,"",a);default:throw new Error(`Invalid style ${b}`)}},g=(v,b=f.MINIMAL)=>{switch(b){case f.STANDARD:return d(v," ");case f.URI:return d(v,"-");case f.MINIMAL:return h(v);default:throw new Error(`Invalid style ${b}`)}};return mt.default={decode:y,encode:g,STYLES:f},mt}var v3;function gl(){if(v3)return gt;v3=1;var e=gt&>.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(gt,"__esModule",{value:!0});const n=e(pu()),t=e(gu());class r{constructor(s,u,a,f){this.ur=s,this.fountainEncoder=new n.default(s.cbor,u,a,f)}get fragmentsLength(){return this.fountainEncoder.fragmentsLength}get fragments(){return this.fountainEncoder.fragments}get messageLength(){return this.fountainEncoder.messageLength}get cbor(){return this.ur.cbor}encodeWhole(){return[...new Array(this.fragmentsLength)].map(()=>this.nextPart())}nextPart(){const s=this.fountainEncoder.nextPart();return this.fountainEncoder.isSinglePart()?r.encodeSinglePart(this.ur):r.encodePart(this.ur.type,s)}static encodeUri(s,u){const a=u.join("/");return[s,a].join(":")}static encodeUR(s){return r.encodeUri("ur",s)}static encodePart(s,u){const a=`${u.seqNum}-${u.seqLength}`,f=t.default.encode(u.cbor().toString("hex"),t.default.STYLES.MINIMAL);return r.encodeUR([s,a,f])}static encodeSinglePart(s){const u=t.default.encode(s.cbor.toString("hex"),t.default.STYLES.MINIMAL);return r.encodeUR([s.type,u])}}return gt.default=r,gt}var vt={},xt={},x3;function yl(){if(x3)return xt;x3=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.FountainDecoderPart=void 0;const e=ht(),n=hu(),t=ma();class r{constructor(u,a){this._indexes=u,this._fragment=a}get indexes(){return this._indexes}get fragment(){return this._fragment}static fromEncoderPart(u){const a=n.chooseFragments(u.seqNum,u.seqLength,u.checksum),f=u.fragment;return new r(a,f)}isSimple(){return this.indexes.length===1}}xt.FountainDecoderPart=r;class i{constructor(){this.result=void 0,this.expectedMessageLength=0,this.expectedChecksum=0,this.expectedFragmentLength=0,this.processedPartsCount=0,this.expectedPartIndexes=[],this.lastPartIndexes=[],this.queuedParts=[],this.receivedPartIndexes=[],this.mixedParts=[],this.simpleParts=[]}validatePart(u){if(this.expectedPartIndexes.length===0)[...new Array(u.seqLength)].forEach((a,f)=>this.expectedPartIndexes.push(f)),this.expectedMessageLength=u.messageLength,this.expectedChecksum=u.checksum,this.expectedFragmentLength=u.fragment.length;else if(this.expectedPartIndexes.length!==u.seqLength||this.expectedMessageLength!==u.messageLength||this.expectedChecksum!==u.checksum||this.expectedFragmentLength!==u.fragment.length)return!1;return!0}reducePartByPart(u,a){if(e.arrayContains(u.indexes,a.indexes)){const f=e.setDifference(u.indexes,a.indexes),o=e.bufferXOR(u.fragment,a.fragment);return new r(f,o)}else return u}reduceMixedBy(u){const a=[];this.mixedParts.map(({value:f})=>this.reducePartByPart(f,u)).forEach(f=>{f.isSimple()?this.queuedParts.push(f):a.push({key:f.indexes,value:f})}),this.mixedParts=a}processSimplePart(u){const a=u.indexes[0];if(!this.receivedPartIndexes.includes(a))if(this.simpleParts.push({key:u.indexes,value:u}),this.receivedPartIndexes.push(a),e.arraysEqual(this.receivedPartIndexes,this.expectedPartIndexes)){const f=this.simpleParts.map(({value:l})=>l).sort((l,d)=>l.indexes[0]-d.indexes[0]),o=i.joinFragments(f.map(l=>l.fragment),this.expectedMessageLength);e.getCRC(o)===this.expectedChecksum?this.result=o:this.error=new t.InvalidChecksumError}else this.reduceMixedBy(u)}processMixedPart(u){if(this.mixedParts.some(({key:f})=>e.arraysEqual(f,u.indexes)))return;let a=this.simpleParts.reduce((f,{value:o})=>this.reducePartByPart(f,o),u);a=this.mixedParts.reduce((f,{value:o})=>this.reducePartByPart(f,o),a),a.isSimple()?this.queuedParts.push(a):(this.reduceMixedBy(a),this.mixedParts.push({key:a.indexes,value:a}))}processQueuedItem(){if(this.queuedParts.length===0)return;const u=this.queuedParts.shift();u.isSimple()?this.processSimplePart(u):this.processMixedPart(u)}receivePart(u){if(this.isComplete()||!this.validatePart(u))return!1;const a=r.fromEncoderPart(u);for(this.lastPartIndexes=a.indexes,this.queuedParts.push(a);!this.isComplete()&&this.queuedParts.length>0;)this.processQueuedItem();return this.processedPartsCount+=1,!0}isComplete(){return this.result!==void 0&&this.result.length>0}isSuccess(){return!!(this.error===void 0&&this.isComplete())}resultMessage(){return this.isSuccess()?this.result:Buffer.from([])}isFailure(){return this.error!==void 0}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.expectedPartIndexes.length}getExpectedPartIndexes(){return[...this.expectedPartIndexes]}getReceivedPartIndexes(){return[...this.receivedPartIndexes]}getLastPartIndexes(){return[...this.lastPartIndexes]}estimatedPercentComplete(){if(this.isComplete())return 1;const u=this.expectedPartCount();return u===0?0:Math.min(.99,this.processedPartsCount/(u*1.75))}getProgress(){if(this.isComplete())return 1;const u=this.expectedPartCount();return u===0?0:this.receivedPartIndexes.length/u}}return xt.default=i,i.joinFragments=(s,u)=>Buffer.concat(s).slice(0,u),xt}var b3;function ml(){if(b3)return vt;b3=1;var e=vt&&vt.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(vt,"__esModule",{value:!0});const n=e(yl()),t=e(gu()),r=e(xr()),i=ht(),s=ma(),u=e(au()),a=pu();class f{constructor(c=new n.default,l="bytes"){this.fountainDecoder=c,this.type=l,r.default(i.isURType(l),"Invalid UR type"),this.expected_type=""}static decodeBody(c,l){const d=t.default.decode(l,t.default.STYLES.MINIMAL);return new u.default(Buffer.from(d,"hex"),c)}validatePart(c){return this.expected_type?this.expected_type===c:i.isURType(c)?(this.expected_type=c,!0):!1}static decode(c){const[l,d]=this.parse(c);if(d.length===0)throw new s.InvalidPathLengthError;const h=d[0];return f.decodeBody(l,h)}static parse(c){const l=c.toLowerCase();if(l.slice(0,3)!=="ur:")throw new s.InvalidSchemeError;const h=l.slice(3).split("/"),m=h[0];if(h.length<2)throw new s.InvalidPathLengthError;if(!i.isURType(m))throw new s.InvalidTypeError;return[m,h.slice(1)]}static parseSequenceComponent(c){const l=c.split("-");if(l.length!==2)throw new s.InvalidSequenceComponentError;const d=i.toUint32(Number(l[0])),h=Number(l[1]);if(d<1||h<1)throw new s.InvalidSequenceComponentError;return[d,h]}receivePart(c){if(this.result!==void 0)return!1;const[l,d]=f.parse(c);if(!this.validatePart(l))return!1;if(d.length===1)return this.result=f.decodeBody(l,d[0]),!0;if(d.length!==2)throw new s.InvalidPathLengthError;const[h,m]=d,[x,y]=f.parseSequenceComponent(h),g=t.default.decode(m,t.default.STYLES.MINIMAL),v=a.FountainEncoderPart.fromCBOR(g);return x!==v.seqNum||y!==v.seqLength||!this.fountainDecoder.receivePart(v)?!1:(this.fountainDecoder.isSuccess()?this.result=new u.default(this.fountainDecoder.resultMessage(),l):this.fountainDecoder.isFailure()&&(this.error=new s.InvalidSchemeError),!0)}resultUR(){return this.result?this.result:new u.default(Buffer.from([]))}isComplete(){return this.result&&this.result.cbor.length>0}isSuccess(){return!this.error&&this.isComplete()}isError(){return this.error!==void 0}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.fountainDecoder.expectedPartCount()}expectedPartIndexes(){return this.fountainDecoder.getExpectedPartIndexes()}receivedPartIndexes(){return this.fountainDecoder.getReceivedPartIndexes()}lastPartIndexes(){return this.fountainDecoder.getLastPartIndexes()}estimatedPercentComplete(){return this.fountainDecoder.estimatedPercentComplete()}getProgress(){return this.fountainDecoder.getProgress()}}return vt.default=f,vt}var C3;function Er(){if(C3)return We;C3=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(We,"__esModule",{value:!0}),We.URDecoder=We.UREncoder=We.UR=void 0;const n=e(au());We.UR=n.default;const t=e(gl());We.UREncoder=t.default;const r=e(ml());return We.URDecoder=r.default,We}var _3;function je(){if(_3)return jt;_3=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.RegistryItem=void 0;const e=Er(),n=Ce();class t{constructor(){this.toCBOR=()=>{if(this.toDataItem()===void 0)throw new Error(`#[ur-registry][RegistryItem][fn.toCBOR]: registry ${this.getRegistryType()}'s method toDataItem returns undefined`);return(0,n.encodeDataItem)(this.toDataItem())},this.toUR=()=>new e.UR(this.toCBOR(),this.getRegistryType().getType()),this.toUREncoder=(i,s,u)=>{const a=this.toUR();return new e.UREncoder(a,i,s,u)}}}return jt.RegistryItem=t,jt}var B3;function Ko(){return B3||(B3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CryptoCoinInfo=e.Network=e.Type=void 0;const n=Ce(),t=je(),r=_e();var i;(function(f){f.type="1",f.network="2"})(i||(i={}));var s;(function(f){f[f.bitcoin=0]="bitcoin"})(s=e.Type||(e.Type={}));var u;(function(f){f[f.mainnet=0]="mainnet",f[f.testnet=1]="testnet"})(u=e.Network||(e.Network={}));class a extends t.RegistryItem{constructor(o,c){super(),this.type=o,this.network=c,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_COIN_INFO,this.getType=()=>this.type||s.bitcoin,this.getNetwork=()=>this.network||u.mainnet,this.toDataItem=()=>{const l={};return this.type&&(l[i.type]=this.type),this.network&&(l[i.network]=this.network),new n.DataItem(l)}}}e.CryptoCoinInfo=a,a.fromDataItem=f=>{const o=f.getData(),c=o[i.type],l=o[i.network];return new a(c,l)},a.fromCBOR=f=>{const o=(0,n.decodeToDataItem)(f);return a.fromDataItem(o)}}(hi)),hi}var Ft={},qt={},w3;function zo(){if(w3)return qt;w3=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.PathComponent=void 0;class e{constructor(t){if(this.getIndex=()=>this.index,this.isWildcard=()=>this.wildcard,this.isHardened=()=>this.hardened,this.index=t.index,this.hardened=t.hardened,this.index!==void 0?this.wildcard=!1:this.wildcard=!0,this.index&&(this.index&e.HARDENED_BIT)!==0)throw new Error(`#[ur-registry][PathComponent][fn.constructor]: Invalid index ${this.index} - most significant bit cannot be set`)}}return qt.PathComponent=e,e.HARDENED_BIT=2147483648,qt}var S3;function Jr(){if(S3)return Ft;S3=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.CryptoKeypath=void 0;const e=Ce(),n=zo(),t=je(),r=_e();var i;(function(u){u[u.components=1]="components",u[u.source_fingerprint=2]="source_fingerprint",u[u.depth=3]="depth"})(i||(i={}));class s extends t.RegistryItem{constructor(a=[],f,o){super(),this.components=a,this.sourceFingerprint=f,this.depth=o,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_KEYPATH,this.getPath=()=>this.components.length===0?void 0:this.components.map(l=>`${l.isWildcard()?"*":l.getIndex()}${l.isHardened()?"'":""}`).join("/"),this.getComponents=()=>this.components,this.getSourceFingerprint=()=>this.sourceFingerprint,this.getDepth=()=>this.depth,this.toDataItem=()=>{const c={},l=[];return this.components&&this.components.forEach(d=>{d.isWildcard()?l.push([]):l.push(d.getIndex()),l.push(d.isHardened())}),c[i.components]=l,this.sourceFingerprint&&(c[i.source_fingerprint]=this.sourceFingerprint.readUInt32BE(0)),this.depth!==void 0&&(c[i.depth]=this.depth),new e.DataItem(c)}}}return Ft.CryptoKeypath=s,s.fromDataItem=u=>{const a=u.getData(),f=[],o=a[i.components];if(o)for(let h=0;h<o.length;h+=2){const m=o[h+1],x=o[h];typeof x=="number"?f.push(new n.PathComponent({index:x,hardened:m})):f.push(new n.PathComponent({hardened:m}))}const c=a[i.source_fingerprint];let l;c&&(l=Buffer.alloc(4),l.writeUInt32BE(c,0));const d=a[i.depth];return new s(f,l,d)},s.fromCBOR=u=>{const a=(0,e.decodeToDataItem)(u);return s.fromDataItem(a)},Ft}var E3;function br(){if(E3)return Lt;E3=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.CryptoHDKey=void 0;const e=Wc(),n=Ko(),t=Jr(),r=Ce(),i=je(),s=_e();var u;(function(f){f[f.is_master=1]="is_master",f[f.is_private=2]="is_private",f[f.key_data=3]="key_data",f[f.chain_code=4]="chain_code",f[f.use_info=5]="use_info",f[f.origin=6]="origin",f[f.children=7]="children",f[f.parent_fingerprint=8]="parent_fingerprint",f[f.name=9]="name",f[f.note=10]="note"})(u||(u={}));class a extends i.RegistryItem{constructor(o){super(),this.isECKey=()=>!1,this.getKey=()=>this.key,this.getChainCode=()=>this.chainCode,this.isMaster=()=>this.master,this.isPrivateKey=()=>!!this.privateKey,this.getUseInfo=()=>this.useInfo,this.getOrigin=()=>this.origin,this.getChildren=()=>this.children,this.getParentFingerprint=()=>this.parentFingerprint,this.getName=()=>this.name,this.getNote=()=>this.note,this.getBip32Key=()=>{var c,l,d;let h,m,x=0,y=Buffer.alloc(4).fill(0);if(this.isMaster())h=Buffer.from("0488ADE4","hex"),m=0,x=0;else{m=((c=this.getOrigin())===null||c===void 0?void 0:c.getComponents().length)||((l=this.getOrigin())===null||l===void 0?void 0:l.getDepth());const D=(d=this.getOrigin())===null||d===void 0?void 0:d.getComponents(),w=D[D.length-1];w&&(x=w.isHardened()?w.getIndex()+2147483648:w.getIndex(),this.getParentFingerprint()&&(y=this.getParentFingerprint())),this.isPrivateKey()?h=Buffer.from("0488ADE4","hex"):h=Buffer.from("0488B21E","hex")}const g=Buffer.alloc(1);g.writeUInt8(m,0);const v=Buffer.alloc(4);v.writeUInt32BE(x,0);const b=this.getChainCode(),E=this.getKey();return(0,e.encode)(Buffer.concat([h,g,y,v,b,E]))},this.getRegistryType=()=>s.RegistryTypes.CRYPTO_HDKEY,this.getOutputDescriptorContent=()=>{var c,l,d,h,m,x,y;let g="";return this.getOrigin()&&!((c=this.getOrigin())===null||c===void 0)&&c.getSourceFingerprint()&&!((l=this.getOrigin())===null||l===void 0)&&l.getPath()&&(g+=`${(h=(d=this.getOrigin())===null||d===void 0?void 0:d.getSourceFingerprint())===null||h===void 0?void 0:h.toString("hex")}/${(m=this.getOrigin())===null||m===void 0?void 0:m.getPath()}`),g+=this.getBip32Key(),this.getChildren()&&!((x=this.getChildren())===null||x===void 0)&&x.getPath()&&(g+=`/${(y=this.getChildren())===null||y===void 0?void 0:y.getPath()}`),g},this.setupMasterKey=c=>{this.master=!0,this.key=c.key,this.chainCode=c.chainCode},this.setupDeriveKey=c=>{this.master=!1,this.privateKey=c.isPrivateKey,this.key=c.key,this.chainCode=c.chainCode,this.useInfo=c.useInfo,this.origin=c.origin,this.children=c.children,this.parentFingerprint=c.parentFingerprint,this.name=c.name,this.note=c.note},this.toDataItem=()=>{const c={};if(this.master)c[u.is_master]=!0,c[u.key_data]=this.key,c[u.chain_code]=this.chainCode;else{if(this.privateKey!==void 0&&(c[u.is_private]=this.privateKey),c[u.key_data]=this.key,this.chainCode&&(c[u.chain_code]=this.chainCode),this.useInfo){const l=this.useInfo.toDataItem();l.setTag(this.useInfo.getRegistryType().getTag()),c[u.use_info]=l}if(this.origin){const l=this.origin.toDataItem();l.setTag(this.origin.getRegistryType().getTag()),c[u.origin]=l}if(this.children){const l=this.children.toDataItem();l.setTag(this.children.getRegistryType().getTag()),c[u.children]=l}this.parentFingerprint&&(c[u.parent_fingerprint]=this.parentFingerprint.readUInt32BE(0)),this.name!==void 0&&(c[u.name]=this.name),this.note!==void 0&&(c[u.note]=this.note)}return new r.DataItem(c)},o.isMaster?this.setupMasterKey(o):this.setupDeriveKey(o)}}return Lt.CryptoHDKey=a,a.fromDataItem=f=>{const o=f.getData(),c=!!o[u.is_master],l=o[u.is_private],d=o[u.key_data],h=o[u.chain_code],m=o[u.use_info]?n.CryptoCoinInfo.fromDataItem(o[u.use_info]):void 0,x=o[u.origin]?t.CryptoKeypath.fromDataItem(o[u.origin]):void 0,y=o[u.children]?t.CryptoKeypath.fromDataItem(o[u.children]):void 0,g=o[u.parent_fingerprint];let v;g&&(v=Buffer.alloc(4),v.writeUInt32BE(g,0));const b=o[u.name],E=o[u.note];return new a({isMaster:c,isPrivateKey:l,key:d,chainCode:h,useInfo:m,origin:x,children:y,parentFingerprint:v,name:b,note:E})},a.fromCBOR=f=>{const o=(0,r.decodeToDataItem)(f);return a.fromDataItem(o)},Lt}var $t={},P3;function Zr(){if(P3)return $t;P3=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.CryptoECKey=void 0;const e=Ce(),n=je(),t=_e();var r;(function(s){s[s.curve=1]="curve",s[s.private=2]="private",s[s.data=3]="data"})(r||(r={}));class i extends n.RegistryItem{constructor(u){super(),this.isECKey=()=>!0,this.getCurve=()=>this.curve||0,this.isPrivateKey=()=>this.privateKey||!1,this.getData=()=>this.data,this.getRegistryType=()=>t.RegistryTypes.CRYPTO_ECKEY,this.toDataItem=()=>{const a={};return this.curve&&(a[r.curve]=this.curve),this.privateKey!==void 0&&(a[r.private]=this.privateKey),a[r.data]=this.data,new e.DataItem(a)},this.getOutputDescriptorContent=()=>this.data.toString("hex"),this.data=u.data,this.curve=u.curve,this.privateKey=u.privateKey||void 0}}return $t.CryptoECKey=i,i.fromDataItem=s=>{const u=s.getData(),a=u[r.curve],f=u[r.private],o=u[r.data];if(!o)throw new Error(`#[ur-registry][CryptoECKey][fn.fromDataItem]: decoded [dataItem][#data.data] is undefined: ${s}`);return new i({data:o,curve:a,privateKey:f})},i.fromCBOR=s=>{const u=(0,e.decodeToDataItem)(s);return i.fromDataItem(u)},$t}var Ht={},k3;function vl(){if(k3)return Ht;k3=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.Bytes=void 0;const e=Ce(),n=je(),t=_e();class r extends n.RegistryItem{constructor(s){super(),this.bytes=s,this.getRegistryType=()=>t.RegistryTypes.BYTES,this.getData=()=>this.bytes,this.toDataItem=()=>new e.DataItem(this.bytes)}}return Ht.Bytes=r,r.fromDataItem=i=>{const s=i.getData();if(!s)throw new Error(`#[ur-registry][Bytes][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${i}`);return new r(s)},r.fromCBOR=i=>{const s=(0,e.decodeToDataItem)(i);return r.fromDataItem(s)},Ht}var Kt={},zt={},T3;function Go(){if(T3)return zt;T3=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.MultiKey=void 0;const e=Zr(),n=br(),t=ha(),r=je(),i=_e();var s;(function(a){a[a.threshold=1]="threshold",a[a.keys=2]="keys"})(s||(s={}));class u extends r.RegistryItem{constructor(f,o){super(),this.threshold=f,this.keys=o,this.getThreshold=()=>this.threshold,this.getKeys=()=>this.keys,this.toDataItem=()=>{const c={};c[s.threshold]=this.threshold;const l=this.keys.map(d=>{const h=d.toDataItem();return h.setTag(d.getRegistryType().getTag()),h});return c[s.keys]=l,new t.DataItem(c)},this.getOutputDescriptorContent=()=>[this.getThreshold(),this.keys.map(c=>c.getOutputDescriptorContent()).join(",")].join(",")}}return zt.MultiKey=u,u.fromDataItem=a=>{const f=a.getData(),o=f[s.threshold],c=f[s.keys],l=[];return c.forEach(d=>{d.getTag()===i.RegistryTypes.CRYPTO_HDKEY.getTag()?l.push(n.CryptoHDKey.fromDataItem(d)):d.getTag()===i.RegistryTypes.CRYPTO_ECKEY.getTag()&&l.push(e.CryptoECKey.fromDataItem(d))}),new u(o,l)},zt}var R3;function I3(){if(R3)return Kt;R3=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.CryptoOutput=void 0;const e=Zr(),n=br(),t=Ce(),r=Go(),i=je(),s=_e(),u=pa();class a extends i.RegistryItem{constructor(o,c){super(),this.scriptExpressions=o,this.cryptoKey=c,this.getRegistryType=()=>s.RegistryTypes.CRYPTO_OUTPUT,this.getCryptoKey=()=>this.cryptoKey,this.getHDKey=()=>{if(this.cryptoKey instanceof n.CryptoHDKey)return this.cryptoKey},this.getECKey=()=>{if(this.cryptoKey instanceof e.CryptoECKey)return this.cryptoKey},this.getMultiKey=()=>{if(this.cryptoKey instanceof r.MultiKey)return this.cryptoKey},this.getScriptExpressions=()=>this.scriptExpressions,this._toOutputDescriptor=l=>l>=this.scriptExpressions.length?this.cryptoKey.getOutputDescriptorContent():`${this.scriptExpressions[l].getExpression()}(${this._toOutputDescriptor(l+1)})`,this.toString=()=>this._toOutputDescriptor(0),this.toDataItem=()=>{let l=this.cryptoKey.toDataItem();return(this.cryptoKey instanceof e.CryptoECKey||this.cryptoKey instanceof n.CryptoHDKey)&&l.setTag(this.cryptoKey.getRegistryType().getTag()),[...this.scriptExpressions].reverse().forEach(h=>{const m=h.getTag();l.getTag()===void 0?l.setTag(m):l=new t.DataItem(l,m)}),l}}}return Kt.CryptoOutput=a,a.fromDataItem=f=>{const o=[];let c=f;for(;;){let h=c.getTag();const m=u.ScriptExpression.fromTag(h);if(m)if(o.push(m),c.getData()instanceof t.DataItem)c=c.getData(),h=c.getTag();else break;else break}const l=o.length;if(l>0&&(o[l-1].getExpression()===u.ScriptExpressions.MULTISIG.getExpression()||o[l-1].getExpression()===u.ScriptExpressions.SORTED_MULTISIG.getExpression())){const h=r.MultiKey.fromDataItem(c);return new a(o,h)}if(c.getTag()===s.RegistryTypes.CRYPTO_HDKEY.getTag()){const h=n.CryptoHDKey.fromDataItem(c);return new a(o,h)}else{const h=e.CryptoECKey.fromDataItem(c);return new a(o,h)}},a.fromCBOR=f=>{const o=(0,t.decodeToDataItem)(f);return a.fromDataItem(o)},Kt}var Gt={},D3;function O3(){if(D3)return Gt;D3=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.CryptoPSBT=void 0;const e=Ce(),n=je(),t=_e();class r extends n.RegistryItem{constructor(s){super(),this.psbt=s,this.getRegistryType=()=>t.RegistryTypes.CRYPTO_PSBT,this.getPSBT=()=>this.psbt,this.toDataItem=()=>new e.DataItem(this.psbt)}}return Gt.CryptoPSBT=r,r.fromDataItem=i=>{const s=i.getData();if(!s)throw new Error(`#[ur-registry][CryptoPSBT][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${i}`);return new r(s)},r.fromCBOR=i=>{const s=(0,e.decodeToDataItem)(i);return r.fromDataItem(s)},Gt}var $i={},A3;function M3(){return A3||(A3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CryptoPSBTExtend=e.CoinIds=void 0;const n=Ce(),t=je(),r=_e();var i;(function(u){u[u.psbt=1]="psbt",u[u.coinId=2]="coinId"})(i||(i={})),function(u){u[u.Litecoin=2]="Litecoin",u[u.Dogecoin=3]="Dogecoin",u[u.Dash=4]="Dash",u[u.BitcoinCash=145]="BitcoinCash"}(e.CoinIds||(e.CoinIds={}));class s extends t.RegistryItem{constructor(a,f){super(),this.psbt=a,this.coinId=f,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_PSBT_EXTEND,this.getPSBT=()=>this.psbt,this.getCoinId=()=>this.coinId,this.toDataItem=()=>{const o={};return o[i.psbt]=this.psbt,o[i.coinId]=this.coinId,new n.DataItem(o)}}}e.CryptoPSBTExtend=s,s.fromDataItem=u=>{const a=u.getData(),f=a[i.psbt],o=a[i.coinId];if(!o)throw new Error(`#[ur-registry][CryptoPSBTExtend][fn.fromDataItem]: decoded [dataItem][#data][coinId] is undefined: ${u}`);if(!f)throw new Error(`#[ur-registry][CryptoPSBTExtend][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${u}`);return new s(f,o)},s.fromCBOR=u=>{const a=(0,n.decodeToDataItem)(u);return s.fromDataItem(a)}}($i)),$i}var Wt={},U3;function L3(){if(U3)return Wt;U3=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.CryptoAccount=void 0;const e=xa(),n=Ce(),t=je(),r=_e();var i;(function(u){u[u.masterFingerprint=1]="masterFingerprint",u[u.outputDescriptors=2]="outputDescriptors"})(i||(i={}));class s extends t.RegistryItem{constructor(a,f){super(),this.masterFingerprint=a,this.outputDescriptors=f,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_ACCOUNT,this.getMasterFingerprint=()=>this.masterFingerprint,this.getOutputDescriptors=()=>this.outputDescriptors,this.toDataItem=()=>{const o={};return this.masterFingerprint&&(o[i.masterFingerprint]=this.masterFingerprint.readUInt32BE(0)),this.outputDescriptors&&(o[i.outputDescriptors]=this.outputDescriptors.map(c=>c.toDataItem())),new n.DataItem(o)}}}return Wt.CryptoAccount=s,s.fromDataItem=u=>{const a=u.getData(),f=Buffer.alloc(4),o=a[i.masterFingerprint];o&&f.writeUInt32BE(o,0);const l=a[i.outputDescriptors].map(d=>e.CryptoOutput.fromDataItem(d));return new s(f,l)},s.fromCBOR=u=>{const a=(0,n.decodeToDataItem)(u);return s.fromDataItem(a)},Wt}var Vt={},Yt={},j3;function yu(){if(j3)return Yt;j3=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.UnknownURTypeError=void 0;class e extends Error{constructor(t){super(t)}}return Yt.UnknownURTypeError=e,Yt}var N3;function F3(){if(N3)return Vt;N3=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.URRegistryDecoder=void 0;const e=Er(),n=xa(),t=_e(),r=yu();class i extends e.URDecoder{constructor(){super(...arguments),this.resultRegistryType=()=>{const u=this.resultUR();switch(u.type){case t.RegistryTypes.BYTES.getType():return n.Bytes.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_HDKEY.getType():return n.CryptoHDKey.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_KEYPATH.getType():return n.CryptoKeypath.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_COIN_INFO.getType():return n.CryptoCoinInfo.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_ECKEY.getType():return n.CryptoECKey.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_OUTPUT.getType():return n.CryptoOutput.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_PSBT.getType():return n.CryptoPSBT.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_PSBT_EXTEND.getType():return n.CryptoPSBTExtend.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_ACCOUNT.getType():return n.CryptoAccount.fromCBOR(u.cbor);default:throw new r.UnknownURTypeError(`#[ur-registry][Decoder][fn.resultRegistryType]: registry type ${u.type} is not supported now`)}}}}return Vt.URRegistryDecoder=i,Vt}var Xt={},q3;function $3(){if(q3)return Xt;q3=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.CryptoMultiAccounts=void 0;const e=_e(),n=br(),t=je(),r=Ce();var i;(function(u){u[u.masterFingerprint=1]="masterFingerprint",u[u.keys=2]="keys",u[u.device=3]="device",u[u.deviceId=4]="deviceId",u[u.version=5]="version"})(i||(i={}));class s extends t.RegistryItem{constructor(a,f,o,c,l){super(),this.masterFingerprint=a,this.keys=f,this.device=o,this.deviceId=c,this.version=l,this.getRegistryType=()=>e.RegistryTypes.CRYPTO_MULTI_ACCOUNTS,this.getMasterFingerprint=()=>this.masterFingerprint,this.getKeys=()=>this.keys,this.getDevice=()=>this.device,this.getDeviceId=()=>this.deviceId,this.getVersion=()=>this.version,this.toDataItem=()=>{const d={};return this.masterFingerprint&&(d[i.masterFingerprint]=this.masterFingerprint.readUInt32BE(0)),this.keys&&(d[i.keys]=this.keys.map(h=>{const m=h.toDataItem();return m.setTag(h.getRegistryType().getTag()),m})),this.device&&(d[i.device]=this.device),this.deviceId&&(d[i.deviceId]=this.deviceId),this.version&&(d[i.version]=this.version),new r.DataItem(d)}}}return Xt.CryptoMultiAccounts=s,s.fromDataItem=u=>{const a=u.getData(),f=Buffer.alloc(4),o=a[i.masterFingerprint];o&&f.writeUInt32BE(o,0);const l=a[i.keys].map(x=>n.CryptoHDKey.fromDataItem(x)),d=a[i.device],h=a[i.deviceId],m=a[i.version];return new s(f,l,d,h,m)},s.fromCBOR=u=>{const a=(0,r.decodeToDataItem)(u);return s.fromDataItem(a)},Xt}var Hi={},Qt={},Ki={},H3;function mu(){return H3||(H3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDerivationSchema=e.DerivationAlgorithm=e.Curve=void 0;const n=_e(),t=je(),r=Ce(),i=Jr();var s;(function(o){o[o.keyPath=1]="keyPath",o[o.curve=2]="curve",o[o.algo=3]="algo",o[o.chainType=4]="chainType"})(s||(s={}));var u;(function(o){o[o.secp256k1=0]="secp256k1",o[o.ed25519=1]="ed25519"})(u=e.Curve||(e.Curve={}));var a;(function(o){o[o.slip10=0]="slip10",o[o.bip32ed25519=1]="bip32ed25519"})(a=e.DerivationAlgorithm||(e.DerivationAlgorithm={}));class f extends t.RegistryItem{constructor(c,l=u.secp256k1,d=a.slip10,h){super(),this.keypath=c,this.curve=l,this.algo=d,this.chainType=h,this.getRegistryType=()=>n.RegistryTypes.KEY_DERIVATION_SCHEMA,this.getKeypath=()=>this.keypath,this.getCurve=()=>this.curve,this.getAlgo=()=>this.algo,this.getChainType=()=>this.chainType,this.toDataItem=()=>{const m={},x=this.getKeypath().toDataItem();return x.setTag(this.getKeypath().getRegistryType().getTag()),m[s.keyPath]=x,m[s.curve]=this.curve,m[s.algo]=this.algo,this.chainType&&(m[s.chainType]=this.chainType),new r.DataItem(m)}}}e.KeyDerivationSchema=f,f.fromDataItem=o=>{const c=o.getData(),l=i.CryptoKeypath.fromDataItem(c[s.keyPath]),d=c[s.curve],h=c[s.algo],m=c[s.chainType];return new f(l,d,h,m)},f.fromCBOR=o=>{const c=(0,r.decodeToDataItem)(o);return f.fromDataItem(c)}}(Ki)),Ki}var K3;function vu(){if(K3)return Qt;K3=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.KeyDerivation=void 0;const e=_e(),n=je(),t=Ce(),r=mu();var i;(function(u){u[u.schemas=1]="schemas"})(i||(i={}));let s=class extends n.RegistryItem{constructor(a){super(),this.schemas=a,this.getRegistryType=()=>e.RegistryTypes.KEY_DERIVATION_CALL,this.getSchemas=()=>this.schemas,this.toDataItem=()=>{const f={};return f[i.schemas]=this.schemas.map(o=>{const c=o.toDataItem();return c.setTag(o.getRegistryType().getTag()),c}),new t.DataItem(f)}}};return Qt.KeyDerivation=s,s.fromDataItem=u=>{const f=u.getData()[i.schemas].map(o=>r.KeyDerivationSchema.fromDataItem(o));return new s(f)},s.fromCBOR=u=>{const a=(0,t.decodeToDataItem)(u);return s.fromDataItem(a)},Qt}var z3;function xl(){return z3||(z3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QRHardwareCall=e.QRHardwareCallVersion=e.QRHardwareCallType=void 0;const n=_e(),t=je(),r=Ce(),i=vu();var s;(function(f){f[f.type=1]="type",f[f.params=2]="params",f[f.origin=3]="origin",f[f.version=4]="version"})(s||(s={}));var u;(function(f){f[f.KeyDerivation=0]="KeyDerivation"})(u=e.QRHardwareCallType||(e.QRHardwareCallType={})),function(f){f[f.V0=0]="V0",f[f.V1=1]="V1"}(e.QRHardwareCallVersion||(e.QRHardwareCallVersion={}));class a extends t.RegistryItem{constructor(o,c,l,d){super(),this.type=o,this.params=c,this.origin=l,this.version=d,this.getRegistryType=()=>n.RegistryTypes.QR_HARDWARE_CALL,this.getType=()=>this.type,this.getParams=()=>this.params,this.getOrigin=()=>this.origin,this.getVersion=()=>this.version,this.toDataItem=()=>{const h={};h[s.type]=this.type;const m=this.params.toDataItem();return m.setTag(this.params.getRegistryType().getTag()),h[s.params]=m,this.origin&&(h[s.origin]=this.origin),this.version&&(h[s.version]=this.version),new r.DataItem(h)}}}e.QRHardwareCall=a,a.fromDataItem=f=>{const o=f.getData(),c=o[s.type]||u.KeyDerivation;let l;switch(c){case u.KeyDerivation:l=i.KeyDerivation.fromDataItem(o[s.params])}const d=o[s.origin],h=o[s.version];return new a(c,l,d,h)},a.fromCBOR=f=>{const o=(0,r.decodeToDataItem)(f);return a.fromDataItem(o)}}(Hi)),Hi}var zi={},G3;function bl(){return G3||(G3=1,Object.defineProperty(zi,"__esModule",{value:!0})),zi}var W3;function xa(){return W3||(W3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Buffer=e.extend=e.PathComponent=e.ScriptExpressions=e.MultiKey=e.CryptoPSBTExtend=e.CryptoPSBT=e.CryptoOutput=e.CryptoECKey=e.CryptoCoinInfoNetwork=e.CryptoCoinInfoType=e.CryptoCoinInfo=e.CryptoKeypath=e.CryptoMultiAccounts=e.CryptoHDKey=e.CryptoAccount=e.Bytes=e.URRegistryDecoder=e.DataItem=void 0;const n=Tc;ja();const t=wt();Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});const r=br();Object.defineProperty(e,"CryptoHDKey",{enumerable:!0,get:function(){return r.CryptoHDKey}});const i=Jr();Object.defineProperty(e,"CryptoKeypath",{enumerable:!0,get:function(){return i.CryptoKeypath}});const s=Ko();Object.defineProperty(e,"CryptoCoinInfo",{enumerable:!0,get:function(){return s.CryptoCoinInfo}}),Object.defineProperty(e,"CryptoCoinInfoType",{enumerable:!0,get:function(){return s.Type}}),Object.defineProperty(e,"CryptoCoinInfoNetwork",{enumerable:!0,get:function(){return s.Network}});const u=Zr();Object.defineProperty(e,"CryptoECKey",{enumerable:!0,get:function(){return u.CryptoECKey}});const a=vl();Object.defineProperty(e,"Bytes",{enumerable:!0,get:function(){return a.Bytes}});const f=I3();Object.defineProperty(e,"CryptoOutput",{enumerable:!0,get:function(){return f.CryptoOutput}});const o=O3();Object.defineProperty(e,"CryptoPSBT",{enumerable:!0,get:function(){return o.CryptoPSBT}});const c=M3();Object.defineProperty(e,"CryptoPSBTExtend",{enumerable:!0,get:function(){return c.CryptoPSBTExtend}});const l=L3();Object.defineProperty(e,"CryptoAccount",{enumerable:!0,get:function(){return l.CryptoAccount}});const d=F3();Object.defineProperty(e,"URRegistryDecoder",{enumerable:!0,get:function(){return d.URRegistryDecoder}});const h=Go();Object.defineProperty(e,"MultiKey",{enumerable:!0,get:function(){return h.MultiKey}});const m=pa();Object.defineProperty(e,"ScriptExpressions",{enumerable:!0,get:function(){return m.ScriptExpressions}});const x=zo();Object.defineProperty(e,"PathComponent",{enumerable:!0,get:function(){return x.PathComponent}});const y=je(),g=_e(),v=Ce();var b=Ce();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return b.DataItem}});const E=Ao(),D=$3();Object.defineProperty(e,"CryptoMultiAccounts",{enumerable:!0,get:function(){return D.CryptoMultiAccounts}});const w={URRegistryDecoder:d.URRegistryDecoder,Bytes:a.Bytes,CryptoAccount:l.CryptoAccount,CryptoHDKey:r.CryptoHDKey,CryptoMultiAccounts:D.CryptoMultiAccounts,CryptoKeypath:i.CryptoKeypath,CryptoCoinInfo:s.CryptoCoinInfo,CryptoCoinInfoType:s.Type,CryptoCoinInfoNetwork:s.Network,CryptoECKey:u.CryptoECKey,CryptoOutput:f.CryptoOutput,CryptoPSBT:o.CryptoPSBT,CryptoPSBTExtend:c.CryptoPSBTExtend,MultiKey:h.MultiKey,ScriptExpressions:m.ScriptExpressions,PathComponent:x.PathComponent},p={addReader:v.addReader,addSemanticDecode:v.addSemanticDecode,addSemanticEncode:v.addSemanticEncode,addWriter:v.addWriter,patchTags:E.patchTags},C={RegistryTypes:g.RegistryTypes,RegistryItem:y.RegistryItem,RegistryType:g.RegistryType,decodeToDataItem:v.decodeToDataItem,encodeDataItem:v.encodeDataItem,cbor:p};e.extend=C,n.__exportStar(yu(),e),n.__exportStar(F3(),e),n.__exportStar(Ce(),e),n.__exportStar(L3(),e),n.__exportStar(O3(),e),n.__exportStar(M3(),e),n.__exportStar(br(),e),n.__exportStar($3(),e),n.__exportStar(xl(),e),n.__exportStar(vu(),e),n.__exportStar(mu(),e),n.__exportStar(I3(),e),n.__exportStar(Ko(),e),n.__exportStar(Zr(),e),n.__exportStar(Go(),e),n.__exportStar(Jr(),e),n.__exportStar(ja(),e),n.__exportStar(zo(),e),n.__exportStar(je(),e),n.__exportStar(_e(),e),n.__exportStar(bl(),e),n.__exportStar(Ao(),e),e.default=w}(Cn)),Cn}var Lr,Cl=new Uint8Array(16);function xu(){if(!Lr&&(Lr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Lr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lr(Cl)}const _l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ln(e){return typeof e=="string"&&_l.test(e)}var we=[];for(var Gi=0;Gi<256;++Gi)we.push((Gi+256).toString(16).substr(1));function dn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(we[e[n+0]]+we[e[n+1]]+we[e[n+2]]+we[e[n+3]]+"-"+we[e[n+4]]+we[e[n+5]]+"-"+we[e[n+6]]+we[e[n+7]]+"-"+we[e[n+8]]+we[e[n+9]]+"-"+we[e[n+10]]+we[e[n+11]]+we[e[n+12]]+we[e[n+13]]+we[e[n+14]]+we[e[n+15]]).toLowerCase();if(!ln(t))throw TypeError("Stringified UUID is invalid");return t}var V3,Wi,Vi=0,Yi=0;function Bl(e,n,t){var r=n&&t||0,i=n||new Array(16);e=e||{};var s=e.node||V3,u=e.clockseq!==void 0?e.clockseq:Wi;if(s==null||u==null){var a=e.random||(e.rng||xu)();s==null&&(s=V3=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),u==null&&(u=Wi=(a[6]<<8|a[7])&16383)}var f=e.msecs!==void 0?e.msecs:Date.now(),o=e.nsecs!==void 0?e.nsecs:Yi+1,c=f-Vi+(o-Yi)/1e4;if(c<0&&e.clockseq===void 0&&(u=u+1&16383),(c<0||f>Vi)&&e.nsecs===void 0&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Vi=f,Yi=o,Wi=u,f+=122192928e5;var l=((f&268435455)*1e4+o)%4294967296;i[r++]=l>>>24&255,i[r++]=l>>>16&255,i[r++]=l>>>8&255,i[r++]=l&255;var d=f/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=d&255,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=u>>>8|128,i[r++]=u&255;for(var h=0;h<6;++h)i[r+h]=s[h];return n||dn(i)}function bu(e){if(!ln(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function wl(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var Sl="6ba7b810-9dad-11d1-80b4-00c04fd430c8",El="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Cu(e,n,t){function r(i,s,u,a){if(typeof i=="string"&&(i=wl(i)),typeof s=="string"&&(s=bu(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+i.length);if(f.set(s),f.set(i,s.length),f=t(f),f[6]=f[6]&15|n,f[8]=f[8]&63|128,u){a=a||0;for(var o=0;o<16;++o)u[a+o]=f[o];return u}return dn(f)}try{r.name=e}catch{}return r.DNS=Sl,r.URL=El,r}function Pl(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return kl(Tl(Rl(e),e.length*8))}function kl(e){for(var n=[],t=e.length*32,r="0123456789abcdef",i=0;i<t;i+=8){var s=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(s>>>4&15)+r.charAt(s&15),16);n.push(u)}return n}function _u(e){return(e+64>>>9<<4)+14+1}function Tl(e,n){e[n>>5]|=128<<n%32,e[_u(n)-1]=n;for(var t=1732584193,r=-271733879,i=-1732584194,s=271733878,u=0;u<e.length;u+=16){var a=t,f=r,o=i,c=s;t=ke(t,r,i,s,e[u],7,-680876936),s=ke(s,t,r,i,e[u+1],12,-389564586),i=ke(i,s,t,r,e[u+2],17,606105819),r=ke(r,i,s,t,e[u+3],22,-1044525330),t=ke(t,r,i,s,e[u+4],7,-176418897),s=ke(s,t,r,i,e[u+5],12,1200080426),i=ke(i,s,t,r,e[u+6],17,-1473231341),r=ke(r,i,s,t,e[u+7],22,-45705983),t=ke(t,r,i,s,e[u+8],7,1770035416),s=ke(s,t,r,i,e[u+9],12,-1958414417),i=ke(i,s,t,r,e[u+10],17,-42063),r=ke(r,i,s,t,e[u+11],22,-1990404162),t=ke(t,r,i,s,e[u+12],7,1804603682),s=ke(s,t,r,i,e[u+13],12,-40341101),i=ke(i,s,t,r,e[u+14],17,-1502002290),r=ke(r,i,s,t,e[u+15],22,1236535329),t=Te(t,r,i,s,e[u+1],5,-165796510),s=Te(s,t,r,i,e[u+6],9,-1069501632),i=Te(i,s,t,r,e[u+11],14,643717713),r=Te(r,i,s,t,e[u],20,-373897302),t=Te(t,r,i,s,e[u+5],5,-701558691),s=Te(s,t,r,i,e[u+10],9,38016083),i=Te(i,s,t,r,e[u+15],14,-660478335),r=Te(r,i,s,t,e[u+4],20,-405537848),t=Te(t,r,i,s,e[u+9],5,568446438),s=Te(s,t,r,i,e[u+14],9,-1019803690),i=Te(i,s,t,r,e[u+3],14,-187363961),r=Te(r,i,s,t,e[u+8],20,1163531501),t=Te(t,r,i,s,e[u+13],5,-1444681467),s=Te(s,t,r,i,e[u+2],9,-51403784),i=Te(i,s,t,r,e[u+7],14,1735328473),r=Te(r,i,s,t,e[u+12],20,-1926607734),t=Re(t,r,i,s,e[u+5],4,-378558),s=Re(s,t,r,i,e[u+8],11,-2022574463),i=Re(i,s,t,r,e[u+11],16,1839030562),r=Re(r,i,s,t,e[u+14],23,-35309556),t=Re(t,r,i,s,e[u+1],4,-1530992060),s=Re(s,t,r,i,e[u+4],11,1272893353),i=Re(i,s,t,r,e[u+7],16,-155497632),r=Re(r,i,s,t,e[u+10],23,-1094730640),t=Re(t,r,i,s,e[u+13],4,681279174),s=Re(s,t,r,i,e[u],11,-358537222),i=Re(i,s,t,r,e[u+3],16,-722521979),r=Re(r,i,s,t,e[u+6],23,76029189),t=Re(t,r,i,s,e[u+9],4,-640364487),s=Re(s,t,r,i,e[u+12],11,-421815835),i=Re(i,s,t,r,e[u+15],16,530742520),r=Re(r,i,s,t,e[u+2],23,-995338651),t=Ie(t,r,i,s,e[u],6,-198630844),s=Ie(s,t,r,i,e[u+7],10,1126891415),i=Ie(i,s,t,r,e[u+14],15,-1416354905),r=Ie(r,i,s,t,e[u+5],21,-57434055),t=Ie(t,r,i,s,e[u+12],6,1700485571),s=Ie(s,t,r,i,e[u+3],10,-1894986606),i=Ie(i,s,t,r,e[u+10],15,-1051523),r=Ie(r,i,s,t,e[u+1],21,-2054922799),t=Ie(t,r,i,s,e[u+8],6,1873313359),s=Ie(s,t,r,i,e[u+15],10,-30611744),i=Ie(i,s,t,r,e[u+6],15,-1560198380),r=Ie(r,i,s,t,e[u+13],21,1309151649),t=Ie(t,r,i,s,e[u+4],6,-145523070),s=Ie(s,t,r,i,e[u+11],10,-1120210379),i=Ie(i,s,t,r,e[u+2],15,718787259),r=Ie(r,i,s,t,e[u+9],21,-343485551),t=rt(t,a),r=rt(r,f),i=rt(i,o),s=rt(s,c)}return[t,r,i,s]}function Rl(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(_u(n)),r=0;r<n;r+=8)t[r>>5]|=(e[r/8]&255)<<r%32;return t}function rt(e,n){var t=(e&65535)+(n&65535),r=(e>>16)+(n>>16)+(t>>16);return r<<16|t&65535}function Il(e,n){return e<<n|e>>>32-n}function hn(e,n,t,r,i,s){return rt(Il(rt(rt(n,e),rt(r,s)),i),t)}function ke(e,n,t,r,i,s,u){return hn(n&t|~n&r,e,n,i,s,u)}function Te(e,n,t,r,i,s,u){return hn(n&r|t&~r,e,n,i,s,u)}function Re(e,n,t,r,i,s,u){return hn(n^t^r,e,n,i,s,u)}function Ie(e,n,t,r,i,s,u){return hn(t^(n|~r),e,n,i,s,u)}var Dl=Cu("v3",48,Pl);function Ol(e,n,t){e=e||{};var r=e.random||(e.rng||xu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return dn(r)}function Al(e,n,t,r){switch(e){case 0:return n&t^~n&r;case 1:return n^t^r;case 2:return n&t^n&r^t&r;case 3:return n^t^r}}function Xi(e,n){return e<<n|e>>>32-n}function Ml(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),a=new Array(u),f=0;f<u;++f){for(var o=new Uint32Array(16),c=0;c<16;++c)o[c]=e[f*64+c*4]<<24|e[f*64+c*4+1]<<16|e[f*64+c*4+2]<<8|e[f*64+c*4+3];a[f]=o}a[u-1][14]=(e.length-1)*8/Math.pow(2,32),a[u-1][14]=Math.floor(a[u-1][14]),a[u-1][15]=(e.length-1)*8&4294967295;for(var l=0;l<u;++l){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[l][h];for(var m=16;m<80;++m)d[m]=Xi(d[m-3]^d[m-8]^d[m-14]^d[m-16],1);for(var x=t[0],y=t[1],g=t[2],v=t[3],b=t[4],E=0;E<80;++E){var D=Math.floor(E/20),w=Xi(x,5)+Al(D,y,g,v)+b+n[D]+d[E]>>>0;b=v,v=g,g=Xi(y,30)>>>0,y=x,x=w}t[0]=t[0]+x>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+g>>>0,t[3]=t[3]+v>>>0,t[4]=t[4]+b>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Ul=Cu("v5",80,Ml);const Ll="00000000-0000-0000-0000-000000000000";function jl(e){if(!ln(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Nl=Object.freeze(Object.defineProperty({__proto__:null,NIL:Ll,parse:bu,stringify:dn,v1:Bl,v3:Dl,v4:Ol,v5:Ul,validate:ln,version:jl},Symbol.toStringTag,{value:"Module"})),Fl=St(Nl);var Y3;function ql(){return Y3||(Y3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=xa(),t=Fl;const r={SOL_SIGN_REQUEST:new n.RegistryType("sol-sign-request",1101),SOL_SIGNATURE:new n.RegistryType("sol-signature",1102),SOL_NFT_ITEM:new n.RegistryType("sol-nft-item",1104)},{decodeToDataItem:i,RegistryTypes:s}=n.extend;var u,a;(u=e.SignType||(e.SignType={}))[u.Transaction=1]="Transaction",u[u.Message=2]="Message",function(y){y[y.requestId=1]="requestId",y[y.signData=2]="signData",y[y.derivationPath=3]="derivationPath",y[y.address=4]="address",y[y.origin=5]="origin",y[y.signType=6]="signType"}(a||(a={}));class f extends n.RegistryItem{constructor(g){super(),this.getRegistryType=()=>r.SOL_SIGN_REQUEST,this.getRequestId=()=>this.requestId,this.getSignData=()=>this.signData,this.getDerivationPath=()=>this.derivationPath.getPath(),this.getSignRequestAddress=()=>this.address,this.getOrigin=()=>this.origin,this.getSignType=()=>this.signType,this.toDataItem=()=>{const v={};this.requestId&&(v[a.requestId]=new n.DataItem(this.requestId,s.UUID.getTag())),this.address&&(v[a.address]=this.address),this.origin&&(v[a.origin]=this.origin),v[a.signData]=this.signData,v[a.signType]=this.signType;const b=this.derivationPath.toDataItem();return b.setTag(this.derivationPath.getRegistryType().getTag()),v[a.derivationPath]=b,new n.DataItem(v)},this.requestId=g.requestId,this.signData=g.signData,this.derivationPath=g.derivationPath,this.address=g.address,this.origin=g.origin,this.signType=g.signType}static constructSOLRequest(g,v,b,E,D,w,p){const C=v.replace(/[m|M]\//,"").split("/"),S=new n.CryptoKeypath(C.map(A=>{const j=parseInt(A.replace("'",""));let V=!1;return A.endsWith("'")&&(V=!0),new n.PathComponent({index:j,hardened:V})}),Buffer.from(b,"hex"));return new f({requestId:D?Buffer.from(t.parse(D)):void 0,signData:g,derivationPath:S,address:w?Buffer.from(w.replace("0x",""),"hex"):void 0,origin:p||void 0,signType:E})}}f.fromDataItem=y=>{const g=y.getData(),v=g[a.signData],b=n.CryptoKeypath.fromDataItem(g[a.derivationPath]),E=g[a.address]?g[a.address]:void 0,D=g[a.requestId]?g[a.requestId].getData():void 0;return new f({requestId:D,signData:v,derivationPath:b,address:E,origin:g[a.origin]?g[a.origin]:void 0,signType:g[a.signType]})},f.fromCBOR=y=>{const g=i(y);return f.fromDataItem(g)};const{RegistryTypes:o,decodeToDataItem:c}=n.extend;var l;(function(y){y[y.requestId=1]="requestId",y[y.signature=2]="signature"})(l||(l={}));class d extends n.RegistryItem{constructor(g,v){super(),this.getRegistryType=()=>r.SOL_SIGNATURE,this.getRequestId=()=>this.requestId,this.getSignature=()=>this.signature,this.toDataItem=()=>{const b={};return this.requestId&&(b[l.requestId]=new n.DataItem(this.requestId,o.UUID.getTag())),b[l.signature]=this.signature,new n.DataItem(b)},this.signature=g,this.requestId=v}}d.fromDataItem=y=>{const g=y.getData(),v=g[l.signature],b=g[l.requestId]?g[l.requestId].getData():void 0;return new d(v,b)},d.fromCBOR=y=>{const g=c(y);return d.fromDataItem(g)};const{decodeToDataItem:h}=n.extend;var m;(function(y){y[y.mintAddress=1]="mintAddress",y[y.collectionName=2]="collectionName",y[y.name=3]="name",y[y.mediaData=4]="mediaData"})(m||(m={}));class x extends n.RegistryItem{constructor(g){super(),this.getRegistryType=()=>r.SOL_NFT_ITEM,this.getName=()=>this.name,this.getMediaData=()=>this.mediaData,this.getMintAddress=()=>this.mintAddress,this.getCollectionName=()=>this.collectionName,this.toDataItem=()=>{const v={};return v[m.name]=this.name,v[m.mintAddress]=this.mintAddress,v[m.collectionName]=this.collectionName,v[m.mediaData]=this.mediaData,new n.DataItem(v)},this.name=g.name,this.mintAddress=g.mintAddress,this.collectionName=g.collectionName,this.mediaData=g.mediaData}static constructETHNFTItem(g,v,b,E){return new x({mintAddress:g,collectionName:v,mediaData:E,name:b})}}x.fromDataItem=y=>{const g=y.getData();return new x({name:g[m.name],mintAddress:g[m.mintAddress],collectionName:g[m.collectionName],mediaData:g[m.mediaData]})},x.fromCBOR=y=>{const g=h(y);return x.fromDataItem(g)},n.patchTags(Object.values(r).filter(y=>!!y.getTag()).map(y=>y.getTag())),Object.keys(n).forEach(function(y){y!=="default"&&Object.defineProperty(e,y,{enumerable:!0,get:function(){return n[y]}})}),e.SOLNFTItem=x,e.SolSignRequest=f,e.SolSignature=d}(bn)),bn}var X3;function $l(){return X3||(X3=1,xn.exports=ql()),xn.exports}var Qi={exports:{}},Ji={},Zi={exports:{}},De={};/**
|
|
77
|
+
* @license React
|
|
78
|
+
* react-dom.production.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/var Q3;function Hl(){if(Q3)return De;Q3=1;var e=Et();function n(f){var o="https://react.dev/errors/"+f;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+f+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var r={d:{f:t,r:function(){throw Error(n(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,o,c){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:l==null?null:""+l,children:f,containerInfo:o,implementation:c}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(f,o){if(f==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return De.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,De.createPortal=function(f,o){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(n(299));return s(f,o,null,c)},De.flushSync=function(f){var o=u.T,c=r.p;try{if(u.T=null,r.p=2,f)return f()}finally{u.T=o,r.p=c,r.d.f()}},De.preconnect=function(f,o){typeof f=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,r.d.C(f,o))},De.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},De.preinit=function(f,o){if(typeof f=="string"&&o&&typeof o.as=="string"){var c=o.as,l=a(c,o.crossOrigin),d=typeof o.integrity=="string"?o.integrity:void 0,h=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;c==="style"?r.d.S(f,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:l,integrity:d,fetchPriority:h}):c==="script"&&r.d.X(f,{crossOrigin:l,integrity:d,fetchPriority:h,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},De.preinitModule=function(f,o){if(typeof f=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var c=a(o.as,o.crossOrigin);r.d.M(f,{crossOrigin:c,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&r.d.M(f)},De.preload=function(f,o){if(typeof f=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var c=o.as,l=a(c,o.crossOrigin);r.d.L(f,c,{crossOrigin:l,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},De.preloadModule=function(f,o){if(typeof f=="string")if(o){var c=a(o.as,o.crossOrigin);r.d.m(f,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:c,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else r.d.m(f)},De.requestFormReset=function(f){r.d.r(f)},De.unstable_batchedUpdates=function(f,o){return f(o)},De.useFormState=function(f,o,c){return u.H.useFormState(f,o,c)},De.useFormStatus=function(){return u.H.useHostTransitionStatus()},De.version="19.2.3",De}var J3;function Bu(){if(J3)return Zi.exports;J3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Zi.exports=Hl(),Zi.exports}var jr={exports:{}},et={},eo={exports:{}},to,Z3;function Kl(){if(Z3)return to;Z3=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return to=e,to}var ro,e0;function zl(){if(e0)return ro;e0=1;var e=Kl();function n(){}function t(){}return t.resetWarningCache=n,ro=function(){function r(u,a,f,o,c,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:t,resetWarningCache:n};return s.PropTypes=s,s},ro}var t0;function ba(){return t0||(t0=1,eo.exports=zl()()),eo.exports}var Nr={exports:{}},He={},Fr={exports:{}},r0;function wu(){return r0||(r0=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;/*!
|
|
85
|
+
* Adapted from jQuery UI core
|
|
86
|
+
*
|
|
87
|
+
* http://jqueryui.com
|
|
88
|
+
*
|
|
89
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
90
|
+
* Released under the MIT license.
|
|
91
|
+
* http://jquery.org/license
|
|
92
|
+
*
|
|
93
|
+
* http://api.jqueryui.com/category/ui-core/
|
|
94
|
+
*/var t="none",r="contents",i=/^(input|select|textarea|button|object|iframe)$/;function s(l,d){return d.getPropertyValue("overflow")!=="visible"||l.scrollWidth<=0&&l.scrollHeight<=0}function u(l){var d=l.offsetWidth<=0&&l.offsetHeight<=0;if(d&&!l.innerHTML)return!0;try{var h=window.getComputedStyle(l),m=h.getPropertyValue("display");return d?m!==r&&s(l,h):m===t}catch{return console.warn("Failed to inspect element style"),!1}}function a(l){for(var d=l,h=l.getRootNode&&l.getRootNode();d&&d!==document.body;){if(h&&d===h&&(d=h.host.parentNode),u(d))return!1;d=d.parentNode}return!0}function f(l,d){var h=l.nodeName.toLowerCase(),m=i.test(h)&&!l.disabled||h==="a"&&l.href||d;return m&&a(l)}function o(l){var d=l.getAttribute("tabindex");d===null&&(d=void 0);var h=isNaN(d);return(h||d>=0)&&f(l,!h)}function c(l){var d=[].slice.call(l.querySelectorAll("*"),0).reduce(function(h,m){return h.concat(m.shadowRoot?c(m.shadowRoot):[m])},[]);return d.filter(o)}e.exports=n.default}(Fr,Fr.exports)),Fr.exports}var n0;function Gl(){if(n0)return He;n0=1,Object.defineProperty(He,"__esModule",{value:!0}),He.resetState=u,He.log=a,He.handleBlur=f,He.handleFocus=o,He.markForFocusLater=c,He.returnFocus=l,He.popWithoutFocus=d,He.setupScopedFocus=h,He.teardownScopedFocus=m;var e=wu(),n=t(e);function t(x){return x&&x.__esModule?x:{default:x}}var r=[],i=null,s=!1;function u(){r=[]}function a(){}function f(){s=!0}function o(){if(s){if(s=!1,!i)return;setTimeout(function(){if(!i.contains(document.activeElement)){var x=(0,n.default)(i)[0]||i;x.focus()}},0)}}function c(){r.push(document.activeElement)}function l(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,y=null;try{r.length!==0&&(y=r.pop(),y.focus({preventScroll:x}));return}catch{console.warn(["You tried to return focus to",y,"but it is not in the DOM anymore"].join(" "))}}function d(){r.length>0&&r.pop()}function h(x){i=x,window.addEventListener?(window.addEventListener("blur",f,!1),document.addEventListener("focus",o,!0)):(window.attachEvent("onBlur",f),document.attachEvent("onFocus",o))}function m(){i=null,window.addEventListener?(window.removeEventListener("blur",f),document.removeEventListener("focus",o)):(window.detachEvent("onBlur",f),document.detachEvent("onFocus",o))}return He}var qr={exports:{}},i0;function Wl(){return i0||(i0=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var t=wu(),r=i(t);function i(a){return a&&a.__esModule?a:{default:a}}function s(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return a.activeElement.shadowRoot?s(a.activeElement.shadowRoot):a.activeElement}function u(a,f){var o=(0,r.default)(a);if(!o.length){f.preventDefault();return}var c=void 0,l=f.shiftKey,d=o[0],h=o[o.length-1],m=s();if(a===m){if(!l)return;c=h}if(h===m&&!l&&(c=d),d===m&&l&&(c=h),c){f.preventDefault(),c.focus();return}var x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),y=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(y){var g=o.indexOf(m);if(g>-1&&(g+=l?-1:1),c=o[g],typeof c>"u"){f.preventDefault(),c=l?h:d,c.focus();return}f.preventDefault(),c.focus()}}e.exports=n.default}(qr,qr.exports)),qr.exports}var Ve={},no,o0;function Vl(){if(o0)return no;o0=1;var e=function(){};return no=e,no}var Qe={},io={exports:{}};/*!
|
|
95
|
+
Copyright (c) 2015 Jed Watson.
|
|
96
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
97
|
+
All rights reserved.
|
|
98
|
+
*/var a0;function Yl(){return a0||(a0=1,function(e){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),t={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};e.exports?e.exports=t:window.ExecutionEnvironment=t})()}(io)),io.exports}var s0;function Ca(){if(s0)return Qe;s0=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.canUseDOM=Qe.SafeNodeList=Qe.SafeHTMLCollection=void 0;var e=Yl(),n=t(e);function t(s){return s&&s.__esModule?s:{default:s}}var r=n.default,i=r.canUseDOM?window.HTMLElement:{};return Qe.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},Qe.SafeNodeList=r.canUseDOM?window.NodeList:{},Qe.canUseDOM=r.canUseDOM,Qe.default=i,Qe}var c0;function Su(){if(c0)return Ve;c0=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.resetState=s,Ve.log=u,Ve.assertNodeList=a,Ve.setElement=f,Ve.validateElement=o,Ve.hide=c,Ve.show=l,Ve.documentNotReadyOrSSRTesting=d;var e=Vl(),n=r(e),t=Ca();function r(h){return h&&h.__esModule?h:{default:h}}var i=null;function s(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):i.length!=null?i.forEach(function(h){return h.removeAttribute("aria-hidden")}):document.querySelectorAll(i).forEach(function(h){return h.removeAttribute("aria-hidden")})),i=null}function u(){}function a(h,m){if(!h||!h.length)throw new Error("react-modal: No elements were found for selector "+m+".")}function f(h){var m=h;if(typeof m=="string"&&t.canUseDOM){var x=document.querySelectorAll(m);a(x,m),m=x}return i=m||i,i}function o(h){var m=h||i;return m?Array.isArray(m)||m instanceof HTMLCollection||m instanceof NodeList?m:[m]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function c(h){var m=!0,x=!1,y=void 0;try{for(var g=o(h)[Symbol.iterator](),v;!(m=(v=g.next()).done);m=!0){var b=v.value;b.setAttribute("aria-hidden","true")}}catch(E){x=!0,y=E}finally{try{!m&&g.return&&g.return()}finally{if(x)throw y}}}function l(h){var m=!0,x=!1,y=void 0;try{for(var g=o(h)[Symbol.iterator](),v;!(m=(v=g.next()).done);m=!0){var b=v.value;b.removeAttribute("aria-hidden")}}catch(E){x=!0,y=E}finally{try{!m&&g.return&&g.return()}finally{if(x)throw y}}}function d(){i=null}return Ve}var ft={},u0;function Xl(){if(u0)return ft;u0=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.resetState=r,ft.log=i;var e={},n={};function t(o,c){o.classList.remove(c)}function r(){var o=document.getElementsByTagName("html")[0];for(var c in e)t(o,e[c]);var l=document.body;for(var d in n)t(l,n[d]);e={},n={}}function i(){}var s=function(c,l){return c[l]||(c[l]=0),c[l]+=1,l},u=function(c,l){return c[l]&&(c[l]-=1),l},a=function(c,l,d){d.forEach(function(h){s(l,h),c.add(h)})},f=function(c,l,d){d.forEach(function(h){u(l,h),l[h]===0&&c.remove(h)})};return ft.add=function(c,l){return a(c.classList,c.nodeName.toLowerCase()=="html"?e:n,l.split(" "))},ft.remove=function(c,l){return f(c.classList,c.nodeName.toLowerCase()=="html"?e:n,l.split(" "))},ft}var bt={},f0;function Eu(){if(f0)return bt;f0=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.log=r,bt.resetState=i;function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var n=function s(){var u=this;e(this,s),this.register=function(a){u.openInstances.indexOf(a)===-1&&(u.openInstances.push(a),u.emit("register"))},this.deregister=function(a){var f=u.openInstances.indexOf(a);f!==-1&&(u.openInstances.splice(f,1),u.emit("deregister"))},this.subscribe=function(a){u.subscribers.push(a)},this.emit=function(a){u.subscribers.forEach(function(f){return f(a,u.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},t=new n;function r(){console.log("portalOpenInstances ----------"),console.log(t.openInstances.length),t.openInstances.forEach(function(s){return console.log(s)}),console.log("end portalOpenInstances ----------")}function i(){t=new n}return bt.default=t,bt}var Jt={},l0;function Ql(){if(l0)return Jt;l0=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.resetState=u,Jt.log=a;var e=Eu(),n=t(e);function t(c){return c&&c.__esModule?c:{default:c}}var r=void 0,i=void 0,s=[];function u(){for(var c=[r,i],l=0;l<c.length;l++){var d=c[l];d&&d.parentNode&&d.parentNode.removeChild(d)}r=i=null,s=[]}function a(){console.log("bodyTrap ----------"),console.log(s.length);for(var c=[r,i],l=0;l<c.length;l++){var d=c[l],h=d||{};console.log(h.nodeName,h.className,h.id)}console.log("edn bodyTrap ----------")}function f(){s.length!==0&&s[s.length-1].focusContent()}function o(c,l){!r&&!i&&(r=document.createElement("div"),r.setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",f),i=r.cloneNode(),i.addEventListener("focus",f)),s=l,s.length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(r.parentElement&&r.parentElement.removeChild(r),i.parentElement&&i.parentElement.removeChild(i))}return n.default.subscribe(o),Jt}var d0;function Jl(){return d0||(d0=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=Object.assign||function(L){for(var F=1;F<arguments.length;F++){var W=arguments[F];for(var R in W)Object.prototype.hasOwnProperty.call(W,R)&&(L[R]=W[R])}return L},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},i=function(){function L(F,W){for(var R=0;R<W.length;R++){var O=W[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(F,O.key,O)}}return function(F,W,R){return W&&L(F.prototype,W),R&&L(F,R),F}}(),s=Et(),u=ba(),a=D(u),f=Gl(),o=E(f),c=Wl(),l=D(c),d=Su(),h=E(d),m=Xl(),x=E(m),y=Ca(),g=D(y),v=Eu(),b=D(v);Ql();function E(L){if(L&&L.__esModule)return L;var F={};if(L!=null)for(var W in L)Object.prototype.hasOwnProperty.call(L,W)&&(F[W]=L[W]);return F.default=L,F}function D(L){return L&&L.__esModule?L:{default:L}}function w(L,F){if(!(L instanceof F))throw new TypeError("Cannot call a class as a function")}function p(L,F){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:L}function C(L,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);L.prototype=Object.create(F&&F.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(L,F):L.__proto__=F)}var S={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},A=function(F){return F.code==="Tab"||F.keyCode===9},j=function(F){return F.code==="Escape"||F.keyCode===27},V=0,z=function(L){C(F,L);function F(W){w(this,F);var R=p(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,W));return R.setOverlayRef=function(O){R.overlay=O,R.props.overlayRef&&R.props.overlayRef(O)},R.setContentRef=function(O){R.content=O,R.props.contentRef&&R.props.contentRef(O)},R.afterClose=function(){var O=R.props,N=O.appElement,G=O.ariaHideApp,J=O.htmlOpenClassName,Z=O.bodyOpenClassName,$=O.parentSelector,M=$&&$().ownerDocument||document;Z&&x.remove(M.body,Z),J&&x.remove(M.getElementsByTagName("html")[0],J),G&&V>0&&(V-=1,V===0&&h.show(N)),R.props.shouldFocusAfterRender&&(R.props.shouldReturnFocusAfterClose?(o.returnFocus(R.props.preventScroll),o.teardownScopedFocus()):o.popWithoutFocus()),R.props.onAfterClose&&R.props.onAfterClose(),b.default.deregister(R)},R.open=function(){R.beforeOpen(),R.state.afterOpen&&R.state.beforeClose?(clearTimeout(R.closeTimer),R.setState({beforeClose:!1})):(R.props.shouldFocusAfterRender&&(o.setupScopedFocus(R.node),o.markForFocusLater()),R.setState({isOpen:!0},function(){R.openAnimationFrame=requestAnimationFrame(function(){R.setState({afterOpen:!0}),R.props.isOpen&&R.props.onAfterOpen&&R.props.onAfterOpen({overlayEl:R.overlay,contentEl:R.content})})}))},R.close=function(){R.props.closeTimeoutMS>0?R.closeWithTimeout():R.closeWithoutTimeout()},R.focusContent=function(){return R.content&&!R.contentHasFocus()&&R.content.focus({preventScroll:!0})},R.closeWithTimeout=function(){var O=Date.now()+R.props.closeTimeoutMS;R.setState({beforeClose:!0,closesAt:O},function(){R.closeTimer=setTimeout(R.closeWithoutTimeout,R.state.closesAt-Date.now())})},R.closeWithoutTimeout=function(){R.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},R.afterClose)},R.handleKeyDown=function(O){A(O)&&(0,l.default)(R.content,O),R.props.shouldCloseOnEsc&&j(O)&&(O.stopPropagation(),R.requestClose(O))},R.handleOverlayOnClick=function(O){R.shouldClose===null&&(R.shouldClose=!0),R.shouldClose&&R.props.shouldCloseOnOverlayClick&&(R.ownerHandlesClose()?R.requestClose(O):R.focusContent()),R.shouldClose=null},R.handleContentOnMouseUp=function(){R.shouldClose=!1},R.handleOverlayOnMouseDown=function(O){!R.props.shouldCloseOnOverlayClick&&O.target==R.overlay&&O.preventDefault()},R.handleContentOnClick=function(){R.shouldClose=!1},R.handleContentOnMouseDown=function(){R.shouldClose=!1},R.requestClose=function(O){return R.ownerHandlesClose()&&R.props.onRequestClose(O)},R.ownerHandlesClose=function(){return R.props.onRequestClose},R.shouldBeClosed=function(){return!R.state.isOpen&&!R.state.beforeClose},R.contentHasFocus=function(){return document.activeElement===R.content||R.content.contains(document.activeElement)},R.buildClassName=function(O,N){var G=(typeof N>"u"?"undefined":r(N))==="object"?N:{base:S[O],afterOpen:S[O]+"--after-open",beforeClose:S[O]+"--before-close"},J=G.base;return R.state.afterOpen&&(J=J+" "+G.afterOpen),R.state.beforeClose&&(J=J+" "+G.beforeClose),typeof N=="string"&&N?J+" "+N:J},R.attributesFromObject=function(O,N){return Object.keys(N).reduce(function(G,J){return G[O+"-"+J]=N[J],G},{})},R.state={afterOpen:!1,beforeClose:!1},R.shouldClose=null,R.moveFromContentToOverlay=null,R}return i(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(R,O){this.props.isOpen&&!R.isOpen?this.open():!this.props.isOpen&&R.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!O.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var R=this.props,O=R.appElement,N=R.ariaHideApp,G=R.htmlOpenClassName,J=R.bodyOpenClassName,Z=R.parentSelector,$=Z&&Z().ownerDocument||document;J&&x.add($.body,J),G&&x.add($.getElementsByTagName("html")[0],G),N&&(V+=1,h.hide(O)),b.default.register(this)}},{key:"render",value:function(){var R=this.props,O=R.id,N=R.className,G=R.overlayClassName,J=R.defaultStyles,Z=R.children,$=N?{}:J.content,M=G?{}:J.overlay;if(this.shouldBeClosed())return null;var U={ref:this.setOverlayRef,className:this.buildClassName("overlay",G),style:t({},M,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},q=t({id:O,ref:this.setContentRef,style:t({},$,this.props.style.content),className:this.buildClassName("content",N),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",t({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),P=this.props.contentElement(q,Z);return this.props.overlayElement(U,P)}}]),F}(s.Component);z.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},z.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(g.default),a.default.instanceOf(y.SafeHTMLCollection),a.default.instanceOf(y.SafeNodeList),a.default.arrayOf(a.default.instanceOf(g.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},n.default=z,e.exports=n.default}(Nr,Nr.exports)),Nr.exports}function Pu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ku(e){function n(t){var r=this.constructor.getDerivedStateFromProps(e,t);return r??null}this.setState(n.bind(this))}function Tu(e,n){try{var t=this.props,r=this.state;this.props=e,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,r)}finally{this.props=t,this.state=r}}Pu.__suppressDeprecationWarning=!0;ku.__suppressDeprecationWarning=!0;Tu.__suppressDeprecationWarning=!0;function Zl(e){var n=e.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return e;var t=null,r=null,i=null;if(typeof n.componentWillMount=="function"?t="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?i="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),t!==null||r!==null||i!==null){var s=e.displayName||e.name,u=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
99
|
+
|
|
100
|
+
`+s+" uses "+u+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
101
|
+
`+t:"")+(r!==null?`
|
|
102
|
+
`+r:"")+(i!==null?`
|
|
103
|
+
`+i:"")+`
|
|
104
|
+
|
|
105
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
106
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(n.componentWillMount=Pu,n.componentWillReceiveProps=ku),typeof n.getSnapshotBeforeUpdate=="function"){if(typeof n.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=Tu;var a=n.componentDidUpdate;n.componentDidUpdate=function(o,c,l){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:l;a.call(this,o,c,d)}}return e}const e1=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Zl},Symbol.toStringTag,{value:"Module"})),t1=St(e1);var h0;function r1(){if(h0)return et;h0=1,Object.defineProperty(et,"__esModule",{value:!0}),et.bodyOpenClassName=et.portalClassName=void 0;var e=Object.assign||function(j){for(var V=1;V<arguments.length;V++){var z=arguments[V];for(var L in z)Object.prototype.hasOwnProperty.call(z,L)&&(j[L]=z[L])}return j},n=function(){function j(V,z){for(var L=0;L<z.length;L++){var F=z[L];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(V,F.key,F)}}return function(V,z,L){return z&&j(V.prototype,z),L&&j(V,L),V}}(),t=Et(),r=y(t),i=Bu(),s=y(i),u=ba(),a=y(u),f=Jl(),o=y(f),c=Su(),l=x(c),d=Ca(),h=y(d),m=t1;function x(j){if(j&&j.__esModule)return j;var V={};if(j!=null)for(var z in j)Object.prototype.hasOwnProperty.call(j,z)&&(V[z]=j[z]);return V.default=j,V}function y(j){return j&&j.__esModule?j:{default:j}}function g(j,V){if(!(j instanceof V))throw new TypeError("Cannot call a class as a function")}function v(j,V){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:j}function b(j,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);j.prototype=Object.create(V&&V.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(j,V):j.__proto__=V)}var E=et.portalClassName="ReactModalPortal",D=et.bodyOpenClassName="ReactModal__Body--open",w=d.canUseDOM&&s.default.createPortal!==void 0,p=function(V){return document.createElement(V)},C=function(){return w?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function S(j){return j()}var A=function(j){b(V,j);function V(){var z,L,F,W;g(this,V);for(var R=arguments.length,O=Array(R),N=0;N<R;N++)O[N]=arguments[N];return W=(L=(F=v(this,(z=V.__proto__||Object.getPrototypeOf(V)).call.apply(z,[this].concat(O))),F),F.removePortal=function(){!w&&s.default.unmountComponentAtNode(F.node);var G=S(F.props.parentSelector);G&&G.contains(F.node)?G.removeChild(F.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},F.portalRef=function(G){F.portal=G},F.renderPortal=function(G){var J=C(),Z=J(F,r.default.createElement(o.default,e({defaultStyles:V.defaultStyles},G)),F.node);F.portalRef(Z)},L),v(F,W)}return n(V,[{key:"componentDidMount",value:function(){if(d.canUseDOM){w||(this.node=p("div")),this.node.className=this.props.portalClassName;var L=S(this.props.parentSelector);L.appendChild(this.node),!w&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(L){var F=S(L.parentSelector),W=S(this.props.parentSelector);return{prevParent:F,nextParent:W}}},{key:"componentDidUpdate",value:function(L,F,W){if(d.canUseDOM){var R=this.props,O=R.isOpen,N=R.portalClassName;L.portalClassName!==N&&(this.node.className=N);var G=W.prevParent,J=W.nextParent;J!==G&&(G.removeChild(this.node),J.appendChild(this.node)),!(!L.isOpen&&!O)&&!w&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!d.canUseDOM||!this.node||!this.portal)){var L=this.portal.state,F=Date.now(),W=L.isOpen&&this.props.closeTimeoutMS&&(L.closesAt||F+this.props.closeTimeoutMS);W?(L.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,W-F)):this.removePortal()}}},{key:"render",value:function(){if(!d.canUseDOM||!w)return null;!this.node&&w&&(this.node=p("div"));var L=C();return L(r.default.createElement(o.default,e({ref:this.portalRef,defaultStyles:V.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(L){l.setElement(L)}}]),V}(t.Component);return A.propTypes={isOpen:a.default.bool.isRequired,style:a.default.shape({content:a.default.object,overlay:a.default.object}),portalClassName:a.default.string,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,className:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),overlayClassName:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,ariaHideApp:a.default.bool,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,parentSelector:a.default.func,aria:a.default.object,data:a.default.object,role:a.default.string,contentLabel:a.default.string,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func},A.defaultProps={isOpen:!1,portalClassName:E,bodyOpenClassName:D,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(V,z){return r.default.createElement("div",V,z)},contentElement:function(V,z){return r.default.createElement("div",V,z)}},A.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(A),et.default=A,et}var p0;function n1(){return p0||(p0=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=r1(),r=i(t);function i(s){return s&&s.__esModule?s:{default:s}}n.default=r.default,e.exports=n.default}(jr,jr.exports)),jr.exports}/*! *****************************************************************************
|
|
107
|
+
Copyright (c) Microsoft Corporation.
|
|
108
|
+
|
|
109
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
110
|
+
purpose with or without fee is hereby granted.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
113
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
114
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
115
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
116
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
117
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
118
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
119
|
+
***************************************************************************** */var Wo=function(e,n){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},Wo(e,n)};function me(e,n){Wo(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Cr(e){return typeof e=="function"}var g0=!1,Ke={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var n=new Error;""+n.stack}g0=e},get useDeprecatedSynchronousErrorHandling(){return g0}};function Ct(e){setTimeout(function(){throw e},0)}var en={closed:!0,next:function(e){},error:function(e){if(Ke.useDeprecatedSynchronousErrorHandling)throw e;Ct(e)},complete:function(){}},ze=function(){return Array.isArray||function(e){return e&&typeof e.length=="number"}}();function _a(e){return e!==null&&typeof e=="object"}var i1=function(){function e(n){return Error.call(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
120
|
+
`+n.map(function(t,r){return r+1+") "+t.toString()}).join(`
|
|
121
|
+
`):"",this.name="UnsubscriptionError",this.errors=n,this}return e.prototype=Object.create(Error.prototype),e}(),mr=i1,be=function(){function e(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t=this,r=t._parentOrParents,i=t._ctorUnsubscribe,s=t._unsubscribe,u=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(r!==null)for(var a=0;a<r.length;++a){var f=r[a];f.remove(this)}if(Cr(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(l){n=l instanceof mr?y0(l.errors):[l]}}if(ze(u))for(var a=-1,o=u.length;++a<o;){var c=u[a];if(_a(c))try{c.unsubscribe()}catch(d){n=n||[],d instanceof mr?n=n.concat(y0(d.errors)):n.push(d)}}if(n)throw new mr(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||typeof t.unsubscribe!="function")return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;t=new e,t._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(i===null)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return t;var s=this._subscriptions;return s===null?this._subscriptions=[t]:s.push(t),t},e.prototype.remove=function(n){var t=this._subscriptions;if(t){var r=t.indexOf(n);r!==-1&&t.splice(r,1)}},e.EMPTY=function(n){return n.closed=!0,n}(new e),e}();function y0(e){return e.reduce(function(n,t){return n.concat(t instanceof mr?t.errors:t)},[])}var tn=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Le=function(e){me(n,e);function n(t,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=en;break;case 1:if(!t){s.destination=en;break}if(typeof t=="object"){t instanceof n?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new m0(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new m0(s,t,r,i);break}return s}return n.prototype[tn]=function(){return this},n.create=function(t,r,i){var s=new n(t,r,i);return s.syncErrorThrowable=!1,s},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(be),m0=function(e){me(n,e);function n(t,r,i,s){var u=e.call(this)||this;u._parentSubscriber=t;var a,f=u;return Cr(r)?a=r:r&&(a=r.next,i=r.error,s=r.complete,r!==en&&(f=Object.create(r),Cr(f.unsubscribe)&&u.add(f.unsubscribe.bind(f)),f.unsubscribe=u.unsubscribe.bind(u))),u._context=f,u._next=a,u._error=i,u._complete=s,u}return n.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!Ke.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(r,this._next,t)&&this.unsubscribe()}},n.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber,i=Ke.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(r,this._error,t),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=t,r.syncErrorThrown=!0):Ct(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Ct(t)}}},n.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};!Ke.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(i){if(this.unsubscribe(),Ke.useDeprecatedSynchronousErrorHandling)throw i;Ct(i)}},n.prototype.__tryOrSetError=function(t,r,i){if(!Ke.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return Ke.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(Ct(s),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n}(Le);function Ba(e){for(;e;){var n=e,t=n.closed,r=n.destination,i=n.isStopped;if(t||i)return!1;r&&r instanceof Le?e=r:e=null}return!0}function o1(e,n,t){if(e){if(e instanceof Le)return e;if(e[tn])return e[tn]()}return!e&&!n&&!t?new Le(en):new Le(e,n,t)}var kt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _r(e){return e}function a1(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ru(e)}function Ru(e){return e.length===0?_r:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var ye=function(){function e(n){this._isScalar=!1,n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this.operator,s=o1(n,t,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||Ke.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Ke.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){Ke.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),Ba(n)?n.error(t):console.warn(t)}},e.prototype.forEach=function(n,t){var r=this;return t=v0(t),new t(function(i,s){var u;u=r.subscribe(function(a){try{n(a)}catch(f){s(f),u&&u.unsubscribe()}},s,i)})},e.prototype._subscribe=function(n){var t=this.source;return t&&t.subscribe(n)},e.prototype[kt]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.length===0?this:Ru(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=v0(n),new n(function(r,i){var s;t.subscribe(function(u){return s=u},function(u){return i(u)},function(){return r(s)})})},e.create=function(n){return new e(n)},e}();function v0(e){if(e||(e=Ke.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var s1=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),tt=s1,Iu=function(e){me(n,e);function n(t,r){var i=e.call(this)||this;return i.subject=t,i.subscriber=r,i.closed=!1,i}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,!(!r||r.length===0||t.isStopped||t.closed)){var i=r.indexOf(this.subscriber);i!==-1&&r.splice(i,1)}}},n}(be),Du=function(e){me(n,e);function n(t){var r=e.call(this,t)||this;return r.destination=t,r}return n}(Le),Pr=function(e){me(n,e);function n(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype[tn]=function(){return new Du(this)},n.prototype.lift=function(t){var r=new x0(this,this);return r.operator=t,r},n.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var r=this.observers,i=r.length,s=r.slice(),u=0;u<i;u++)s[u].next(t)},n.prototype.error=function(t){if(this.closed)throw new tt;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,i=r.length,s=r.slice(),u=0;u<i;u++)s[u].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new tt;this.isStopped=!0;for(var t=this.observers,r=t.length,i=t.slice(),s=0;s<r;s++)i[s].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new tt;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new tt;return this.hasError?(t.error(this.thrownError),be.EMPTY):this.isStopped?(t.complete(),be.EMPTY):(this.observers.push(t),new Iu(this,t))},n.prototype.asObservable=function(){var t=new ye;return t.source=this,t},n.create=function(t,r){return new x0(t,r)},n}(ye),x0=function(e){me(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},n.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){var r=this.source;return r?this.source.subscribe(t):be.EMPTY},n}(Pr);function c1(){return function(n){return n.lift(new u1(n))}}var u1=function(){function e(n){this.connectable=n}return e.prototype.call=function(n,t){var r=this.connectable;r._refCount++;var i=new f1(n,r),s=t.subscribe(i);return i.closed||(i.connection=r.connect()),s},e}(),f1=function(e){me(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var r=t._refCount;if(r<=0){this.connection=null;return}if(t._refCount=r-1,r>1){this.connection=null;return}var i=this.connection,s=t._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()},n}(Le),l1=function(e){me(n,e);function n(t,r){var i=e.call(this)||this;return i.source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new be,t.add(this.source.subscribe(new d1(this.getSubject(),this))),t.closed&&(this._connection=null,t=be.EMPTY)),t},n.prototype.refCount=function(){return c1()(this)},n}(ye),d1=function(e){me(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var r=t._connection;t._refCount=0,t._subject=null,t._connection=null,r&&r.unsubscribe()}},n}(Du),h1=function(e){me(n,e);function n(t,r,i){var s=e.call(this)||this;return s.key=t,s.groupSubject=r,s.refCountSubscription=i,s}return n.prototype._subscribe=function(t){var r=new be,i=this,s=i.refCountSubscription,u=i.groupSubject;return s&&!s.closed&&r.add(new p1(s)),r.add(u.subscribe(t)),r},n}(ye),p1=function(e){me(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return n.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},n}(be),g1=function(e){me(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tt;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Pr),y1=function(e){me(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(be),kr=function(e){me(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),this.closed)return this;this.state=t;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)return r;clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,s=void 0;try{this.work(t)}catch(u){i=!0,s=!!u&&u||new Error(u)}if(i)return this.unsubscribe(),s},n.prototype._unsubscribe=function(){var t=this.id,r=this.scheduler,i=r.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,s!==-1&&i.splice(s,1),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null},n}(y1),m1=function(e){me(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.schedule=function(t,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,i):t.flush(this)},n}(kr),Vo=function(){function e(n,t){t===void 0&&(t=e.now),this.SchedulerAction=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.SchedulerAction(this,n).schedule(r,t)},e.now=function(){return Date.now()},e}(),Tr=function(e){me(n,e);function n(t,r){r===void 0&&(r=Vo.now);var i=e.call(this,t,function(){return n.delegate&&n.delegate!==i?n.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return n.prototype.schedule=function(t,r,i){return r===void 0&&(r=0),n.delegate&&n.delegate!==this?n.delegate.schedule(t,r,i):e.prototype.schedule.call(this,t,r,i)},n.prototype.flush=function(t){var r=this.actions;if(this.active){r.push(t);return}var i;this.active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n}(Vo),v1=function(e){me(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Tr),Ou=new v1(m1),Au=Ou,Bt=new ye(function(e){return e.complete()});function wa(e){return e?x1(e):Bt}function x1(e){return new ye(function(n){return e.schedule(function(){return n.complete()})})}function ot(e){return e&&typeof e.schedule=="function"}var Mu=function(e){return function(n){for(var t=0,r=e.length;t<r&&!n.closed;t++)n.next(e[t]);n.complete()}};function Sa(e,n){return new ye(function(t){var r=new be,i=0;return r.add(n.schedule(function(){if(i===e.length){t.complete();return}t.next(e[i++]),t.closed||r.add(this.schedule())})),r})}function Rr(e,n){return n?Sa(e,n):new ye(Mu(e))}function Ea(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return ot(t)?(e.pop(),Sa(e,t)):Rr(e)}function Uu(e,n){return n?new ye(function(t){return n.schedule(b1,0,{error:e,subscriber:t})}):new ye(function(t){return t.error(e)})}function b1(e){var n=e.error,t=e.subscriber;t.error(n)}var Yo;Yo||(Yo={});var Wr=function(){function e(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue=n==="N"}return e.prototype.observe=function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}},e.prototype.do=function(n,t,r){var i=this.kind;switch(i){case"N":return n&&n(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(n,t,r){return n&&typeof n.next=="function"?this.observe(n):this.do(n,t,r)},e.prototype.toObservable=function(){var n=this.kind;switch(n){case"N":return Ea(this.value);case"E":return Uu(this.error);case"C":return wa()}throw new Error("unexpected notification kind value")},e.createNext=function(n){return typeof n<"u"?new e("N",n):e.undefinedValueNotification},e.createError=function(n){return new e("E",void 0,n)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),C1=function(e){me(n,e);function n(t,r,i){i===void 0&&(i=0);var s=e.call(this,t)||this;return s.scheduler=r,s.delay=i,s}return n.dispatch=function(t){var r=t.notification,i=t.destination;r.observe(i),this.unsubscribe()},n.prototype.scheduleMessage=function(t){var r=this.destination;r.add(this.scheduler.schedule(n.dispatch,this.delay,new _1(t,this.destination)))},n.prototype._next=function(t){this.scheduleMessage(Wr.createNext(t))},n.prototype._error=function(t){this.scheduleMessage(Wr.createError(t)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(Wr.createComplete()),this.unsubscribe()},n}(Le),_1=function(){function e(n,t){this.notification=n,this.destination=t}return e}(),B1=function(e){me(n,e);function n(t,r,i){t===void 0&&(t=Number.POSITIVE_INFINITY),r===void 0&&(r=Number.POSITIVE_INFINITY);var s=e.call(this)||this;return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=t<1?1:t,s._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return n.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},n.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new w1(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},n.prototype._subscribe=function(t){var r=this._infiniteTimeWindow,i=r?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,u=i.length,a;if(this.closed)throw new tt;if(this.isStopped||this.hasError?a=be.EMPTY:(this.observers.push(t),a=new Iu(this,t)),s&&t.add(t=new C1(t,s)),r)for(var f=0;f<u&&!t.closed;f++)t.next(i[f]);else for(var f=0;f<u&&!t.closed;f++)t.next(i[f].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),a},n.prototype._getNow=function(){return(this.scheduler||Au).now()},n.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),r=this._bufferSize,i=this._windowTime,s=this._events,u=s.length,a=0;a<u&&!(t-s[a].time<i);)a++;return u>r&&(a=Math.max(a,u-r)),a>0&&s.splice(0,a),s},n}(Pr),w1=function(){function e(n,t){this.time=n,this.value=t}return e}(),Ir=function(e){me(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),be.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),be.EMPTY):e.prototype._subscribe.call(this,t)},n.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},n.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},n.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},n}(Pr),S1=1,E1=function(){return Promise.resolve()}(),Xo={};function b0(e){return e in Xo?(delete Xo[e],!0):!1}var C0={setImmediate:function(e){var n=S1++;return Xo[n]=!0,E1.then(function(){return b0(n)&&e()}),n},clearImmediate:function(e){b0(e)}},P1=function(e){me(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=C0.setImmediate(t.flush.bind(t,null))))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(C0.clearImmediate(r),t.scheduled=void 0)},n}(kr),k1=function(e){me(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,u=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<u&&(t=r.shift()));if(this.active=!1,i){for(;++s<u&&(t=r.shift());)t.unsubscribe();throw i}},n}(Tr),Lu=new k1(P1),T1=Lu,ju=new Tr(kr),rn=ju,R1=function(e){me(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(cancelAnimationFrame(r),t.scheduled=void 0)},n}(kr),I1=function(e){me(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,u=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<u&&(t=r.shift()));if(this.active=!1,i){for(;++s<u&&(t=r.shift());)t.unsubscribe();throw i}},n}(Tr),Nu=new I1(R1),D1=Nu,O1=function(e){me(n,e);function n(t,r){t===void 0&&(t=Fu),r===void 0&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return n.prototype.flush=function(){for(var t=this,r=t.actions,i=t.maxFrames,s,u;(u=r[0])&&u.delay<=i&&(r.shift(),this.frame=u.delay,!(s=u.execute(u.state,u.delay))););if(s){for(;u=r.shift();)u.unsubscribe();throw s}},n.frameTimeFactor=10,n}(Tr),Fu=function(e){me(n,e);function n(t,r,i){i===void 0&&(i=t.index+=1);var s=e.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.index=i,s.active=!0,s.index=t.index=i,s}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),!this.id)return e.prototype.schedule.call(this,t,r);this.active=!1;var i=new n(this.scheduler,this.work);return this.add(i),i.schedule(t,r)},n.prototype.requestAsyncId=function(t,r,i){i===void 0&&(i=0),this.delay=t.frame+i;var s=t.actions;return s.push(this),s.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,r,i){},n.prototype._execute=function(t,r){if(this.active===!0)return e.prototype._execute.call(this,t,r)},n.sortActions=function(t,r){return t.delay===r.delay?t.index===r.index?0:t.index>r.index?1:-1:t.delay>r.delay?1:-1},n}(kr);function qu(){}function A1(e){return!!e&&(e instanceof ye||typeof e.lift=="function"&&typeof e.subscribe=="function")}var M1=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),U1=M1,L1=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),j1=L1,N1=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),F1=N1;function Tt(e,n){return function(r){if(typeof e!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new q1(e,n))}}var q1=function(){function e(n,t){this.project=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new $1(n,this.project,this.thisArg))},e}(),$1=function(e){me(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return n.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(Le);function $u(e,n,t){if(n)if(ot(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return $u(e,t).apply(void 0,r).pipe(Tt(function(s){return ze(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,u,a={context:s,subject:u,callbackFunc:e,scheduler:t};return new ye(function(f){if(t){var c={args:r,subscriber:f,params:a};return t.schedule(H1,0,c)}else{if(!u){u=new Ir;var o=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];u.next(l.length<=1?l[0]:l),u.complete()};try{e.apply(s,r.concat([o]))}catch(l){Ba(u)?u.error(l):console.warn(l)}}return u.subscribe(f)}})}}function H1(e){var n=this,t=e.args,r=e.subscriber,i=e.params,s=i.callbackFunc,u=i.context,a=i.scheduler,f=i.subject;if(!f){f=i.subject=new Ir;var o=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d=c.length<=1?c[0]:c;n.add(a.schedule(K1,0,{value:d,subject:f}))};try{s.apply(u,t.concat([o]))}catch(c){f.error(c)}}this.add(f.subscribe(r))}function K1(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function Hu(e,n,t){if(n)if(ot(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Hu(e,t).apply(void 0,r).pipe(Tt(function(s){return ze(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s={subject:void 0,args:r,callbackFunc:e,scheduler:t,context:this};return new ye(function(u){var a=s.context,f=s.subject;if(t)return t.schedule(z1,0,{params:s,subscriber:u,context:a});if(!f){f=s.subject=new Ir;var o=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d=c.shift();if(d){f.error(d);return}f.next(c.length<=1?c[0]:c),f.complete()};try{e.apply(a,r.concat([o]))}catch(c){Ba(f)?f.error(c):console.warn(c)}}return f.subscribe(u)})}}function z1(e){var n=this,t=e.params,r=e.subscriber,i=e.context,s=t.callbackFunc,u=t.args,a=t.scheduler,f=t.subject;if(!f){f=t.subject=new Ir;var o=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d=c.shift();if(d)n.add(a.schedule(_0,0,{err:d,subject:f}));else{var h=c.length<=1?c[0]:c;n.add(a.schedule(G1,0,{value:h,subject:f}))}};try{s.apply(i,u.concat([o]))}catch(c){this.add(a.schedule(_0,0,{err:c,subject:f}))}}this.add(f.subscribe(r))}function G1(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function _0(e){var n=e.err,t=e.subject;t.error(n)}var Ku=function(e){me(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t,r,i,s,u){this.destination.next(r)},n.prototype.notifyError=function(t,r){this.destination.error(t)},n.prototype.notifyComplete=function(t){this.destination.complete()},n}(Le),W1=function(e){me(n,e);function n(t,r,i){var s=e.call(this)||this;return s.parent=t,s.outerValue=r,s.outerIndex=i,s.index=0,s}return n.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},n.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(Le),V1=function(e){return function(n){return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,Ct),n}};function Y1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var at=Y1(),X1=function(e){return function(n){var t=e[at]();do{var r=void 0;try{r=t.next()}catch(i){return n.error(i),n}if(r.done){n.complete();break}if(n.next(r.value),n.closed)break}while(!0);return typeof t.return=="function"&&n.add(function(){t.return&&t.return()}),n}},Q1=function(e){return function(n){var t=e[kt]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(n)}},zu=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Gu(e){return!!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var Br=function(e){if(e&&typeof e[kt]=="function")return Q1(e);if(zu(e))return Mu(e);if(Gu(e))return V1(e);if(e&&typeof e[at]=="function")return X1(e);var n=_a(e)?"an invalid object":"'"+e+"'",t="You provided "+n+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)};function Wu(e,n,t,r,i){if(i===void 0&&(i=new W1(e,t,r)),!i.closed)return n instanceof ye?n.subscribe(i):Br(n)(i)}var B0={};function J1(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=void 0,r=void 0;return ot(e[e.length-1])&&(r=e.pop()),typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&ze(e[0])&&(e=e[0]),Rr(e,r).lift(new Z1(t))}var Z1=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new ed(n,this.resultSelector))},e}(),ed=function(e){me(n,e);function n(t,r){var i=e.call(this,t)||this;return i.resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return n.prototype._next=function(t){this.values.push(B0),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{this.active=r,this.toRespond=r;for(var i=0;i<r;i++){var s=t[i];this.add(Wu(this,s,void 0,i))}}},n.prototype.notifyComplete=function(t){(this.active-=1)===0&&this.destination.complete()},n.prototype.notifyNext=function(t,r,i){var s=this.values,u=s[i],a=this.toRespond?u===B0?--this.toRespond:this.toRespond:0;s[i]=r,a===0&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))},n.prototype._tryResultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(Ku);function td(e,n){return new ye(function(t){var r=new be;return r.add(n.schedule(function(){var i=e[kt]();r.add(i.subscribe({next:function(s){r.add(n.schedule(function(){return t.next(s)}))},error:function(s){r.add(n.schedule(function(){return t.error(s)}))},complete:function(){r.add(n.schedule(function(){return t.complete()}))}}))})),r})}function rd(e,n){return new ye(function(t){var r=new be;return r.add(n.schedule(function(){return e.then(function(i){r.add(n.schedule(function(){t.next(i),r.add(n.schedule(function(){return t.complete()}))}))},function(i){r.add(n.schedule(function(){return t.error(i)}))})})),r})}function nd(e,n){if(!e)throw new Error("Iterable cannot be null");return new ye(function(t){var r=new be,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(n.schedule(function(){i=e[at](),r.add(n.schedule(function(){if(!t.closed){var s,u;try{var a=i.next();s=a.value,u=a.done}catch(f){t.error(f);return}u?t.complete():(t.next(s),this.schedule())}}))})),r})}function id(e){return e&&typeof e[kt]=="function"}function od(e){return e&&typeof e[at]=="function"}function Vu(e,n){if(e!=null){if(id(e))return td(e,n);if(Gu(e))return rd(e,n);if(zu(e))return Sa(e,n);if(od(e)||typeof e=="string")return nd(e,n)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}function Rt(e,n){return n?Vu(e,n):e instanceof ye?e:new ye(Br(e))}var Yu=function(e){me(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,r}return n.prototype._next=function(t){this.parent.notifyNext(t)},n.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},n}(Le),Xu=function(e){me(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyError=function(t){this.destination.error(t)},n.prototype.notifyComplete=function(){this.destination.complete()},n}(Le);function Qu(e,n){if(!n.closed){if(e instanceof ye)return e.subscribe(n);var t;try{t=Br(e)(n)}catch(r){n.error(r)}return t}}function Ju(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?function(r){return r.pipe(Ju(function(i,s){return Rt(e(i,s)).pipe(Tt(function(u,a){return n(i,u,s,a)}))},t))}:(typeof n=="number"&&(t=n),function(r){return r.lift(new ad(e,t))})}var ad=function(){function e(n,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=n,this.concurrent=t}return e.prototype.call=function(n,t){return t.subscribe(new sd(n,this.project,this.concurrent))},e}(),sd=function(e){me(n,e);function n(t,r,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,t)||this;return s.project=r,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return n.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},n.prototype._tryNext=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this.active++,this._innerSub(r)},n.prototype._innerSub=function(t){var r=new Yu(this),i=this.destination;i.add(r);var s=Qu(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},n}(Xu);function Zu(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),Ju(_r,e)}function cd(){return Zu(1)}function ud(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return cd()(Ea.apply(void 0,e))}function ef(e){return new ye(function(n){var t;try{t=e()}catch(i){n.error(i);return}var r=t?Rt(t):wa();return r.subscribe(n)})}function fd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1){var t=e[0];if(ze(t))return $r(t,null);if(_a(t)&&Object.getPrototypeOf(t)===Object.prototype){var r=Object.keys(t);return $r(r.map(function(s){return t[s]}),r)}}if(typeof e[e.length-1]=="function"){var i=e.pop();return e=e.length===1&&ze(e[0])?e[0]:e,$r(e,null).pipe(Tt(function(s){return i.apply(void 0,s)}))}return $r(e,null)}function $r(e,n){return new ye(function(t){var r=e.length;if(r===0){t.complete();return}for(var i=new Array(r),s=0,u=0,a=function(o){var c=Rt(e[o]),l=!1;t.add(c.subscribe({next:function(d){l||(l=!0,u++),i[o]=d},error:function(d){return t.error(d)},complete:function(){s++,(s===r||!l)&&(u===r&&t.next(n?n.reduce(function(d,h,m){return d[h]=i[m],d},{}):i),t.complete())}}))},f=0;f<r;f++)a(f)})}function tf(e,n,t,r){return Cr(t)&&(r=t,t=void 0),r?tf(e,n,t).pipe(Tt(function(i){return ze(i)?r.apply(void 0,i):r(i)})):new ye(function(i){function s(u){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(u)}rf(e,n,s,i,t)})}function rf(e,n,t,r,i){var s;if(hd(e)){var u=e;e.addEventListener(n,t,i),s=function(){return u.removeEventListener(n,t,i)}}else if(dd(e)){var a=e;e.on(n,t),s=function(){return a.off(n,t)}}else if(ld(e)){var f=e;e.addListener(n,t),s=function(){return f.removeListener(n,t)}}else if(e&&e.length)for(var o=0,c=e.length;o<c;o++)rf(e[o],n,t,r,i);else throw new TypeError("Invalid event target");r.add(s)}function ld(e){return e&&typeof e.addListener=="function"&&typeof e.removeListener=="function"}function dd(e){return e&&typeof e.on=="function"&&typeof e.off=="function"}function hd(e){return e&&typeof e.addEventListener=="function"&&typeof e.removeEventListener=="function"}function nf(e,n,t){return t?nf(e,n).pipe(Tt(function(r){return ze(r)?t.apply(void 0,r):t(r)})):new ye(function(r){var i=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return r.next(u.length===1?u[0]:u)},s;try{s=e(i)}catch(u){r.error(u);return}if(Cr(n))return function(){return n(i,s)}})}function pd(e,n,t,r,i){var s,u;if(arguments.length==1){var a=e;u=a.initialState,n=a.condition,t=a.iterate,s=a.resultSelector||_r,i=a.scheduler}else r===void 0||ot(r)?(u=e,s=_r,i=r):(u=e,s=r);return new ye(function(f){var o=u;if(i)return i.schedule(gd,0,{subscriber:f,iterate:t,condition:n,resultSelector:s,state:o});do{if(n){var c=void 0;try{c=n(o)}catch(d){f.error(d);return}if(!c){f.complete();break}}var l=void 0;try{l=s(o)}catch(d){f.error(d);return}if(f.next(l),f.closed)break;try{o=t(o)}catch(d){f.error(d);return}}while(!0)})}function gd(e){var n=e.subscriber,t=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(s){n.error(s);return}else e.needIterate=!0;if(t){var r=void 0;try{r=t(e.state)}catch(s){n.error(s);return}if(!r){n.complete();return}if(n.closed)return}var i;try{i=e.resultSelector(e.state)}catch(s){n.error(s);return}if(!n.closed&&(n.next(i),!n.closed))return this.schedule(e)}}function yd(e,n,t){return n===void 0&&(n=Bt),t===void 0&&(t=Bt),ef(function(){return e()?n:t})}function Qo(e){return!ze(e)&&e-parseFloat(e)+1>=0}function md(e,n){return e===void 0&&(e=0),n===void 0&&(n=rn),(!Qo(e)||e<0)&&(e=0),(!n||typeof n.schedule!="function")&&(n=rn),new ye(function(t){return t.add(n.schedule(vd,e,{subscriber:t,counter:0,period:e})),t})}function vd(e){var n=e.subscriber,t=e.counter,r=e.period;n.next(t),this.schedule({subscriber:n,counter:t+1,period:r},r)}function xd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return ot(i)?(r=e.pop(),e.length>1&&typeof e[e.length-1]=="number"&&(t=e.pop())):typeof i=="number"&&(t=e.pop()),r===null&&e.length===1&&e[0]instanceof ye?e[0]:Zu(t)(Rr(e,r))}var of=new ye(qu);function bd(){return of}function Jo(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===0)return Bt;var t=e[0],r=e.slice(1);return e.length===1&&ze(t)?Jo.apply(void 0,t):new ye(function(i){var s=function(){return i.add(Jo.apply(void 0,r).subscribe(i))};return Rt(t).subscribe({next:function(u){i.next(u)},error:s,complete:s})})}function Cd(e,n){return n?new ye(function(t){var r=Object.keys(e),i=new be;return i.add(n.schedule(_d,0,{keys:r,index:0,subscriber:t,subscription:i,obj:e})),i}):new ye(function(t){for(var r=Object.keys(e),i=0;i<r.length&&!t.closed;i++){var s=r[i];e.hasOwnProperty(s)&&t.next([s,e[s]])}t.complete()})}function _d(e){var n=e.keys,t=e.index,r=e.subscriber,i=e.subscription,s=e.obj;if(!r.closed)if(t<n.length){var u=n[t];r.next([u,s[u]]),i.add(this.schedule({keys:n,index:t+1,subscriber:r,subscription:i,obj:s}))}else r.complete()}function Bd(e,n){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=e,t.thisArg=n,t}function w0(e,n){return function(r){return r.lift(new wd(e,n))}}var wd=function(){function e(n,t){this.predicate=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new Sd(n,this.predicate,this.thisArg))},e}(),Sd=function(e){me(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.thisArg=i,s.count=0,s}return n.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}r&&this.destination.next(t)},n}(Le);function Ed(e,n,t){return[w0(n,t)(new ye(Br(e))),w0(Bd(n,t))(new ye(Br(e)))]}function Pd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1)if(ze(e[0]))e=e[0];else return e[0];return Rr(e,void 0).lift(new kd)}var kd=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Td(n))},e}(),Td=function(e){me(n,e);function n(t){var r=e.call(this,t)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return n.prototype._next=function(t){this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{for(var i=0;i<r&&!this.hasFirst;i++){var s=t[i],u=Wu(this,s,void 0,i);this.subscriptions&&this.subscriptions.push(u),this.add(u)}this.observables=null}},n.prototype.notifyNext=function(t,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var s=0;s<this.subscriptions.length;s++)if(s!==i){var u=this.subscriptions[s];u.unsubscribe(),this.remove(u)}this.subscriptions=null}this.destination.next(r)},n}(Ku);function Rd(e,n,t){return e===void 0&&(e=0),new ye(function(r){n===void 0&&(n=e,e=0);var i=0,s=e;if(t)return t.schedule(Id,0,{index:i,count:n,start:e,subscriber:r});do{if(i++>=n){r.complete();break}if(r.next(s++),r.closed)break}while(!0)})}function Id(e){var n=e.start,t=e.index,r=e.count,i=e.subscriber;if(t>=r){i.complete();return}i.next(n),!i.closed&&(e.index=t+1,e.start=n+1,this.schedule(e))}function Dd(e,n,t){e===void 0&&(e=0);var r=-1;return Qo(n)?r=Number(n)<1&&1||Number(n):ot(n)&&(t=n),ot(t)||(t=rn),new ye(function(i){var s=Qo(e)?e:+e-t.now();return t.schedule(Od,s,{index:0,period:r,subscriber:i})})}function Od(e){var n=e.index,t=e.period,r=e.subscriber;if(r.next(n),!r.closed){if(t===-1)return r.complete();e.index=n+1,this.schedule(e,t)}}function Ad(e,n){return new ye(function(t){var r;try{r=e()}catch(a){t.error(a);return}var i;try{i=n(r)}catch(a){t.error(a);return}var s=i?Rt(i):Bt,u=s.subscribe(t);return function(){u.unsubscribe(),r&&r.unsubscribe()}})}function Md(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return typeof t=="function"&&e.pop(),Rr(e,void 0).lift(new Ud(t))}var Ud=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Ld(n,this.resultSelector))},e}(),Ld=function(e){me(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.resultSelector=r,s.iterators=[],s.active=0,s.resultSelector=typeof r=="function"?r:void 0,s}return n.prototype._next=function(t){var r=this.iterators;ze(t)?r.push(new Nd(t)):typeof t[at]=="function"?r.push(new jd(t[at]())):r.push(new Fd(this.destination,this,t))},n.prototype._complete=function(){var t=this.iterators,r=t.length;if(this.unsubscribe(),r===0){this.destination.complete();return}this.active=r;for(var i=0;i<r;i++){var s=t[i];if(s.stillUnsubscribed){var u=this.destination;u.add(s.subscribe())}else this.active--}},n.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},n.prototype.checkIterators=function(){for(var t=this.iterators,r=t.length,i=this.destination,s=0;s<r;s++){var u=t[s];if(typeof u.hasValue=="function"&&!u.hasValue())return}for(var a=!1,f=[],s=0;s<r;s++){var u=t[s],o=u.next();if(u.hasCompleted()&&(a=!0),o.done){i.complete();return}f.push(o.value)}this.resultSelector?this._tryresultSelector(f):i.next(f),a&&i.complete()},n.prototype._tryresultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(Le),jd=function(){function e(n){this.iterator=n,this.nextResult=n.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var n=this.nextResult;return this.nextResult=this.iterator.next(),n},e.prototype.hasCompleted=function(){var n=this.nextResult;return!!(n&&n.done)},e}(),Nd=function(){function e(n){this.array=n,this.index=0,this.length=0,this.length=n.length}return e.prototype[at]=function(){return this},e.prototype.next=function(n){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Fd=function(e){me(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.parent=r,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return n.prototype[at]=function(){return this},n.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},n.prototype.hasValue=function(){return this.buffer.length>0},n.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},n.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},n.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},n.prototype.subscribe=function(){return Qu(this.observable,new Yu(this))},n}(Xu);const qd=Object.freeze(Object.defineProperty({__proto__:null,ArgumentOutOfRangeError:U1,AsyncSubject:Ir,BehaviorSubject:g1,ConnectableObservable:l1,EMPTY:Bt,EmptyError:j1,GroupedObservable:h1,NEVER:of,Notification:Wr,get NotificationKind(){return Yo},ObjectUnsubscribedError:tt,Observable:ye,ReplaySubject:B1,Scheduler:Vo,Subject:Pr,Subscriber:Le,Subscription:be,TimeoutError:F1,UnsubscriptionError:mr,VirtualAction:Fu,VirtualTimeScheduler:O1,animationFrame:D1,animationFrameScheduler:Nu,asap:T1,asapScheduler:Lu,async:rn,asyncScheduler:ju,bindCallback:$u,bindNodeCallback:Hu,combineLatest:J1,concat:ud,config:Ke,defer:ef,empty:wa,forkJoin:fd,from:Rt,fromEvent:tf,fromEventPattern:nf,generate:pd,identity:_r,iif:yd,interval:md,isObservable:A1,merge:xd,never:bd,noop:qu,observable:kt,of:Ea,onErrorResumeNext:Jo,pairs:Cd,partition:Ed,pipe:a1,queue:Au,queueScheduler:Ou,race:Pd,range:Rd,scheduled:Vu,throwError:Uu,timer:Dd,using:Ad,zip:Md},Symbol.toStringTag,{value:"Module"})),$d=St(qd);var oo,S0;function af(){return S0||(S0=1,oo={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),oo}var ao,E0;function Hd(){if(E0)return ao;E0=1;var e=af();function n(t){this.mode=e.MODE_8BIT_BYTE,this.data=t}return n.prototype={getLength:function(t){return this.data.length},write:function(t){for(var r=0;r<this.data.length;r++)t.put(this.data.charCodeAt(r),8)}},ao=n,ao}var so,P0;function sf(){return P0||(P0=1,so={L:1,M:0,Q:3,H:2}),so}var co,k0;function Kd(){if(k0)return co;k0=1;var e=sf();function n(t,r){this.totalCount=t,this.dataCount=r}return n.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n.getRSBlocks=function(t,r){var i=n.getRsBlockTable(t,r);if(i==null)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+r);for(var s=i.length/3,u=new Array,a=0;a<s;a++)for(var f=i[a*3+0],o=i[a*3+1],c=i[a*3+2],l=0;l<f;l++)u.push(new n(o,c));return u},n.getRsBlockTable=function(t,r){switch(r){case e.L:return n.RS_BLOCK_TABLE[(t-1)*4+0];case e.M:return n.RS_BLOCK_TABLE[(t-1)*4+1];case e.Q:return n.RS_BLOCK_TABLE[(t-1)*4+2];case e.H:return n.RS_BLOCK_TABLE[(t-1)*4+3];default:return}},co=n,co}var uo,T0;function zd(){if(T0)return uo;T0=1;function e(){this.buffer=new Array,this.length=0}return e.prototype={get:function(n){var t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)==1},put:function(n,t){for(var r=0;r<t;r++)this.putBit((n>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(n){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}},uo=e,uo}var fo,R0;function cf(){if(R0)return fo;R0=1;for(var e={glog:function(t){if(t<1)throw new Error("glog("+t+")");return e.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)e.EXP_TABLE[n]=1<<n;for(var n=8;n<256;n++)e.EXP_TABLE[n]=e.EXP_TABLE[n-4]^e.EXP_TABLE[n-5]^e.EXP_TABLE[n-6]^e.EXP_TABLE[n-8];for(var n=0;n<255;n++)e.LOG_TABLE[e.EXP_TABLE[n]]=n;return fo=e,fo}var lo,I0;function uf(){if(I0)return lo;I0=1;var e=cf();function n(t,r){if(t.length==null)throw new Error(t.length+"/"+r);for(var i=0;i<t.length&&t[i]==0;)i++;this.num=new Array(t.length-i+r);for(var s=0;s<t.length-i;s++)this.num[s]=t[s+i]}return n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var r=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var s=0;s<t.getLength();s++)r[i+s]^=e.gexp(e.glog(this.get(i))+e.glog(t.get(s)));return new n(r,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var r=e.glog(this.get(0))-e.glog(t.get(0)),i=new Array(this.getLength()),s=0;s<this.getLength();s++)i[s]=this.get(s);for(var s=0;s<t.getLength();s++)i[s]^=e.gexp(e.glog(t.get(s))+r);return new n(i,0).mod(t)}},lo=n,lo}var ho,D0;function Gd(){if(D0)return ho;D0=1;var e=af(),n=uf(),t=cf(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(s){for(var u=s<<10;i.getBCHDigit(u)-i.getBCHDigit(i.G15)>=0;)u^=i.G15<<i.getBCHDigit(u)-i.getBCHDigit(i.G15);return(s<<10|u)^i.G15_MASK},getBCHTypeNumber:function(s){for(var u=s<<12;i.getBCHDigit(u)-i.getBCHDigit(i.G18)>=0;)u^=i.G18<<i.getBCHDigit(u)-i.getBCHDigit(i.G18);return s<<12|u},getBCHDigit:function(s){for(var u=0;s!=0;)u++,s>>>=1;return u},getPatternPosition:function(s){return i.PATTERN_POSITION_TABLE[s-1]},getMask:function(s,u,a){switch(s){case r.PATTERN000:return(u+a)%2==0;case r.PATTERN001:return u%2==0;case r.PATTERN010:return a%3==0;case r.PATTERN011:return(u+a)%3==0;case r.PATTERN100:return(Math.floor(u/2)+Math.floor(a/3))%2==0;case r.PATTERN101:return u*a%2+u*a%3==0;case r.PATTERN110:return(u*a%2+u*a%3)%2==0;case r.PATTERN111:return(u*a%3+(u+a)%2)%2==0;default:throw new Error("bad maskPattern:"+s)}},getErrorCorrectPolynomial:function(s){for(var u=new n([1],0),a=0;a<s;a++)u=u.multiply(new n([1,t.gexp(a)],0));return u},getLengthInBits:function(s,u){if(1<=u&&u<10)switch(s){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+s)}else if(u<27)switch(s){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+s)}else if(u<41)switch(s){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+s)}else throw new Error("type:"+u)},getLostPoint:function(s){for(var u=s.getModuleCount(),a=0,f=0;f<u;f++)for(var o=0;o<u;o++){for(var c=0,l=s.isDark(f,o),d=-1;d<=1;d++)if(!(f+d<0||u<=f+d))for(var h=-1;h<=1;h++)o+h<0||u<=o+h||d==0&&h==0||l==s.isDark(f+d,o+h)&&c++;c>5&&(a+=3+c-5)}for(var f=0;f<u-1;f++)for(var o=0;o<u-1;o++){var m=0;s.isDark(f,o)&&m++,s.isDark(f+1,o)&&m++,s.isDark(f,o+1)&&m++,s.isDark(f+1,o+1)&&m++,(m==0||m==4)&&(a+=3)}for(var f=0;f<u;f++)for(var o=0;o<u-6;o++)s.isDark(f,o)&&!s.isDark(f,o+1)&&s.isDark(f,o+2)&&s.isDark(f,o+3)&&s.isDark(f,o+4)&&!s.isDark(f,o+5)&&s.isDark(f,o+6)&&(a+=40);for(var o=0;o<u;o++)for(var f=0;f<u-6;f++)s.isDark(f,o)&&!s.isDark(f+1,o)&&s.isDark(f+2,o)&&s.isDark(f+3,o)&&s.isDark(f+4,o)&&!s.isDark(f+5,o)&&s.isDark(f+6,o)&&(a+=40);for(var x=0,o=0;o<u;o++)for(var f=0;f<u;f++)s.isDark(f,o)&&x++;var y=Math.abs(100*x/u/u-50)/5;return a+=y*10,a}};return ho=i,ho}var po,O0;function Wd(){if(O0)return po;O0=1;var e=Hd(),n=Kd(),t=zd(),r=Gd(),i=uf();function s(a,f){this.typeNumber=a,this.errorCorrectLevel=f,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=s.prototype;return u.addData=function(a){var f=new e(a);this.dataList.push(f),this.dataCache=null},u.isDark=function(a,f){if(a<0||this.moduleCount<=a||f<0||this.moduleCount<=f)throw new Error(a+","+f);return this.modules[a][f]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var a=1;for(a=1;a<40;a++){for(var f=n.getRSBlocks(a,this.errorCorrectLevel),o=new t,c=0,l=0;l<f.length;l++)c+=f[l].dataCount;for(var l=0;l<this.dataList.length;l++){var d=this.dataList[l];o.put(d.mode,4),o.put(d.getLength(),r.getLengthInBits(d.mode,a)),d.write(o)}if(o.getLengthInBits()<=c*8)break}this.typeNumber=a}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(a,f){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var c=0;c<this.moduleCount;c++)this.modules[o][c]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(a,f),this.typeNumber>=7&&this.setupTypeNumber(a),this.dataCache==null&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,f)},u.setupPositionProbePattern=function(a,f){for(var o=-1;o<=7;o++)if(!(a+o<=-1||this.moduleCount<=a+o))for(var c=-1;c<=7;c++)f+c<=-1||this.moduleCount<=f+c||(0<=o&&o<=6&&(c==0||c==6)||0<=c&&c<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=c&&c<=4?this.modules[a+o][f+c]=!0:this.modules[a+o][f+c]=!1)},u.getBestMaskPattern=function(){for(var a=0,f=0,o=0;o<8;o++){this.makeImpl(!0,o);var c=r.getLostPoint(this);(o==0||a>c)&&(a=c,f=o)}return f},u.createMovieClip=function(a,f,o){var c=a.createEmptyMovieClip(f,o),l=1;this.make();for(var d=0;d<this.modules.length;d++)for(var h=d*l,m=0;m<this.modules[d].length;m++){var x=m*l,y=this.modules[d][m];y&&(c.beginFill(0,100),c.moveTo(x,h),c.lineTo(x+l,h),c.lineTo(x+l,h+l),c.lineTo(x,h+l),c.endFill())}return c},u.setupTimingPattern=function(){for(var a=8;a<this.moduleCount-8;a++)this.modules[a][6]==null&&(this.modules[a][6]=a%2==0);for(var f=8;f<this.moduleCount-8;f++)this.modules[6][f]==null&&(this.modules[6][f]=f%2==0)},u.setupPositionAdjustPattern=function(){for(var a=r.getPatternPosition(this.typeNumber),f=0;f<a.length;f++)for(var o=0;o<a.length;o++){var c=a[f],l=a[o];if(this.modules[c][l]==null)for(var d=-2;d<=2;d++)for(var h=-2;h<=2;h++)d==-2||d==2||h==-2||h==2||d==0&&h==0?this.modules[c+d][l+h]=!0:this.modules[c+d][l+h]=!1}},u.setupTypeNumber=function(a){for(var f=r.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var c=!a&&(f>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=c}for(var o=0;o<18;o++){var c=!a&&(f>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=c}},u.setupTypeInfo=function(a,f){for(var o=this.errorCorrectLevel<<3|f,c=r.getBCHTypeInfo(o),l=0;l<15;l++){var d=!a&&(c>>l&1)==1;l<6?this.modules[l][8]=d:l<8?this.modules[l+1][8]=d:this.modules[this.moduleCount-15+l][8]=d}for(var l=0;l<15;l++){var d=!a&&(c>>l&1)==1;l<8?this.modules[8][this.moduleCount-l-1]=d:l<9?this.modules[8][15-l-1+1]=d:this.modules[8][15-l-1]=d}this.modules[this.moduleCount-8][8]=!a},u.mapData=function(a,f){for(var o=-1,c=this.moduleCount-1,l=7,d=0,h=this.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(var m=0;m<2;m++)if(this.modules[c][h-m]==null){var x=!1;d<a.length&&(x=(a[d]>>>l&1)==1);var y=r.getMask(f,c,h-m);y&&(x=!x),this.modules[c][h-m]=x,l--,l==-1&&(d++,l=7)}if(c+=o,c<0||this.moduleCount<=c){c-=o,o=-o;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(a,f,o){for(var c=n.getRSBlocks(a,f),l=new t,d=0;d<o.length;d++){var h=o[d];l.put(h.mode,4),l.put(h.getLength(),r.getLengthInBits(h.mode,a)),h.write(l)}for(var m=0,d=0;d<c.length;d++)m+=c[d].dataCount;if(l.getLengthInBits()>m*8)throw new Error("code length overflow. ("+l.getLengthInBits()+">"+m*8+")");for(l.getLengthInBits()+4<=m*8&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=m*8||(l.put(s.PAD0,8),l.getLengthInBits()>=m*8));)l.put(s.PAD1,8);return s.createBytes(l,c)},s.createBytes=function(a,f){for(var o=0,c=0,l=0,d=new Array(f.length),h=new Array(f.length),m=0;m<f.length;m++){var x=f[m].dataCount,y=f[m].totalCount-x;c=Math.max(c,x),l=Math.max(l,y),d[m]=new Array(x);for(var g=0;g<d[m].length;g++)d[m][g]=255&a.buffer[g+o];o+=x;var v=r.getErrorCorrectPolynomial(y),b=new i(d[m],v.getLength()-1),E=b.mod(v);h[m]=new Array(v.getLength()-1);for(var g=0;g<h[m].length;g++){var D=g+E.getLength()-h[m].length;h[m][g]=D>=0?E.get(D):0}}for(var w=0,g=0;g<f.length;g++)w+=f[g].totalCount;for(var p=new Array(w),C=0,g=0;g<c;g++)for(var m=0;m<f.length;m++)g<d[m].length&&(p[C++]=d[m][g]);for(var g=0;g<l;g++)for(var m=0;m<f.length;m++)g<h[m].length&&(p[C++]=h[m][g]);return p},po=s,po}var go,A0;function Vd(){if(A0)return go;A0=1;function e(z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(F){return typeof F}:e=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},e(z)}function n(){return n=Object.assign||function(z){for(var L=1;L<arguments.length;L++){var F=arguments[L];for(var W in F)Object.prototype.hasOwnProperty.call(F,W)&&(z[W]=F[W])}return z},n.apply(this,arguments)}function t(z,L){var F=Object.keys(z);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(z);L&&(W=W.filter(function(R){return Object.getOwnPropertyDescriptor(z,R).enumerable})),F.push.apply(F,W)}return F}function r(z){for(var L=1;L<arguments.length;L++){var F=arguments[L]!=null?arguments[L]:{};L%2?t(F,!0).forEach(function(W){m(z,W,F[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(F)):t(F).forEach(function(W){Object.defineProperty(z,W,Object.getOwnPropertyDescriptor(F,W))})}return z}function i(z,L){if(z==null)return{};var F=s(z,L),W,R;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(z);for(R=0;R<O.length;R++)W=O[R],!(L.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(z,W)&&(F[W]=z[W])}return F}function s(z,L){if(z==null)return{};var F={},W=Object.keys(z),R,O;for(O=0;O<W.length;O++)R=W[O],!(L.indexOf(R)>=0)&&(F[R]=z[R]);return F}function u(z,L){if(!(z instanceof L))throw new TypeError("Cannot call a class as a function")}function a(z,L){for(var F=0;F<L.length;F++){var W=L[F];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(z,W.key,W)}}function f(z,L,F){return L&&a(z.prototype,L),z}function o(z,L){return L&&(e(L)==="object"||typeof L=="function")?L:l(z)}function c(z){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},c(z)}function l(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function d(z,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(L&&L.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),L&&h(z,L)}function h(z,L){return h=Object.setPrototypeOf||function(W,R){return W.__proto__=R,W},h(z,L)}function m(z,L,F){return L in z?Object.defineProperty(z,L,{value:F,enumerable:!0,configurable:!0,writable:!0}):z[L]=F,z}var x=Et(),y=Wd(),g=sf();function v(z){for(var L="",F=0;F<z.length;F++){var W=z.charCodeAt(F);W<128?L+=String.fromCharCode(W):W<2048?(L+=String.fromCharCode(192|W>>6),L+=String.fromCharCode(128|W&63)):W<55296||W>=57344?(L+=String.fromCharCode(224|W>>12),L+=String.fromCharCode(128|W>>6&63),L+=String.fromCharCode(128|W&63)):(F++,W=65536+((W&1023)<<10|z.charCodeAt(F)&1023),L+=String.fromCharCode(240|W>>18),L+=String.fromCharCode(128|W>>12&63),L+=String.fromCharCode(128|W>>6&63),L+=String.fromCharCode(128|W&63))}return L}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},E=4,D=.1;function w(z){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=[];return z.forEach(function(W,R){var O=null;W.forEach(function(N,G){if(!N&&O!==null){F.push("M".concat(O+L," ").concat(R+L,"h").concat(G-O,"v1H").concat(O+L,"z")),O=null;return}if(G===W.length-1){if(!N)return;O===null?F.push("M".concat(G+L,",").concat(R+L," h1v1H").concat(G+L,"z")):F.push("M".concat(O+L,",").concat(R+L," h").concat(G+1-O,"v1H").concat(O+L,"z"));return}N&&O===null&&(O=G)})}),F.join("")}function p(z,L){return z.slice().map(function(F,W){return W<L.y||W>=L.y+L.h?F:F.map(function(R,O){return O<L.x||O>=L.x+L.w?R:!1})})}function C(z,L){var F=z.imageSettings,W=z.size,R=z.includeMargin;if(F==null)return null;var O=R?E:0,N=L.length+O*2,G=Math.floor(W*D),J=N/W,Z=(F.width||G)*J,$=(F.height||G)*J,M=F.x==null?L.length/2-Z/2:F.x*J,U=F.y==null?L.length/2-$/2:F.y*J,q=null;if(F.excavate){var P=Math.floor(M),k=Math.floor(U),H=Math.ceil(Z+M-P),Y=Math.ceil($+U-k);q={x:P,y:k,w:H,h:Y}}return{x:M,y:U,h:$,w:Z,excavation:q}}var S=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),A=function(z){d(L,z);function L(){var F,W;u(this,L);for(var R=arguments.length,O=new Array(R),N=0;N<R;N++)O[N]=arguments[N];return W=o(this,(F=c(L)).call.apply(F,[this].concat(O))),m(l(W),"_canvas",void 0),m(l(W),"_image",void 0),m(l(W),"state",{imgLoaded:!1}),m(l(W),"handleImageLoad",function(){W.setState({imgLoaded:!0})}),W}return f(L,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(W){var R,O,N=(R=this.props.imageSettings)===null||R===void 0?void 0:R.src,G=(O=W.imageSettings)===null||O===void 0?void 0:O.src;N!==G&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var W=this.props,R=W.value,O=W.size,N=W.level,G=W.bgColor,J=W.fgColor,Z=W.includeMargin,$=W.imageSettings,M=new y(-1,g[N]);if(M.addData(v(R)),M.make(),this._canvas!=null){var U=this._canvas,q=U.getContext("2d");if(!q)return;var P=M.modules;if(P===null)return;var k=Z?E:0,H=P.length+k*2,Y=C(this.props,P);$!=null&&Y!=null&&Y.excavation!=null&&(P=p(P,Y.excavation));var ne=window.devicePixelRatio||1;U.height=U.width=O*ne;var re=O/H*ne;q.scale(re,re),q.fillStyle=G,q.fillRect(0,0,H,H),q.fillStyle=J,S?q.fill(new Path2D(w(P,k))):P.forEach(function(oe,fe){oe.forEach(function(he,I){he&&q.fillRect(I+k,fe+k,1,1)})}),this.state.imgLoaded&&this._image&&Y!=null&&q.drawImage(this._image,Y.x+k,Y.y+k,Y.w,Y.h)}}},{key:"render",value:function(){var W=this,R=this.props;R.value;var O=R.size;R.level,R.bgColor,R.fgColor;var N=R.style;R.includeMargin;var G=R.imageSettings,J=i(R,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Z=r({height:O,width:O},N),$=null,M=G&&G.src;return G!=null&&M!=null&&($=x.createElement("img",{src:M,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(q){return W._image=q}})),x.createElement(x.Fragment,null,x.createElement("canvas",n({style:Z,height:O,width:O,ref:function(q){return W._canvas=q}},J)),$)}}]),L}(x.PureComponent);m(A,"defaultProps",b);var j=function(z){d(L,z);function L(){return u(this,L),o(this,c(L).apply(this,arguments))}return f(L,[{key:"render",value:function(){var W=this.props,R=W.value,O=W.size,N=W.level,G=W.bgColor,J=W.fgColor,Z=W.includeMargin,$=W.imageSettings,M=i(W,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),U=new y(-1,g[N]);U.addData(v(R)),U.make();var q=U.modules;if(q===null)return null;var P=Z?E:0,k=q.length+P*2,H=C(this.props,q),Y=null;$!=null&&H!=null&&(H.excavation!=null&&(q=p(q,H.excavation)),Y=x.createElement("image",{xlinkHref:$.src,height:H.h,width:H.w,x:H.x+P,y:H.y+P,preserveAspectRatio:"none"}));var ne=w(q,P);return x.createElement("svg",n({shapeRendering:"crispEdges",height:O,width:O,viewBox:"0 0 ".concat(k," ").concat(k)},M),x.createElement("path",{fill:G,d:"M0,0 h".concat(k,"v").concat(k,"H0z")}),x.createElement("path",{fill:J,d:ne}),Y)}}]),L}(x.PureComponent);m(j,"defaultProps",b);var V=function(L){var F=L.renderAs,W=i(L,["renderAs"]),R=F==="svg"?j:A;return x.createElement(R,W)};return V.defaultProps=r({renderAs:"canvas"},b),go=V,go}var yo,M0;function Yd(){if(M0)return yo;M0=1;function e(){this.name="NoVideoInputDevicesError",this.message="No video input devices found"}return e.prototype=new Error,yo={NoVideoInputDevicesError:e},yo}var mo,U0;function Xd(){if(U0)return mo;U0=1;var e=Yd(),n=e.NoVideoInputDevicesError;function t(s,u,a){return s.length>0?s[0].deviceId:u.length==1||a=="user"?u[0].deviceId:u[1].deviceId}var r=function(u){return u=="environment"?/rear|back|environment/ig:/front|user|face/ig};function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return new Promise(function(a,f){var o=void 0;try{o=navigator.mediaDevices.enumerateDevices()}catch{f(new n)}o.then(function(c){var l=c.filter(function(m){return m.kind=="videoinput"});if(l.length<1){f(new n);return}var d=r(s),h=l.filter(function(m){var x=m.label;return d.test(x)});a(u(h,l,s))})})}return mo={getDeviceId:i,getFacingModePattern:r},mo}var vo,L0;function Qd(){return L0||(L0=1,vo=function(n,t,r){var i=[];return r.forEach(function(s){n[s]!=t[s]&&i.push(s)}),i}),vo}var xo,j0;function Jd(){return j0||(j0=1,xo=function(n,t){n=n||[],t=t||{};try{return new Blob(n,t)}catch(u){if(u.name!=="TypeError")throw u;for(var r=window.BlobBuilder||window.MSBlobBuilder||window.MozBlobBuilder||window.WebKitBlobBuilder,i=new r,s=0;s<n.length;s+=1)i.append(n[s]);return i.getBlob(t.type)}}),xo}let ff=!0,lf=!0;function pr(e,n,t){const r=e.match(n);return r&&r.length>=t&&parseInt(r[t],10)}function It(e,n,t){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(u,a){if(u!==n)return i.apply(this,arguments);const f=o=>{const c=t(o);c&&(a.handleEvent?a.handleEvent(c):a(c))};return this._eventMap=this._eventMap||{},this._eventMap[n]||(this._eventMap[n]=new Map),this._eventMap[n].set(a,f),i.apply(this,[u,f])};const s=r.removeEventListener;r.removeEventListener=function(u,a){if(u!==n||!this._eventMap||!this._eventMap[n])return s.apply(this,arguments);if(!this._eventMap[n].has(a))return s.apply(this,arguments);const f=this._eventMap[n].get(a);return this._eventMap[n].delete(a),this._eventMap[n].size===0&&delete this._eventMap[n],Object.keys(this._eventMap).length===0&&delete this._eventMap,s.apply(this,[u,f])},Object.defineProperty(r,"on"+n,{get(){return this["_on"+n]},set(u){this["_on"+n]&&(this.removeEventListener(n,this["_on"+n]),delete this["_on"+n]),u&&this.addEventListener(n,this["_on"+n]=u)},enumerable:!0,configurable:!0})}function Zd(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(ff=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function e5(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(lf=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Pa(){if(typeof window=="object"){if(ff)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function pn(e,n){lf&&console.warn(e+" is deprecated, please use "+n+" instead.")}function t5(e){const n={browser:null,version:null};if(typeof e>"u"||!e.navigator)return n.browser="Not a browser.",n;const{navigator:t}=e;if(t.mozGetUserMedia)n.browser="firefox",n.version=pr(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)n.browser="chrome",n.version=pr(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))n.browser="edge",n.version=pr(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else if(e.RTCPeerConnection&&t.userAgent.match(/AppleWebKit\/(\d+)\./))n.browser="safari",n.version=pr(t.userAgent,/AppleWebKit\/(\d+)\./,1),n.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return n.browser="Not a supported browser.",n;return n}function N0(e){return Object.prototype.toString.call(e)==="[object Object]"}function df(e){return N0(e)?Object.keys(e).reduce(function(n,t){const r=N0(e[t]),i=r?df(e[t]):e[t],s=r&&!Object.keys(i).length;return i===void 0||s?n:Object.assign(n,{[t]:i})},{}):e}function Zo(e,n,t){!n||t.has(n.id)||(t.set(n.id,n),Object.keys(n).forEach(r=>{r.endsWith("Id")?Zo(e,e.get(n[r]),t):r.endsWith("Ids")&&n[r].forEach(i=>{Zo(e,e.get(i),t)})}))}function F0(e,n,t){const r=t?"outbound-rtp":"inbound-rtp",i=new Map;if(n===null)return i;const s=[];return e.forEach(u=>{u.type==="track"&&u.trackIdentifier===n.id&&s.push(u)}),s.forEach(u=>{e.forEach(a=>{a.type===r&&a.trackId===u.id&&Zo(e,a,i)})}),i}const q0=Pa;function hf(e,n){const t=e&&e.navigator;if(!t.mediaDevices)return;const r=function(a){if(typeof a!="object"||a.mandatory||a.optional)return a;const f={};return Object.keys(a).forEach(o=>{if(o==="require"||o==="advanced"||o==="mediaSource")return;const c=typeof a[o]=="object"?a[o]:{ideal:a[o]};c.exact!==void 0&&typeof c.exact=="number"&&(c.min=c.max=c.exact);const l=function(d,h){return d?d+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(c.ideal!==void 0){f.optional=f.optional||[];let d={};typeof c.ideal=="number"?(d[l("min",o)]=c.ideal,f.optional.push(d),d={},d[l("max",o)]=c.ideal,f.optional.push(d)):(d[l("",o)]=c.ideal,f.optional.push(d))}c.exact!==void 0&&typeof c.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[l("",o)]=c.exact):["min","max"].forEach(d=>{c[d]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[l(d,o)]=c[d])})}),a.advanced&&(f.optional=(f.optional||[]).concat(a.advanced)),f},i=function(a,f){if(n.version>=61)return f(a);if(a=JSON.parse(JSON.stringify(a)),a&&typeof a.audio=="object"){const o=function(c,l,d){l in c&&!(d in c)&&(c[d]=c[l],delete c[l])};a=JSON.parse(JSON.stringify(a)),o(a.audio,"autoGainControl","googAutoGainControl"),o(a.audio,"noiseSuppression","googNoiseSuppression"),a.audio=r(a.audio)}if(a&&typeof a.video=="object"){let o=a.video.facingMode;o=o&&(typeof o=="object"?o:{ideal:o});const c=n.version<66;if(o&&(o.exact==="user"||o.exact==="environment"||o.ideal==="user"||o.ideal==="environment")&&!(t.mediaDevices.getSupportedConstraints&&t.mediaDevices.getSupportedConstraints().facingMode&&!c)){delete a.video.facingMode;let l;if(o.exact==="environment"||o.ideal==="environment"?l=["back","rear"]:(o.exact==="user"||o.ideal==="user")&&(l=["front"]),l)return t.mediaDevices.enumerateDevices().then(d=>{d=d.filter(m=>m.kind==="videoinput");let h=d.find(m=>l.some(x=>m.label.toLowerCase().includes(x)));return!h&&d.length&&l.includes("back")&&(h=d[d.length-1]),h&&(a.video.deviceId=o.exact?{exact:h.deviceId}:{ideal:h.deviceId}),a.video=r(a.video),q0("chrome: "+JSON.stringify(a)),f(a)})}a.video=r(a.video)}return q0("chrome: "+JSON.stringify(a)),f(a)},s=function(a){return n.version>=64?a:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[a.name]||a.name,message:a.message,constraint:a.constraint||a.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},u=function(a,f,o){i(a,c=>{t.webkitGetUserMedia(c,f,l=>{o&&o(s(l))})})};if(t.getUserMedia=u.bind(t),t.mediaDevices.getUserMedia){const a=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(f){return i(f,o=>a(o).then(c=>{if(o.audio&&!c.getAudioTracks().length||o.video&&!c.getVideoTracks().length)throw c.getTracks().forEach(l=>{l.stop()}),new DOMException("","NotFoundError");return c},c=>Promise.reject(s(c))))}}}function r5(e,n){if(!(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)&&e.navigator.mediaDevices){if(typeof n!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}e.navigator.mediaDevices.getDisplayMedia=function(r){return n(r).then(i=>{const s=r.video&&r.video.width,u=r.video&&r.video.height,a=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:i,maxFrameRate:a||3}},s&&(r.video.mandatory.maxWidth=s),u&&(r.video.mandatory.maxHeight=u),e.navigator.mediaDevices.getUserMedia(r)})}}}function pf(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function gf(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(t){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=t)},enumerable:!0,configurable:!0});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let s;e.RTCPeerConnection.prototype.getReceivers?s=this.getReceivers().find(a=>a.track&&a.track.id===i.track.id):s={track:i.track};const u=new Event("track");u.track=i.track,u.receiver=s,u.transceiver={receiver:s},u.streams=[r.stream],this.dispatchEvent(u)}),r.stream.getTracks().forEach(i=>{let s;e.RTCPeerConnection.prototype.getReceivers?s=this.getReceivers().find(a=>a.track&&a.track.id===i.id):s={track:i};const u=new Event("track");u.track=i,u.receiver=s,u.transceiver={receiver:s},u.streams=[r.stream],this.dispatchEvent(u)})},this.addEventListener("addstream",this._ontrackpoly)),n.apply(this,arguments)}}else It(e,"track",n=>(n.transceiver||Object.defineProperty(n,"transceiver",{value:{receiver:n.receiver}}),n))}function yf(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const n=function(i,s){return{track:s,get dtmf(){return this._dtmf===void 0&&(s.kind==="audio"?this._dtmf=i.createDTMFSender(s):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,f){let o=i.apply(this,arguments);return o||(o=n(this,a),this._senders.push(o)),o};const s=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){s.apply(this,arguments);const f=this._senders.indexOf(a);f!==-1&&this._senders.splice(f,1)}}const t=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(s){this._senders=this._senders||[],t.apply(this,[s]),s.getTracks().forEach(u=>{this._senders.push(n(this,u))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(s){this._senders=this._senders||[],r.apply(this,[s]),s.getTracks().forEach(u=>{const a=this._senders.find(f=>f.track===u);a&&this._senders.splice(this._senders.indexOf(a),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=n.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function mf(e){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[r,i,s]=arguments;if(arguments.length>0&&typeof r=="function")return n.apply(this,arguments);if(n.length===0&&(arguments.length===0||typeof r!="function"))return n.apply(this,[]);const u=function(f){const o={};return f.result().forEach(l=>{const d={id:l.id,timestamp:l.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[l.type]||l.type};l.names().forEach(h=>{d[h]=l.stat(h)}),o[d.id]=d}),o},a=function(f){return new Map(Object.keys(f).map(o=>[o,f[o]]))};if(arguments.length>=2){const f=function(o){i(a(u(o)))};return n.apply(this,[f,r])}return new Promise((f,o)=>{n.apply(this,[function(c){f(a(u(c)))},o])}).then(i,s)}}function vf(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const s=t.apply(this,[]);return s.forEach(u=>u._pc=this),s});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const s=r.apply(this,arguments);return s._pc=this,s}),e.RTCRtpSender.prototype.getStats=function(){const s=this;return this._pc.getStats().then(u=>F0(u,s.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=t.apply(this,[]);return i.forEach(s=>s._pc=this),i}),It(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(s=>F0(s,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,s,u;return this.getSenders().forEach(a=>{a.track===r&&(i?u=!0:i=a)}),this.getReceivers().forEach(a=>(a.track===r&&(s?u=!0:s=a),a.track===r)),u||i&&s?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():s?s.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return n.apply(this,arguments)}}function xf(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(u=>this._shimmedLocalStreams[u][0])};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(u,a){if(!a)return n.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const f=n.apply(this,arguments);return this._shimmedLocalStreams[a.id]?this._shimmedLocalStreams[a.id].indexOf(f)===-1&&this._shimmedLocalStreams[a.id].push(f):this._shimmedLocalStreams[a.id]=[a,f],f};const t=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){this._shimmedLocalStreams=this._shimmedLocalStreams||{},u.getTracks().forEach(o=>{if(this.getSenders().find(l=>l.track===o))throw new DOMException("Track already exists.","InvalidAccessError")});const a=this.getSenders();t.apply(this,arguments);const f=this.getSenders().filter(o=>a.indexOf(o)===-1);this._shimmedLocalStreams[u.id]=[u].concat(f)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[u.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(u){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},u&&Object.keys(this._shimmedLocalStreams).forEach(a=>{const f=this._shimmedLocalStreams[a].indexOf(u);f!==-1&&this._shimmedLocalStreams[a].splice(f,1),this._shimmedLocalStreams[a].length===1&&delete this._shimmedLocalStreams[a]}),i.apply(this,arguments)}}function bf(e,n){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&n.version>=65)return xf(e);const t=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const c=t.apply(this);return this._reverseStreams=this._reverseStreams||{},c.map(l=>this._reverseStreams[l.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(c){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},c.getTracks().forEach(l=>{if(this.getSenders().find(h=>h.track===l))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[c.id]){const l=new e.MediaStream(c.getTracks());this._streams[c.id]=l,this._reverseStreams[l.id]=c,c=l}r.apply(this,[c])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(c){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[c.id]||c]),delete this._reverseStreams[this._streams[c.id]?this._streams[c.id].id:c.id],delete this._streams[c.id]},e.RTCPeerConnection.prototype.addTrack=function(c,l){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const d=[].slice.call(arguments,1);if(d.length!==1||!d[0].getTracks().find(x=>x===c))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(x=>x.track===c))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[l.id];if(m)m.addTrack(c),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const x=new e.MediaStream([c]);this._streams[l.id]=x,this._reverseStreams[x.id]=l,this.addStream(x)}return this.getSenders().find(x=>x.track===c)};function s(o,c){let l=c.sdp;return Object.keys(o._reverseStreams||[]).forEach(d=>{const h=o._reverseStreams[d],m=o._streams[h.id];l=l.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:c.type,sdp:l})}function u(o,c){let l=c.sdp;return Object.keys(o._reverseStreams||[]).forEach(d=>{const h=o._reverseStreams[d],m=o._streams[h.id];l=l.replace(new RegExp(h.id,"g"),m.id)}),new RTCSessionDescription({type:c.type,sdp:l})}["createOffer","createAnswer"].forEach(function(o){const c=e.RTCPeerConnection.prototype[o],l={[o](){const d=arguments;return arguments.length&&typeof arguments[0]=="function"?c.apply(this,[m=>{const x=s(this,m);d[0].apply(null,[x])},m=>{d[1]&&d[1].apply(null,m)},arguments[2]]):c.apply(this,arguments).then(m=>s(this,m))}};e.RTCPeerConnection.prototype[o]=l[o]});const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?a.apply(this,arguments):(arguments[0]=u(this,arguments[0]),a.apply(this,arguments))};const f=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const o=f.get.apply(this);return o.type===""?o:s(this,o)}}),e.RTCPeerConnection.prototype.removeTrack=function(c){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!c._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(c._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let d;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(x=>c.track===x)&&(d=this._streams[h])}),d&&(d.getTracks().length===1?this.removeStream(this._reverseStreams[d.id]):d.removeTrack(c.track),this.dispatchEvent(new Event("negotiationneeded")))}}function ea(e,n){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){const r=e.RTCPeerConnection.prototype[t],i={[t](){return arguments[0]=new(t==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=i[t]})}function Cf(e,n){It(e,"negotiationneeded",t=>{const r=t.target;if(!((n.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return t})}const $0=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Cf,shimAddTrackRemoveTrack:bf,shimAddTrackRemoveTrackWithNative:xf,shimGetDisplayMedia:r5,shimGetSendersWithDtmf:yf,shimGetStats:mf,shimGetUserMedia:hf,shimMediaStream:pf,shimOnTrack:gf,shimPeerConnection:ea,shimSenderReceiverGetStats:vf},Symbol.toStringTag,{value:"Module"}));function n5(e,n){let t=!1;return e=JSON.parse(JSON.stringify(e)),e.filter(r=>{if(r&&(r.urls||r.url)){let i=r.urls||r.url;r.url&&!r.urls&&pn("RTCIceServer.url","RTCIceServer.urls");const s=typeof i=="string";return s&&(i=[i]),i=i.filter(u=>{if(u.indexOf("stun:")===0)return!1;const a=u.startsWith("turn")&&!u.startsWith("turn:[")&&u.includes("transport=udp");return a&&!t?(t=!0,!0):a&&!t}),delete r.url,r.urls=s?i[0]:i,!!i.length}})}var bo={exports:{}},H0;function _f(){return H0||(H0=1,function(e){var n={};n.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},n.localCName=n.generateIdentifier(),n.splitLines=function(t){return t.trim().split(`
|
|
122
|
+
`).map(function(r){return r.trim()})},n.splitSections=function(t){var r=t.split(`
|
|
123
|
+
m=`);return r.map(function(i,s){return(s>0?"m="+i:i).trim()+`\r
|
|
124
|
+
`})},n.getDescription=function(t){var r=n.splitSections(t);return r&&r[0]},n.getMediaSections=function(t){var r=n.splitSections(t);return r.shift(),r},n.matchPrefix=function(t,r){return n.splitLines(t).filter(function(i){return i.indexOf(r)===0})},n.parseCandidate=function(t){var r;t.indexOf("a=candidate:")===0?r=t.substring(12).split(" "):r=t.substring(10).split(" ");for(var i={foundation:r[0],component:parseInt(r[1],10),protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]},s=8;s<r.length;s+=2)switch(r[s]){case"raddr":i.relatedAddress=r[s+1];break;case"rport":i.relatedPort=parseInt(r[s+1],10);break;case"tcptype":i.tcpType=r[s+1];break;case"ufrag":i.ufrag=r[s+1],i.usernameFragment=r[s+1];break;default:i[r[s]]=r[s+1];break}return i},n.writeCandidate=function(t){var r=[];r.push(t.foundation),r.push(t.component),r.push(t.protocol.toUpperCase()),r.push(t.priority),r.push(t.address||t.ip),r.push(t.port);var i=t.type;return r.push("typ"),r.push(i),i!=="host"&&t.relatedAddress&&t.relatedPort&&(r.push("raddr"),r.push(t.relatedAddress),r.push("rport"),r.push(t.relatedPort)),t.tcpType&&t.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(t.tcpType)),(t.usernameFragment||t.ufrag)&&(r.push("ufrag"),r.push(t.usernameFragment||t.ufrag)),"candidate:"+r.join(" ")},n.parseIceOptions=function(t){return t.substr(14).split(" ")},n.parseRtpMap=function(t){var r=t.substr(9).split(" "),i={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),i.name=r[0],i.clockRate=parseInt(r[1],10),i.channels=r.length===3?parseInt(r[2],10):1,i.numChannels=i.channels,i},n.writeRtpMap=function(t){var r=t.payloadType;t.preferredPayloadType!==void 0&&(r=t.preferredPayloadType);var i=t.channels||t.numChannels||1;return"a=rtpmap:"+r+" "+t.name+"/"+t.clockRate+(i!==1?"/"+i:"")+`\r
|
|
125
|
+
`},n.parseExtmap=function(t){var r=t.substr(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1]}},n.writeExtmap=function(t){return"a=extmap:"+(t.id||t.preferredId)+(t.direction&&t.direction!=="sendrecv"?"/"+t.direction:"")+" "+t.uri+`\r
|
|
126
|
+
`},n.parseFmtp=function(t){for(var r={},i,s=t.substr(t.indexOf(" ")+1).split(";"),u=0;u<s.length;u++)i=s[u].trim().split("="),r[i[0].trim()]=i[1];return r},n.writeFmtp=function(t){var r="",i=t.payloadType;if(t.preferredPayloadType!==void 0&&(i=t.preferredPayloadType),t.parameters&&Object.keys(t.parameters).length){var s=[];Object.keys(t.parameters).forEach(function(u){t.parameters[u]?s.push(u+"="+t.parameters[u]):s.push(u)}),r+="a=fmtp:"+i+" "+s.join(";")+`\r
|
|
127
|
+
`}return r},n.parseRtcpFb=function(t){var r=t.substr(t.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},n.writeRtcpFb=function(t){var r="",i=t.payloadType;return t.preferredPayloadType!==void 0&&(i=t.preferredPayloadType),t.rtcpFeedback&&t.rtcpFeedback.length&&t.rtcpFeedback.forEach(function(s){r+="a=rtcp-fb:"+i+" "+s.type+(s.parameter&&s.parameter.length?" "+s.parameter:"")+`\r
|
|
128
|
+
`}),r},n.parseSsrcMedia=function(t){var r=t.indexOf(" "),i={ssrc:parseInt(t.substr(7,r-7),10)},s=t.indexOf(":",r);return s>-1?(i.attribute=t.substr(r+1,s-r-1),i.value=t.substr(s+1)):i.attribute=t.substr(r+1),i},n.parseSsrcGroup=function(t){var r=t.substr(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(function(i){return parseInt(i,10)})}},n.getMid=function(t){var r=n.matchPrefix(t,"a=mid:")[0];if(r)return r.substr(6)},n.parseFingerprint=function(t){var r=t.substr(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1]}},n.getDtlsParameters=function(t,r){var i=n.matchPrefix(t+r,"a=fingerprint:");return{role:"auto",fingerprints:i.map(n.parseFingerprint)}},n.writeDtlsParameters=function(t,r){var i="a=setup:"+r+`\r
|
|
129
|
+
`;return t.fingerprints.forEach(function(s){i+="a=fingerprint:"+s.algorithm+" "+s.value+`\r
|
|
130
|
+
`}),i},n.parseCryptoLine=function(t){var r=t.substr(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},n.writeCryptoLine=function(t){return"a=crypto:"+t.tag+" "+t.cryptoSuite+" "+(typeof t.keyParams=="object"?n.writeCryptoKeyParams(t.keyParams):t.keyParams)+(t.sessionParams?" "+t.sessionParams.join(" "):"")+`\r
|
|
131
|
+
`},n.parseCryptoKeyParams=function(t){if(t.indexOf("inline:")!==0)return null;var r=t.substr(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},n.writeCryptoKeyParams=function(t){return t.keyMethod+":"+t.keySalt+(t.lifeTime?"|"+t.lifeTime:"")+(t.mkiValue&&t.mkiLength?"|"+t.mkiValue+":"+t.mkiLength:"")},n.getCryptoParameters=function(t,r){var i=n.matchPrefix(t+r,"a=crypto:");return i.map(n.parseCryptoLine)},n.getIceParameters=function(t,r){var i=n.matchPrefix(t+r,"a=ice-ufrag:")[0],s=n.matchPrefix(t+r,"a=ice-pwd:")[0];return i&&s?{usernameFragment:i.substr(12),password:s.substr(10)}:null},n.writeIceParameters=function(t){return"a=ice-ufrag:"+t.usernameFragment+`\r
|
|
132
|
+
a=ice-pwd:`+t.password+`\r
|
|
133
|
+
`},n.parseRtpParameters=function(t){for(var r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=n.splitLines(t),s=i[0].split(" "),u=3;u<s.length;u++){var a=s[u],f=n.matchPrefix(t,"a=rtpmap:"+a+" ")[0];if(f){var o=n.parseRtpMap(f),c=n.matchPrefix(t,"a=fmtp:"+a+" ");switch(o.parameters=c.length?n.parseFmtp(c[0]):{},o.rtcpFeedback=n.matchPrefix(t,"a=rtcp-fb:"+a+" ").map(n.parseRtcpFb),r.codecs.push(o),o.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(o.name.toUpperCase());break}}}return n.matchPrefix(t,"a=extmap:").forEach(function(l){r.headerExtensions.push(n.parseExtmap(l))}),r},n.writeRtpDescription=function(t,r){var i="";i+="m="+t+" ",i+=r.codecs.length>0?"9":"0",i+=" UDP/TLS/RTP/SAVPF ",i+=r.codecs.map(function(u){return u.preferredPayloadType!==void 0?u.preferredPayloadType:u.payloadType}).join(" ")+`\r
|
|
134
|
+
`,i+=`c=IN IP4 0.0.0.0\r
|
|
135
|
+
`,i+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
136
|
+
`,r.codecs.forEach(function(u){i+=n.writeRtpMap(u),i+=n.writeFmtp(u),i+=n.writeRtcpFb(u)});var s=0;return r.codecs.forEach(function(u){u.maxptime>s&&(s=u.maxptime)}),s>0&&(i+="a=maxptime:"+s+`\r
|
|
137
|
+
`),i+=`a=rtcp-mux\r
|
|
138
|
+
`,r.headerExtensions&&r.headerExtensions.forEach(function(u){i+=n.writeExtmap(u)}),i},n.parseRtpEncodingParameters=function(t){var r=[],i=n.parseRtpParameters(t),s=i.fecMechanisms.indexOf("RED")!==-1,u=i.fecMechanisms.indexOf("ULPFEC")!==-1,a=n.matchPrefix(t,"a=ssrc:").map(function(d){return n.parseSsrcMedia(d)}).filter(function(d){return d.attribute==="cname"}),f=a.length>0&&a[0].ssrc,o,c=n.matchPrefix(t,"a=ssrc-group:FID").map(function(d){var h=d.substr(17).split(" ");return h.map(function(m){return parseInt(m,10)})});c.length>0&&c[0].length>1&&c[0][0]===f&&(o=c[0][1]),i.codecs.forEach(function(d){if(d.name.toUpperCase()==="RTX"&&d.parameters.apt){var h={ssrc:f,codecPayloadType:parseInt(d.parameters.apt,10)};f&&o&&(h.rtx={ssrc:o}),r.push(h),s&&(h=JSON.parse(JSON.stringify(h)),h.fec={ssrc:f,mechanism:u?"red+ulpfec":"red"},r.push(h))}}),r.length===0&&f&&r.push({ssrc:f});var l=n.matchPrefix(t,"b=");return l.length&&(l[0].indexOf("b=TIAS:")===0?l=parseInt(l[0].substr(7),10):l[0].indexOf("b=AS:")===0?l=parseInt(l[0].substr(5),10)*1e3*.95-2e3*8:l=void 0,r.forEach(function(d){d.maxBitrate=l})),r},n.parseRtcpParameters=function(t){var r={},i=n.matchPrefix(t,"a=ssrc:").map(function(a){return n.parseSsrcMedia(a)}).filter(function(a){return a.attribute==="cname"})[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);var s=n.matchPrefix(t,"a=rtcp-rsize");r.reducedSize=s.length>0,r.compound=s.length===0;var u=n.matchPrefix(t,"a=rtcp-mux");return r.mux=u.length>0,r},n.parseMsid=function(t){var r,i=n.matchPrefix(t,"a=msid:");if(i.length===1)return r=i[0].substr(7).split(" "),{stream:r[0],track:r[1]};var s=n.matchPrefix(t,"a=ssrc:").map(function(u){return n.parseSsrcMedia(u)}).filter(function(u){return u.attribute==="msid"});if(s.length>0)return r=s[0].value.split(" "),{stream:r[0],track:r[1]}},n.parseSctpDescription=function(t){var r=n.parseMLine(t),i=n.matchPrefix(t,"a=max-message-size:"),s;i.length>0&&(s=parseInt(i[0].substr(19),10)),isNaN(s)&&(s=65536);var u=n.matchPrefix(t,"a=sctp-port:");if(u.length>0)return{port:parseInt(u[0].substr(12),10),protocol:r.fmt,maxMessageSize:s};var a=n.matchPrefix(t,"a=sctpmap:");if(a.length>0){var f=n.matchPrefix(t,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(f[0],10),protocol:f[1],maxMessageSize:s}}},n.writeSctpDescription=function(t,r){var i=[];return t.protocol!=="DTLS/SCTP"?i=["m="+t.kind+" 9 "+t.protocol+" "+r.protocol+`\r
|
|
139
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
140
|
+
`,"a=sctp-port:"+r.port+`\r
|
|
141
|
+
`]:i=["m="+t.kind+" 9 "+t.protocol+" "+r.port+`\r
|
|
142
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
143
|
+
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
|
|
144
|
+
`],r.maxMessageSize!==void 0&&i.push("a=max-message-size:"+r.maxMessageSize+`\r
|
|
145
|
+
`),i.join("")},n.generateSessionId=function(){return Math.random().toString().substr(2,21)},n.writeSessionBoilerplate=function(t,r,i){var s,u=r!==void 0?r:2;t?s=t:s=n.generateSessionId();var a=i||"thisisadapterortc";return`v=0\r
|
|
146
|
+
o=`+a+" "+s+" "+u+` IN IP4 127.0.0.1\r
|
|
147
|
+
s=-\r
|
|
148
|
+
t=0 0\r
|
|
149
|
+
`},n.writeMediaSection=function(t,r,i,s){var u=n.writeRtpDescription(t.kind,r);if(u+=n.writeIceParameters(t.iceGatherer.getLocalParameters()),u+=n.writeDtlsParameters(t.dtlsTransport.getLocalParameters(),i==="offer"?"actpass":"active"),u+="a=mid:"+t.mid+`\r
|
|
150
|
+
`,t.direction?u+="a="+t.direction+`\r
|
|
151
|
+
`:t.rtpSender&&t.rtpReceiver?u+=`a=sendrecv\r
|
|
152
|
+
`:t.rtpSender?u+=`a=sendonly\r
|
|
153
|
+
`:t.rtpReceiver?u+=`a=recvonly\r
|
|
154
|
+
`:u+=`a=inactive\r
|
|
155
|
+
`,t.rtpSender){var a="msid:"+s.id+" "+t.rtpSender.track.id+`\r
|
|
156
|
+
`;u+="a="+a,u+="a=ssrc:"+t.sendEncodingParameters[0].ssrc+" "+a,t.sendEncodingParameters[0].rtx&&(u+="a=ssrc:"+t.sendEncodingParameters[0].rtx.ssrc+" "+a,u+="a=ssrc-group:FID "+t.sendEncodingParameters[0].ssrc+" "+t.sendEncodingParameters[0].rtx.ssrc+`\r
|
|
157
|
+
`)}return u+="a=ssrc:"+t.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+`\r
|
|
158
|
+
`,t.rtpSender&&t.sendEncodingParameters[0].rtx&&(u+="a=ssrc:"+t.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+`\r
|
|
159
|
+
`),u},n.getDirection=function(t,r){for(var i=n.splitLines(t),s=0;s<i.length;s++)switch(i[s]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[s].substr(2)}return r?n.getDirection(r):"sendrecv"},n.getKind=function(t){var r=n.splitLines(t),i=r[0].split(" ");return i[0].substr(2)},n.isRejected=function(t){return t.split(" ",2)[1]==="0"},n.parseMLine=function(t){var r=n.splitLines(t),i=r[0].substr(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},n.parseOLine=function(t){var r=n.matchPrefix(t,"o=")[0],i=r.substr(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},n.isValidSDP=function(t){if(typeof t!="string"||t.length===0)return!1;for(var r=n.splitLines(t),i=0;i<r.length;i++)if(r[i].length<2||r[i].charAt(1)!=="=")return!1;return!0},e.exports=n}(bo)),bo.exports}var Co,K0;function i5(){if(K0)return Co;K0=1;var e=_f();function n(f){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[f.type]||f.type}function t(f,o,c,l,d){var h=e.writeRtpDescription(f.kind,o);if(h+=e.writeIceParameters(f.iceGatherer.getLocalParameters()),h+=e.writeDtlsParameters(f.dtlsTransport.getLocalParameters(),c==="offer"?"actpass":d||"active"),h+="a=mid:"+f.mid+`\r
|
|
160
|
+
`,f.rtpSender&&f.rtpReceiver?h+=`a=sendrecv\r
|
|
161
|
+
`:f.rtpSender?h+=`a=sendonly\r
|
|
162
|
+
`:f.rtpReceiver?h+=`a=recvonly\r
|
|
163
|
+
`:h+=`a=inactive\r
|
|
164
|
+
`,f.rtpSender){var m=f.rtpSender._initialTrackId||f.rtpSender.track.id;f.rtpSender._initialTrackId=m;var x="msid:"+(l?l.id:"-")+" "+m+`\r
|
|
165
|
+
`;h+="a="+x,h+="a=ssrc:"+f.sendEncodingParameters[0].ssrc+" "+x,f.sendEncodingParameters[0].rtx&&(h+="a=ssrc:"+f.sendEncodingParameters[0].rtx.ssrc+" "+x,h+="a=ssrc-group:FID "+f.sendEncodingParameters[0].ssrc+" "+f.sendEncodingParameters[0].rtx.ssrc+`\r
|
|
166
|
+
`)}return h+="a=ssrc:"+f.sendEncodingParameters[0].ssrc+" cname:"+e.localCName+`\r
|
|
167
|
+
`,f.rtpSender&&f.sendEncodingParameters[0].rtx&&(h+="a=ssrc:"+f.sendEncodingParameters[0].rtx.ssrc+" cname:"+e.localCName+`\r
|
|
168
|
+
`),h}function r(f,o){var c=!1;return f=JSON.parse(JSON.stringify(f)),f.filter(function(l){if(l&&(l.urls||l.url)){var d=l.urls||l.url;l.url&&!l.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var h=typeof d=="string";return h&&(d=[d]),d=d.filter(function(m){var x=m.indexOf("turn:")===0&&m.indexOf("transport=udp")!==-1&&m.indexOf("turn:[")===-1&&!c;return x?(c=!0,!0):m.indexOf("stun:")===0&&o>=14393&&m.indexOf("?transport=udp")===-1}),delete l.url,l.urls=h?d[0]:d,!!d.length}})}function i(f,o){var c={codecs:[],headerExtensions:[],fecMechanisms:[]},l=function(h,m){h=parseInt(h,10);for(var x=0;x<m.length;x++)if(m[x].payloadType===h||m[x].preferredPayloadType===h)return m[x]},d=function(h,m,x,y){var g=l(h.parameters.apt,x),v=l(m.parameters.apt,y);return g&&v&&g.name.toLowerCase()===v.name.toLowerCase()};return f.codecs.forEach(function(h){for(var m=0;m<o.codecs.length;m++){var x=o.codecs[m];if(h.name.toLowerCase()===x.name.toLowerCase()&&h.clockRate===x.clockRate){if(h.name.toLowerCase()==="rtx"&&h.parameters&&x.parameters.apt&&!d(h,x,f.codecs,o.codecs))continue;x=JSON.parse(JSON.stringify(x)),x.numChannels=Math.min(h.numChannels,x.numChannels),c.codecs.push(x),x.rtcpFeedback=x.rtcpFeedback.filter(function(y){for(var g=0;g<h.rtcpFeedback.length;g++)if(h.rtcpFeedback[g].type===y.type&&h.rtcpFeedback[g].parameter===y.parameter)return!0;return!1});break}}}),f.headerExtensions.forEach(function(h){for(var m=0;m<o.headerExtensions.length;m++){var x=o.headerExtensions[m];if(h.uri===x.uri){c.headerExtensions.push(x);break}}}),c}function s(f,o,c){return{offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[o][f].indexOf(c)!==-1}function u(f,o){var c=f.getRemoteCandidates().find(function(l){return o.foundation===l.foundation&&o.ip===l.ip&&o.port===l.port&&o.priority===l.priority&&o.protocol===l.protocol&&o.type===l.type});return c||f.addRemoteCandidate(o),!c}function a(f,o){var c=new Error(o);return c.name=f,c.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[f],c}return Co=function(f,o){function c(y,g){g.addTrack(y),g.dispatchEvent(new f.MediaStreamTrackEvent("addtrack",{track:y}))}function l(y,g){g.removeTrack(y),g.dispatchEvent(new f.MediaStreamTrackEvent("removetrack",{track:y}))}function d(y,g,v,b){var E=new Event("track");E.track=g,E.receiver=v,E.transceiver={receiver:v},E.streams=b,f.setTimeout(function(){y._dispatchEvent("track",E)})}var h=function(y){var g=this,v=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(E){g[E]=v[E].bind(v)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",y=JSON.parse(JSON.stringify(y||{})),this.usingBundle=y.bundlePolicy==="max-bundle",y.rtcpMuxPolicy==="negotiate")throw a("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(y.rtcpMuxPolicy||(y.rtcpMuxPolicy="require"),y.iceTransportPolicy){case"all":case"relay":break;default:y.iceTransportPolicy="all";break}switch(y.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:y.bundlePolicy="balanced";break}if(y.iceServers=r(y.iceServers||[],o),this._iceGatherers=[],y.iceCandidatePoolSize)for(var b=y.iceCandidatePoolSize;b>0;b--)this._iceGatherers.push(new f.RTCIceGatherer({iceServers:y.iceServers,gatherPolicy:y.iceTransportPolicy}));else y.iceCandidatePoolSize=0;this._config=y,this.transceivers=[],this._sdpSessionId=e.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(h.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(h.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),h.prototype.onicecandidate=null,h.prototype.onaddstream=null,h.prototype.ontrack=null,h.prototype.onremovestream=null,h.prototype.onsignalingstatechange=null,h.prototype.oniceconnectionstatechange=null,h.prototype.onconnectionstatechange=null,h.prototype.onicegatheringstatechange=null,h.prototype.onnegotiationneeded=null,h.prototype.ondatachannel=null,h.prototype._dispatchEvent=function(y,g){this._isClosed||(this.dispatchEvent(g),typeof this["on"+y]=="function"&&this["on"+y](g))},h.prototype._emitGatheringStateChange=function(){var y=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",y)},h.prototype.getConfiguration=function(){return this._config},h.prototype.getLocalStreams=function(){return this.localStreams},h.prototype.getRemoteStreams=function(){return this.remoteStreams},h.prototype._createTransceiver=function(y,g){var v=this.transceivers.length>0,b={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:y,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&v)b.iceTransport=this.transceivers[0].iceTransport,b.dtlsTransport=this.transceivers[0].dtlsTransport;else{var E=this._createIceAndDtlsTransports();b.iceTransport=E.iceTransport,b.dtlsTransport=E.dtlsTransport}return g||this.transceivers.push(b),b},h.prototype.addTrack=function(y,g){if(this._isClosed)throw a("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var v=this.transceivers.find(function(D){return D.track===y});if(v)throw a("InvalidAccessError","Track already exists.");for(var b,E=0;E<this.transceivers.length;E++)!this.transceivers[E].track&&this.transceivers[E].kind===y.kind&&(b=this.transceivers[E]);return b||(b=this._createTransceiver(y.kind)),this._maybeFireNegotiationNeeded(),this.localStreams.indexOf(g)===-1&&this.localStreams.push(g),b.track=y,b.stream=g,b.rtpSender=new f.RTCRtpSender(y,b.dtlsTransport),b.rtpSender},h.prototype.addStream=function(y){var g=this;if(o>=15025)y.getTracks().forEach(function(b){g.addTrack(b,y)});else{var v=y.clone();y.getTracks().forEach(function(b,E){var D=v.getTracks()[E];b.addEventListener("enabled",function(w){D.enabled=w.enabled})}),v.getTracks().forEach(function(b){g.addTrack(b,v)})}},h.prototype.removeTrack=function(y){if(this._isClosed)throw a("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(y instanceof f.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var g=this.transceivers.find(function(E){return E.rtpSender===y});if(!g)throw a("InvalidAccessError","Sender was not created by this connection.");var v=g.stream;g.rtpSender.stop(),g.rtpSender=null,g.track=null,g.stream=null;var b=this.transceivers.map(function(E){return E.stream});b.indexOf(v)===-1&&this.localStreams.indexOf(v)>-1&&this.localStreams.splice(this.localStreams.indexOf(v),1),this._maybeFireNegotiationNeeded()},h.prototype.removeStream=function(y){var g=this;y.getTracks().forEach(function(v){var b=g.getSenders().find(function(E){return E.track===v});b&&g.removeTrack(b)})},h.prototype.getSenders=function(){return this.transceivers.filter(function(y){return!!y.rtpSender}).map(function(y){return y.rtpSender})},h.prototype.getReceivers=function(){return this.transceivers.filter(function(y){return!!y.rtpReceiver}).map(function(y){return y.rtpReceiver})},h.prototype._createIceGatherer=function(y,g){var v=this;if(g&&y>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var b=new f.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(b,"state",{value:"new",writable:!0}),this.transceivers[y].bufferedCandidateEvents=[],this.transceivers[y].bufferCandidates=function(E){var D=!E.candidate||Object.keys(E.candidate).length===0;b.state=D?"completed":"gathering",v.transceivers[y].bufferedCandidateEvents!==null&&v.transceivers[y].bufferedCandidateEvents.push(E)},b.addEventListener("localcandidate",this.transceivers[y].bufferCandidates),b},h.prototype._gather=function(y,g){var v=this,b=this.transceivers[g].iceGatherer;if(!b.onlocalcandidate){var E=this.transceivers[g].bufferedCandidateEvents;this.transceivers[g].bufferedCandidateEvents=null,b.removeEventListener("localcandidate",this.transceivers[g].bufferCandidates),b.onlocalcandidate=function(D){if(!(v.usingBundle&&g>0)){var w=new Event("icecandidate");w.candidate={sdpMid:y,sdpMLineIndex:g};var p=D.candidate,C=!p||Object.keys(p).length===0;if(C)(b.state==="new"||b.state==="gathering")&&(b.state="completed");else{b.state==="new"&&(b.state="gathering"),p.component=1,p.ufrag=b.getLocalParameters().usernameFragment;var S=e.writeCandidate(p);w.candidate=Object.assign(w.candidate,e.parseCandidate(S)),w.candidate.candidate=S,w.candidate.toJSON=function(){return{candidate:w.candidate.candidate,sdpMid:w.candidate.sdpMid,sdpMLineIndex:w.candidate.sdpMLineIndex,usernameFragment:w.candidate.usernameFragment}}}var A=e.getMediaSections(v._localDescription.sdp);C?A[w.candidate.sdpMLineIndex]+=`a=end-of-candidates\r
|
|
169
|
+
`:A[w.candidate.sdpMLineIndex]+="a="+w.candidate.candidate+`\r
|
|
170
|
+
`,v._localDescription.sdp=e.getDescription(v._localDescription.sdp)+A.join("");var j=v.transceivers.every(function(V){return V.iceGatherer&&V.iceGatherer.state==="completed"});v.iceGatheringState!=="gathering"&&(v.iceGatheringState="gathering",v._emitGatheringStateChange()),C||v._dispatchEvent("icecandidate",w),j&&(v._dispatchEvent("icecandidate",new Event("icecandidate")),v.iceGatheringState="complete",v._emitGatheringStateChange())}},f.setTimeout(function(){E.forEach(function(D){b.onlocalcandidate(D)})},0)}},h.prototype._createIceAndDtlsTransports=function(){var y=this,g=new f.RTCIceTransport(null);g.onicestatechange=function(){y._updateIceConnectionState(),y._updateConnectionState()};var v=new f.RTCDtlsTransport(g);return v.ondtlsstatechange=function(){y._updateConnectionState()},v.onerror=function(){Object.defineProperty(v,"state",{value:"failed",writable:!0}),y._updateConnectionState()},{iceTransport:g,dtlsTransport:v}},h.prototype._disposeIceAndDtlsTransports=function(y){var g=this.transceivers[y].iceGatherer;g&&(delete g.onlocalcandidate,delete this.transceivers[y].iceGatherer);var v=this.transceivers[y].iceTransport;v&&(delete v.onicestatechange,delete this.transceivers[y].iceTransport);var b=this.transceivers[y].dtlsTransport;b&&(delete b.ondtlsstatechange,delete b.onerror,delete this.transceivers[y].dtlsTransport)},h.prototype._transceive=function(y,g,v){var b=i(y.localCapabilities,y.remoteCapabilities);g&&y.rtpSender&&(b.encodings=y.sendEncodingParameters,b.rtcp={cname:e.localCName,compound:y.rtcpParameters.compound},y.recvEncodingParameters.length&&(b.rtcp.ssrc=y.recvEncodingParameters[0].ssrc),y.rtpSender.send(b)),v&&y.rtpReceiver&&b.codecs.length>0&&(y.kind==="video"&&y.recvEncodingParameters&&o<15019&&y.recvEncodingParameters.forEach(function(E){delete E.rtx}),y.recvEncodingParameters.length?b.encodings=y.recvEncodingParameters:b.encodings=[{}],b.rtcp={compound:y.rtcpParameters.compound},y.rtcpParameters.cname&&(b.rtcp.cname=y.rtcpParameters.cname),y.sendEncodingParameters.length&&(b.rtcp.ssrc=y.sendEncodingParameters[0].ssrc),y.rtpReceiver.receive(b))},h.prototype.setLocalDescription=function(y){var g=this;if(["offer","answer"].indexOf(y.type)===-1)return Promise.reject(a("TypeError",'Unsupported type "'+y.type+'"'));if(!s("setLocalDescription",y.type,g.signalingState)||g._isClosed)return Promise.reject(a("InvalidStateError","Can not set local "+y.type+" in state "+g.signalingState));var v,b;if(y.type==="offer")v=e.splitSections(y.sdp),b=v.shift(),v.forEach(function(D,w){var p=e.parseRtpParameters(D);g.transceivers[w].localCapabilities=p}),g.transceivers.forEach(function(D,w){g._gather(D.mid,w)});else if(y.type==="answer"){v=e.splitSections(g._remoteDescription.sdp),b=v.shift();var E=e.matchPrefix(b,"a=ice-lite").length>0;v.forEach(function(D,w){var p=g.transceivers[w],C=p.iceGatherer,S=p.iceTransport,A=p.dtlsTransport,j=p.localCapabilities,V=p.remoteCapabilities,z=e.isRejected(D)&&e.matchPrefix(D,"a=bundle-only").length===0;if(!z&&!p.rejected){var L=e.getIceParameters(D,b),F=e.getDtlsParameters(D,b);E&&(F.role="server"),(!g.usingBundle||w===0)&&(g._gather(p.mid,w),S.state==="new"&&S.start(C,L,E?"controlling":"controlled"),A.state==="new"&&A.start(F));var W=i(j,V);g._transceive(p,W.codecs.length>0,!1)}})}return g._localDescription={type:y.type,sdp:y.sdp},y.type==="offer"?g._updateSignalingState("have-local-offer"):g._updateSignalingState("stable"),Promise.resolve()},h.prototype.setRemoteDescription=function(y){var g=this;if(["offer","answer"].indexOf(y.type)===-1)return Promise.reject(a("TypeError",'Unsupported type "'+y.type+'"'));if(!s("setRemoteDescription",y.type,g.signalingState)||g._isClosed)return Promise.reject(a("InvalidStateError","Can not set remote "+y.type+" in state "+g.signalingState));var v={};g.remoteStreams.forEach(function(S){v[S.id]=S});var b=[],E=e.splitSections(y.sdp),D=E.shift(),w=e.matchPrefix(D,"a=ice-lite").length>0,p=e.matchPrefix(D,"a=group:BUNDLE ").length>0;g.usingBundle=p;var C=e.matchPrefix(D,"a=ice-options:")[0];return C?g.canTrickleIceCandidates=C.substr(14).split(" ").indexOf("trickle")>=0:g.canTrickleIceCandidates=!1,E.forEach(function(S,A){var j=e.splitLines(S),V=e.getKind(S),z=e.isRejected(S)&&e.matchPrefix(S,"a=bundle-only").length===0,L=j[0].substr(2).split(" ")[2],F=e.getDirection(S,D),W=e.parseMsid(S),R=e.getMid(S)||e.generateIdentifier();if(z||V==="application"&&(L==="DTLS/SCTP"||L==="UDP/DTLS/SCTP")){g.transceivers[A]={mid:R,kind:V,protocol:L,rejected:!0};return}!z&&g.transceivers[A]&&g.transceivers[A].rejected&&(g.transceivers[A]=g._createTransceiver(V,!0));var O,N,G,J,Z,$,M,U,q,P=e.parseRtpParameters(S),k,H;z||(k=e.getIceParameters(S,D),H=e.getDtlsParameters(S,D),H.role="client"),M=e.parseRtpEncodingParameters(S);var Y=e.parseRtcpParameters(S),ne=e.matchPrefix(S,"a=end-of-candidates",D).length>0,re=e.matchPrefix(S,"a=candidate:").map(function(_){return e.parseCandidate(_)}).filter(function(_){return _.component===1});if((y.type==="offer"||y.type==="answer")&&!z&&p&&A>0&&g.transceivers[A]&&(g._disposeIceAndDtlsTransports(A),g.transceivers[A].iceGatherer=g.transceivers[0].iceGatherer,g.transceivers[A].iceTransport=g.transceivers[0].iceTransport,g.transceivers[A].dtlsTransport=g.transceivers[0].dtlsTransport,g.transceivers[A].rtpSender&&g.transceivers[A].rtpSender.setTransport(g.transceivers[0].dtlsTransport),g.transceivers[A].rtpReceiver&&g.transceivers[A].rtpReceiver.setTransport(g.transceivers[0].dtlsTransport)),y.type==="offer"&&!z){O=g.transceivers[A]||g._createTransceiver(V),O.mid=R,O.iceGatherer||(O.iceGatherer=g._createIceGatherer(A,p)),re.length&&O.iceTransport.state==="new"&&(ne&&(!p||A===0)?O.iceTransport.setRemoteCandidates(re):re.forEach(function(_){u(O.iceTransport,_)})),U=f.RTCRtpReceiver.getCapabilities(V),o<15019&&(U.codecs=U.codecs.filter(function(_){return _.name!=="rtx"})),$=O.sendEncodingParameters||[{ssrc:(2*A+2)*1001}];var oe=!1;if(F==="sendrecv"||F==="sendonly"){if(oe=!O.rtpReceiver,Z=O.rtpReceiver||new f.RTCRtpReceiver(O.dtlsTransport,V),oe){var fe;q=Z.track,W&&W.stream==="-"||(W?(v[W.stream]||(v[W.stream]=new f.MediaStream,Object.defineProperty(v[W.stream],"id",{get:function(){return W.stream}})),Object.defineProperty(q,"id",{get:function(){return W.track}}),fe=v[W.stream]):(v.default||(v.default=new f.MediaStream),fe=v.default)),fe&&(c(q,fe),O.associatedRemoteMediaStreams.push(fe)),b.push([q,Z,fe])}}else O.rtpReceiver&&O.rtpReceiver.track&&(O.associatedRemoteMediaStreams.forEach(function(_){var B=_.getTracks().find(function(T){return T.id===O.rtpReceiver.track.id});B&&l(B,_)}),O.associatedRemoteMediaStreams=[]);O.localCapabilities=U,O.remoteCapabilities=P,O.rtpReceiver=Z,O.rtcpParameters=Y,O.sendEncodingParameters=$,O.recvEncodingParameters=M,g._transceive(g.transceivers[A],!1,oe)}else if(y.type==="answer"&&!z){O=g.transceivers[A],N=O.iceGatherer,G=O.iceTransport,J=O.dtlsTransport,Z=O.rtpReceiver,$=O.sendEncodingParameters,U=O.localCapabilities,g.transceivers[A].recvEncodingParameters=M,g.transceivers[A].remoteCapabilities=P,g.transceivers[A].rtcpParameters=Y,re.length&&G.state==="new"&&((w||ne)&&(!p||A===0)?G.setRemoteCandidates(re):re.forEach(function(_){u(O.iceTransport,_)})),(!p||A===0)&&(G.state==="new"&&G.start(N,k,"controlling"),J.state==="new"&&J.start(H));var he=i(O.localCapabilities,O.remoteCapabilities),I=he.codecs.filter(function(_){return _.name.toLowerCase()==="rtx"}).length;!I&&O.sendEncodingParameters[0].rtx&&delete O.sendEncodingParameters[0].rtx,g._transceive(O,F==="sendrecv"||F==="recvonly",F==="sendrecv"||F==="sendonly"),Z&&(F==="sendrecv"||F==="sendonly")?(q=Z.track,W?(v[W.stream]||(v[W.stream]=new f.MediaStream),c(q,v[W.stream]),b.push([q,Z,v[W.stream]])):(v.default||(v.default=new f.MediaStream),c(q,v.default),b.push([q,Z,v.default]))):delete O.rtpReceiver}}),g._dtlsRole===void 0&&(g._dtlsRole=y.type==="offer"?"active":"passive"),g._remoteDescription={type:y.type,sdp:y.sdp},y.type==="offer"?g._updateSignalingState("have-remote-offer"):g._updateSignalingState("stable"),Object.keys(v).forEach(function(S){var A=v[S];if(A.getTracks().length){if(g.remoteStreams.indexOf(A)===-1){g.remoteStreams.push(A);var j=new Event("addstream");j.stream=A,f.setTimeout(function(){g._dispatchEvent("addstream",j)})}b.forEach(function(V){var z=V[0],L=V[1];A.id===V[2].id&&d(g,z,L,[A])})}}),b.forEach(function(S){S[2]||d(g,S[0],S[1],[])}),f.setTimeout(function(){g&&g.transceivers&&g.transceivers.forEach(function(S){S.iceTransport&&S.iceTransport.state==="new"&&S.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),S.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},h.prototype.close=function(){this.transceivers.forEach(function(y){y.iceTransport&&y.iceTransport.stop(),y.dtlsTransport&&y.dtlsTransport.stop(),y.rtpSender&&y.rtpSender.stop(),y.rtpReceiver&&y.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},h.prototype._updateSignalingState=function(y){this.signalingState=y;var g=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",g)},h.prototype._maybeFireNegotiationNeeded=function(){var y=this;this.signalingState!=="stable"||this.needNegotiation===!0||(this.needNegotiation=!0,f.setTimeout(function(){if(y.needNegotiation){y.needNegotiation=!1;var g=new Event("negotiationneeded");y._dispatchEvent("negotiationneeded",g)}},0))},h.prototype._updateIceConnectionState=function(){var y,g={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(b){b.iceTransport&&!b.rejected&&g[b.iceTransport.state]++}),y="new",g.failed>0?y="failed":g.checking>0?y="checking":g.disconnected>0?y="disconnected":g.new>0?y="new":g.connected>0?y="connected":g.completed>0&&(y="completed"),y!==this.iceConnectionState){this.iceConnectionState=y;var v=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",v)}},h.prototype._updateConnectionState=function(){var y,g={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(b){b.iceTransport&&b.dtlsTransport&&!b.rejected&&(g[b.iceTransport.state]++,g[b.dtlsTransport.state]++)}),g.connected+=g.completed,y="new",g.failed>0?y="failed":g.connecting>0?y="connecting":g.disconnected>0?y="disconnected":g.new>0?y="new":g.connected>0&&(y="connected"),y!==this.connectionState){this.connectionState=y;var v=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",v)}},h.prototype.createOffer=function(){var y=this;if(y._isClosed)return Promise.reject(a("InvalidStateError","Can not call createOffer after close"));var g=y.transceivers.filter(function(w){return w.kind==="audio"}).length,v=y.transceivers.filter(function(w){return w.kind==="video"}).length,b=arguments[0];if(b){if(b.mandatory||b.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");b.offerToReceiveAudio!==void 0&&(b.offerToReceiveAudio===!0?g=1:b.offerToReceiveAudio===!1?g=0:g=b.offerToReceiveAudio),b.offerToReceiveVideo!==void 0&&(b.offerToReceiveVideo===!0?v=1:b.offerToReceiveVideo===!1?v=0:v=b.offerToReceiveVideo)}for(y.transceivers.forEach(function(w){w.kind==="audio"?(g--,g<0&&(w.wantReceive=!1)):w.kind==="video"&&(v--,v<0&&(w.wantReceive=!1))});g>0||v>0;)g>0&&(y._createTransceiver("audio"),g--),v>0&&(y._createTransceiver("video"),v--);var E=e.writeSessionBoilerplate(y._sdpSessionId,y._sdpSessionVersion++);y.transceivers.forEach(function(w,p){var C=w.track,S=w.kind,A=w.mid||e.generateIdentifier();w.mid=A,w.iceGatherer||(w.iceGatherer=y._createIceGatherer(p,y.usingBundle));var j=f.RTCRtpSender.getCapabilities(S);o<15019&&(j.codecs=j.codecs.filter(function(z){return z.name!=="rtx"})),j.codecs.forEach(function(z){z.name==="H264"&&z.parameters["level-asymmetry-allowed"]===void 0&&(z.parameters["level-asymmetry-allowed"]="1"),w.remoteCapabilities&&w.remoteCapabilities.codecs&&w.remoteCapabilities.codecs.forEach(function(L){z.name.toLowerCase()===L.name.toLowerCase()&&z.clockRate===L.clockRate&&(z.preferredPayloadType=L.payloadType)})}),j.headerExtensions.forEach(function(z){var L=w.remoteCapabilities&&w.remoteCapabilities.headerExtensions||[];L.forEach(function(F){z.uri===F.uri&&(z.id=F.id)})});var V=w.sendEncodingParameters||[{ssrc:(2*p+1)*1001}];C&&o>=15019&&S==="video"&&!V[0].rtx&&(V[0].rtx={ssrc:V[0].ssrc+1}),w.wantReceive&&(w.rtpReceiver=new f.RTCRtpReceiver(w.dtlsTransport,S)),w.localCapabilities=j,w.sendEncodingParameters=V}),y._config.bundlePolicy!=="max-compat"&&(E+="a=group:BUNDLE "+y.transceivers.map(function(w){return w.mid}).join(" ")+`\r
|
|
171
|
+
`),E+=`a=ice-options:trickle\r
|
|
172
|
+
`,y.transceivers.forEach(function(w,p){E+=t(w,w.localCapabilities,"offer",w.stream,y._dtlsRole),E+=`a=rtcp-rsize\r
|
|
173
|
+
`,w.iceGatherer&&y.iceGatheringState!=="new"&&(p===0||!y.usingBundle)&&(w.iceGatherer.getLocalCandidates().forEach(function(C){C.component=1,E+="a="+e.writeCandidate(C)+`\r
|
|
174
|
+
`}),w.iceGatherer.state==="completed"&&(E+=`a=end-of-candidates\r
|
|
175
|
+
`))});var D=new f.RTCSessionDescription({type:"offer",sdp:E});return Promise.resolve(D)},h.prototype.createAnswer=function(){var y=this;if(y._isClosed)return Promise.reject(a("InvalidStateError","Can not call createAnswer after close"));if(!(y.signalingState==="have-remote-offer"||y.signalingState==="have-local-pranswer"))return Promise.reject(a("InvalidStateError","Can not call createAnswer in signalingState "+y.signalingState));var g=e.writeSessionBoilerplate(y._sdpSessionId,y._sdpSessionVersion++);y.usingBundle&&(g+="a=group:BUNDLE "+y.transceivers.map(function(E){return E.mid}).join(" ")+`\r
|
|
176
|
+
`),g+=`a=ice-options:trickle\r
|
|
177
|
+
`;var v=e.getMediaSections(y._remoteDescription.sdp).length;y.transceivers.forEach(function(E,D){if(!(D+1>v)){if(E.rejected){E.kind==="application"?E.protocol==="DTLS/SCTP"?g+=`m=application 0 DTLS/SCTP 5000\r
|
|
178
|
+
`:g+="m=application 0 "+E.protocol+` webrtc-datachannel\r
|
|
179
|
+
`:E.kind==="audio"?g+=`m=audio 0 UDP/TLS/RTP/SAVPF 0\r
|
|
180
|
+
a=rtpmap:0 PCMU/8000\r
|
|
181
|
+
`:E.kind==="video"&&(g+=`m=video 0 UDP/TLS/RTP/SAVPF 120\r
|
|
182
|
+
a=rtpmap:120 VP8/90000\r
|
|
183
|
+
`),g+=`c=IN IP4 0.0.0.0\r
|
|
184
|
+
a=inactive\r
|
|
185
|
+
a=mid:`+E.mid+`\r
|
|
186
|
+
`;return}if(E.stream){var w;E.kind==="audio"?w=E.stream.getAudioTracks()[0]:E.kind==="video"&&(w=E.stream.getVideoTracks()[0]),w&&o>=15019&&E.kind==="video"&&!E.sendEncodingParameters[0].rtx&&(E.sendEncodingParameters[0].rtx={ssrc:E.sendEncodingParameters[0].ssrc+1})}var p=i(E.localCapabilities,E.remoteCapabilities),C=p.codecs.filter(function(S){return S.name.toLowerCase()==="rtx"}).length;!C&&E.sendEncodingParameters[0].rtx&&delete E.sendEncodingParameters[0].rtx,g+=t(E,p,"answer",E.stream,y._dtlsRole),E.rtcpParameters&&E.rtcpParameters.reducedSize&&(g+=`a=rtcp-rsize\r
|
|
187
|
+
`)}});var b=new f.RTCSessionDescription({type:"answer",sdp:g});return Promise.resolve(b)},h.prototype.addIceCandidate=function(y){var g=this,v;return y&&!(y.sdpMLineIndex!==void 0||y.sdpMid)?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(b,E){if(g._remoteDescription)if(!y||y.candidate==="")for(var D=0;D<g.transceivers.length&&!(!g.transceivers[D].rejected&&(g.transceivers[D].iceTransport.addRemoteCandidate({}),v=e.getMediaSections(g._remoteDescription.sdp),v[D]+=`a=end-of-candidates\r
|
|
188
|
+
`,g._remoteDescription.sdp=e.getDescription(g._remoteDescription.sdp)+v.join(""),g.usingBundle));D++);else{var w=y.sdpMLineIndex;if(y.sdpMid){for(var p=0;p<g.transceivers.length;p++)if(g.transceivers[p].mid===y.sdpMid){w=p;break}}var C=g.transceivers[w];if(C){if(C.rejected)return b();var S=Object.keys(y.candidate).length>0?e.parseCandidate(y.candidate):{};if(S.protocol==="tcp"&&(S.port===0||S.port===9)||S.component&&S.component!==1)return b();if((w===0||w>0&&C.iceTransport!==g.transceivers[0].iceTransport)&&!u(C.iceTransport,S))return E(a("OperationError","Can not add ICE candidate"));var A=y.candidate.trim();A.indexOf("a=")===0&&(A=A.substr(2)),v=e.getMediaSections(g._remoteDescription.sdp),v[w]+="a="+(S.type?A:"end-of-candidates")+`\r
|
|
189
|
+
`,g._remoteDescription.sdp=e.getDescription(g._remoteDescription.sdp)+v.join("")}else return E(a("OperationError","Can not add ICE candidate"))}else return E(a("InvalidStateError","Can not add ICE candidate without a remote description"));b()})},h.prototype.getStats=function(y){if(y&&y instanceof f.MediaStreamTrack){var g=null;if(this.transceivers.forEach(function(b){b.rtpSender&&b.rtpSender.track===y?g=b.rtpSender:b.rtpReceiver&&b.rtpReceiver.track===y&&(g=b.rtpReceiver)}),!g)throw a("InvalidAccessError","Invalid selector.");return g.getStats()}var v=[];return this.transceivers.forEach(function(b){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(E){b[E]&&v.push(b[E].getStats())})}),Promise.all(v).then(function(b){var E=new Map;return b.forEach(function(D){D.forEach(function(w){E.set(w.id,w)})}),E})};var m=["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"];m.forEach(function(y){var g=f[y];if(g&&g.prototype&&g.prototype.getStats){var v=g.prototype.getStats;g.prototype.getStats=function(){return v.apply(this).then(function(b){var E=new Map;return Object.keys(b).forEach(function(D){b[D].type=n(b[D]),E.set(D,b[D])}),E})}}});var x=["createOffer","createAnswer"];return x.forEach(function(y){var g=h.prototype[y];h.prototype[y]=function(){var v=arguments;return typeof v[0]=="function"||typeof v[1]=="function"?g.apply(this,[arguments[2]]).then(function(b){typeof v[0]=="function"&&v[0].apply(null,[b])},function(b){typeof v[1]=="function"&&v[1].apply(null,[b])}):g.apply(this,arguments)}}),x=["setLocalDescription","setRemoteDescription","addIceCandidate"],x.forEach(function(y){var g=h.prototype[y];h.prototype[y]=function(){var v=arguments;return typeof v[1]=="function"||typeof v[2]=="function"?g.apply(this,arguments).then(function(){typeof v[1]=="function"&&v[1].apply(null)},function(b){typeof v[2]=="function"&&v[2].apply(null,[b])}):g.apply(this,arguments)}}),["getStats"].forEach(function(y){var g=h.prototype[y];h.prototype[y]=function(){var v=arguments;return typeof v[1]=="function"?g.apply(this,arguments).then(function(){typeof v[1]=="function"&&v[1].apply(null)}):g.apply(this,arguments)}}),h},Co}var o5=i5();const a5=Oc(o5);function Bf(e){const n=e&&e.navigator,t=function(i){return{name:{PermissionDeniedError:"NotAllowedError"}[i.name]||i.name,message:i.message,constraint:i.constraint,toString(){return this.name}}},r=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(i){return r(i).catch(s=>Promise.reject(t(s)))}}function wf(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function ta(e,n){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(i){return i}),e.RTCSessionDescription||(e.RTCSessionDescription=function(i){return i}),n.version<15025)){const r=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(i){r.set.call(this,i);const s=new Event("enabled");s.enabled=i,this.dispatchEvent(s)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=new e.RTCDtmfSender(this):this.track.kind==="video"&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const t=a5(e,n.version);e.RTCPeerConnection=function(i){return i&&i.iceServers&&(i.iceServers=n5(i.iceServers,n.version),Pa("ICE servers after filtering:",i.iceServers)),new t(i)},e.RTCPeerConnection.prototype=t.prototype}function Sf(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}const z0=Object.freeze(Object.defineProperty({__proto__:null,shimGetDisplayMedia:wf,shimGetUserMedia:Bf,shimPeerConnection:ta,shimReplaceTrack:Sf},Symbol.toStringTag,{value:"Module"}));function Ef(e,n){const t=e&&e.navigator,r=e&&e.MediaStreamTrack;if(t.getUserMedia=function(i,s,u){pn("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(i).then(s,u)},!(n.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){const i=function(u,a,f){a in u&&!(f in u)&&(u[f]=u[a],delete u[a])},s=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(u){return typeof u=="object"&&typeof u.audio=="object"&&(u=JSON.parse(JSON.stringify(u)),i(u.audio,"autoGainControl","mozAutoGainControl"),i(u.audio,"noiseSuppression","mozNoiseSuppression")),s(u)},r&&r.prototype.getSettings){const u=r.prototype.getSettings;r.prototype.getSettings=function(){const a=u.apply(this,arguments);return i(a,"mozAutoGainControl","autoGainControl"),i(a,"mozNoiseSuppression","noiseSuppression"),a}}if(r&&r.prototype.applyConstraints){const u=r.prototype.applyConstraints;r.prototype.applyConstraints=function(a){return this.kind==="audio"&&typeof a=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a,"autoGainControl","mozAutoGainControl"),i(a,"noiseSuppression","mozNoiseSuppression")),u.apply(this,[a])}}}}function s5(e,n){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:n}:r.video.mediaSource=n,e.navigator.mediaDevices.getUserMedia(r)})}function Pf(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ra(e,n){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const s=e.RTCPeerConnection.prototype[i],u={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),s.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=u[i]});const t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[s,u,a]=arguments;return r.apply(this,[s||null]).then(f=>{if(n.version<53&&!u)try{f.forEach(o=>{o.type=t[o.type]||o.type})}catch(o){if(o.name!=="TypeError")throw o;f.forEach((c,l)=>{f.set(l,Object.assign({},c,{type:t[c.type]||c.type}))})}return f}).then(u,a)}}function kf(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=n.apply(this,[]);return i.forEach(s=>s._pc=this),i});const t=e.RTCPeerConnection.prototype.addTrack;t&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=t.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Tf(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=n.apply(this,[]);return r.forEach(i=>i._pc=this),r}),It(e,"track",t=>(t.receiver._pc=t.srcElement,t)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Rf(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(t){pn("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&t.getTracks().includes(r.track)&&this.removeTrack(r)})})}function If(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Df(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.addTransceiver;n&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const r=arguments[1],i=r&&"sendEncodings"in r;i&&r.sendEncodings.forEach(u=>{if("rid"in u&&!/^[a-z0-9]{0,16}$/i.test(u.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in u&&!(parseFloat(u.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in u&&!(parseFloat(u.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const s=n.apply(this,arguments);if(i){const{sender:u}=s,a=u.getParameters();(!("encodings"in a)||a.encodings.length===1&&Object.keys(a.encodings[0]).length===0)&&(a.encodings=r.sendEncodings,u.sendEncodings=r.sendEncodings,this.setParametersPromises.push(u.setParameters(a).then(()=>{delete u.sendEncodings}).catch(()=>{delete u.sendEncodings})))}return s})}function Of(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const n=e.RTCRtpSender.prototype.getParameters;n&&(e.RTCRtpSender.prototype.getParameters=function(){const r=n.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function Af(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}function Mf(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}const G0=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:Df,shimCreateAnswer:Mf,shimCreateOffer:Af,shimGetDisplayMedia:s5,shimGetParameters:Of,shimGetUserMedia:Ef,shimOnTrack:Pf,shimPeerConnection:ra,shimRTCDataChannel:If,shimReceiverGetStats:Tf,shimRemoveStream:Rf,shimSenderGetStats:kf},Symbol.toStringTag,{value:"Module"}));function Uf(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>n.call(this,i,r)),r.getVideoTracks().forEach(i=>n.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(s=>{this._localStreams?this._localStreams.includes(s)||this._localStreams.push(s):this._localStreams=[s]}),n.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(t){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(t);if(r===-1)return;this._localStreams.splice(r,1);const i=t.getTracks();this.getSenders().forEach(s=>{i.includes(s.track)&&this.removeTrack(s)})})}}function Lf(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(t){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=t),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const s=new Event("addstream");s.stream=i,this.dispatchEvent(s)})})}});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(s=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(s)>=0)return;r._remoteStreams.push(s);const u=new Event("addstream");u.stream=s,r.dispatchEvent(u)})}),n.apply(r,arguments)}}}function jf(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,t=n.createOffer,r=n.createAnswer,i=n.setLocalDescription,s=n.setRemoteDescription,u=n.addIceCandidate;n.createOffer=function(o,c){const l=arguments.length>=2?arguments[2]:arguments[0],d=t.apply(this,[l]);return c?(d.then(o,c),Promise.resolve()):d},n.createAnswer=function(o,c){const l=arguments.length>=2?arguments[2]:arguments[0],d=r.apply(this,[l]);return c?(d.then(o,c),Promise.resolve()):d};let a=function(f,o,c){const l=i.apply(this,[f]);return c?(l.then(o,c),Promise.resolve()):l};n.setLocalDescription=a,a=function(f,o,c){const l=s.apply(this,[f]);return c?(l.then(o,c),Promise.resolve()):l},n.setRemoteDescription=a,a=function(f,o,c){const l=u.apply(this,[f]);return c?(l.then(o,c),Promise.resolve()):l},n.addIceCandidate=a}function Nf(e){const n=e&&e.navigator;if(n.mediaDevices&&n.mediaDevices.getUserMedia){const t=n.mediaDevices,r=t.getUserMedia.bind(t);n.mediaDevices.getUserMedia=i=>r(Ff(i))}!n.getUserMedia&&n.mediaDevices&&n.mediaDevices.getUserMedia&&(n.getUserMedia=(function(r,i,s){n.mediaDevices.getUserMedia(r).then(i,s)}).bind(n))}function Ff(e){return e&&e.video!==void 0?Object.assign({},e,{video:df(e.video)}):e}function qf(e){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const s=[];for(let u=0;u<r.iceServers.length;u++){let a=r.iceServers[u];!a.hasOwnProperty("urls")&&a.hasOwnProperty("url")?(pn("RTCIceServer.url","RTCIceServer.urls"),a=JSON.parse(JSON.stringify(a)),a.urls=a.url,delete a.url,s.push(a)):s.push(r.iceServers[u])}r.iceServers=s}return new n(r,i)},e.RTCPeerConnection.prototype=n.prototype,"generateCertificate"in n&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return n.generateCertificate}})}function $f(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Hf(e){const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const i=this.getTransceivers().find(u=>u.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio"),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const s=this.getTransceivers().find(u=>u.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveVideo===!0&&!s&&this.addTransceiver("video")}return n.apply(this,arguments)}}function Kf(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const W0=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Kf,shimCallbacksAPI:jf,shimConstraints:Ff,shimCreateOfferLegacy:Hf,shimGetUserMedia:Nf,shimLocalStreamsAPI:Uf,shimRTCIceServerUrls:qf,shimRemoteStreamsAPI:Lf,shimTrackEventTransceiver:$f},Symbol.toStringTag,{value:"Module"}));var c5=_f();const Vr=Oc(c5);function Yr(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const n=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substr(2)),r.candidate&&r.candidate.length){const i=new n(r),s=Vr.parseCandidate(r.candidate),u=Object.assign(i,s);return u.toJSON=function(){return{candidate:u.candidate,sdpMid:u.sdpMid,sdpMLineIndex:u.sdpMLineIndex,usernameFragment:u.usernameFragment}},u}return new n(r)},e.RTCIceCandidate.prototype=n.prototype,It(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function gr(e,n){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const t=function(a){if(!a||!a.sdp)return!1;const f=Vr.splitSections(a.sdp);return f.shift(),f.some(o=>{const c=Vr.parseMLine(o);return c&&c.kind==="application"&&c.protocol.indexOf("SCTP")!==-1})},r=function(a){const f=a.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(f===null||f.length<2)return-1;const o=parseInt(f[1],10);return o!==o?-1:o},i=function(a){let f=65536;return n.browser==="firefox"&&(n.version<57?a===-1?f=16384:f=2147483637:n.version<60?f=n.version===57?65535:65536:f=2147483637),f},s=function(a,f){let o=65536;n.browser==="firefox"&&n.version===57&&(o=65535);const c=Vr.matchPrefix(a.sdp,"a=max-message-size:");return c.length>0?o=parseInt(c[0].substr(19),10):n.browser==="firefox"&&f!==-1&&(o=2147483637),o},u=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,n.browser==="chrome"&&n.version>=76){const{sdpSemantics:f}=this.getConfiguration();f==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(t(arguments[0])){const f=r(arguments[0]),o=i(f),c=s(arguments[0],f);let l;o===0&&c===0?l=Number.POSITIVE_INFINITY:o===0||c===0?l=Math.max(o,c):l=Math.min(o,c);const d={};Object.defineProperty(d,"maxMessageSize",{get(){return l}}),this._sctp=d}return u.apply(this,arguments)}}function yr(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function n(r,i){const s=r.send;r.send=function(){const a=arguments[0],f=a.length||a.size||a.byteLength;if(r.readyState==="open"&&i.sctp&&f>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return s.apply(r,arguments)}}const t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=t.apply(this,arguments);return n(i,this),i},It(e,"datachannel",r=>(n(r.channel,r.target),r))}function na(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype;Object.defineProperty(n,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(n,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(t){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),t&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=t)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(t=>{const r=n[t];n[t]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const s=i.target;if(s._lastConnectionState!==s.connectionState){s._lastConnectionState=s.connectionState;const u=new Event("connectionstatechange",i);s.dispatchEvent(u)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function ia(e,n){if(!e.RTCPeerConnection||n.browser==="chrome"&&n.version>=71||n.browser==="safari"&&n.version>=605)return;const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
|
|
190
|
+
a=extmap-allow-mixed`)!==-1){const s=i.sdp.split(`
|
|
191
|
+
`).filter(u=>u.trim()!=="a=extmap-allow-mixed").join(`
|
|
192
|
+
`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:s}):i.sdp=s}return t.apply(this,arguments)}}function Xr(e,n){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const t=e.RTCPeerConnection.prototype.addIceCandidate;!t||t.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(n.browser==="chrome"&&n.version<78||n.browser==="firefox"&&n.version<68||n.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}const u5=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:ia,shimAddIceCandidateNullOrEmpty:Xr,shimConnectionState:na,shimMaxMessageSize:gr,shimRTCIceCandidate:Yr,shimSendThrowTypeError:yr},Symbol.toStringTag,{value:"Module"}));function f5({window:e}={},n={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const t=Pa,r=t5(e),i={browserDetails:r,commonShim:u5,extractVersion:pr,disableLog:Zd,disableWarnings:e5};switch(r.browser){case"chrome":if(!$0||!ea||!n.shimChrome)return t("Chrome shim is not included in this adapter release."),i;if(r.version===null)return t("Chrome shim can not determine version, not shimming."),i;t("adapter.js shimming chrome."),i.browserShim=$0,Xr(e,r),hf(e,r),pf(e),ea(e,r),gf(e),bf(e,r),yf(e),mf(e),vf(e),Cf(e,r),Yr(e),na(e),gr(e,r),yr(e),ia(e,r);break;case"firefox":if(!G0||!ra||!n.shimFirefox)return t("Firefox shim is not included in this adapter release."),i;t("adapter.js shimming firefox."),i.browserShim=G0,Xr(e,r),Ef(e,r),ra(e,r),Pf(e),Rf(e),kf(e),Tf(e),If(e),Df(e),Of(e),Af(e),Mf(e),Yr(e),na(e),gr(e,r),yr(e);break;case"edge":if(!z0||!ta||!n.shimEdge)return t("MS edge shim is not included in this adapter release."),i;t("adapter.js shimming edge."),i.browserShim=z0,Bf(e),wf(e),ta(e,r),Sf(e),gr(e,r),yr(e);break;case"safari":if(!W0||!n.shimSafari)return t("Safari shim is not included in this adapter release."),i;t("adapter.js shimming safari."),i.browserShim=W0,Xr(e,r),qf(e),Hf(e),jf(e),Uf(e),Lf(e),$f(e),Nf(e),Kf(e),Yr(e),gr(e,r),yr(e),ia(e,r);break;default:t("Unsupported browser!");break}return i}f5({window:typeof window>"u"?void 0:window});var _o,V0;function l5(){if(V0)return _o;V0=1;var e=Object.assign||function(y){for(var g=1;g<arguments.length;g++){var v=arguments[g];for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(y[b]=v[b])}return y},n=function(){function y(g,v){for(var b=0;b<v.length;b++){var E=v[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,E.key,E)}}return function(g,v,b){return v&&y(g.prototype,v),b&&y(g,b),g}}(),t,r;function i(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function s(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function u(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var a=Et(),f=a.Component,o=ba(),c=Xd(),l=c.getDeviceId;c.getFacingModePattern;var d=Qd(),h=Jd(),m=h([`!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.jsQR=e():o.jsQR=e()}("undefined"!=typeof self?self:this,function(){return function(o){function e(t){if(r[t])return r[t].exports;var c=r[t]={i:t,l:!1,exports:{}};return o[t].call(c.exports,c,c.exports,e),c.l=!0,c.exports}var r={};return e.m=o,e.c=r,e.d=function(o,r,t){e.o(o,r)||Object.defineProperty(o,r,{configurable:!1,enumerable:!0,get:t})},e.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(r,"a",r),r},e.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},e.p="",e(e.s=3)}([function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function o(o,e){this.width=e,this.height=o.length/e,this.data=o}return o.createEmpty=function(e,r){return new o(new Uint8ClampedArray(e*r),e)},o.prototype.get=function(o,e){return!(o<0||o>=this.width||e<0||e>=this.height)&&!!this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r?1:0},o.prototype.setRegion=function(o,e,r,t,c){for(var s=e;s<e+t;s++)for(var a=o;a<o+r;a++)this.set(a,s,!!c)},o}();e.BitMatrix=t},function(o,e,r){"use strict";function t(o,e){return o^e}Object.defineProperty(e,"__esModule",{value:!0});var c=r(2);e.addOrSubtractGF=t;var s=function(){function o(o,e,r){this.primitive=o,this.size=e,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var t=1,s=0;s<this.size;s++)this.expTable[s]=t,(t*=2)>=this.size&&(t=(t^this.primitive)&this.size-1);for(var s=0;s<this.size-1;s++)this.logTable[this.expTable[s]]=s;this.zero=new c.default(this,Uint8ClampedArray.from([0])),this.one=new c.default(this,Uint8ClampedArray.from([1]))}return o.prototype.multiply=function(o,e){return 0===o||0===e?0:this.expTable[(this.logTable[o]+this.logTable[e])%(this.size-1)]},o.prototype.inverse=function(o){if(0===o)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[o]-1]},o.prototype.buildMonomial=function(o,e){if(o<0)throw new Error("Invalid monomial degree less than 0");if(0===e)return this.zero;var r=new Uint8ClampedArray(o+1);return r[0]=e,new c.default(this,r)},o.prototype.log=function(o){if(0===o)throw new Error("Can't take log(0)");return this.logTable[o]},o.prototype.exp=function(o){return this.expTable[o]},o}();e.default=s},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=r(1),c=function(){function o(o,e){if(0===e.length)throw new Error("No coefficients.");this.field=o;var r=e.length;if(r>1&&0===e[0]){for(var t=1;t<r&&0===e[t];)t++;if(t===r)this.coefficients=o.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-t);for(var c=0;c<this.coefficients.length;c++)this.coefficients[c]=e[t+c]}}else this.coefficients=e}return o.prototype.degree=function(){return this.coefficients.length-1},o.prototype.isZero=function(){return 0===this.coefficients[0]},o.prototype.getCoefficient=function(o){return this.coefficients[this.coefficients.length-1-o]},o.prototype.addOrSubtract=function(e){if(this.isZero())return e;if(e.isZero())return this;var r=this.coefficients,c=e.coefficients;r.length>c.length&&(n=[c,r],r=n[0],c=n[1]);for(var s=new Uint8ClampedArray(c.length),a=c.length-r.length,d=0;d<a;d++)s[d]=c[d];for(var d=a;d<c.length;d++)s[d]=t.addOrSubtractGF(r[d-a],c[d]);return new o(this.field,s);var n},o.prototype.multiply=function(e){if(0===e)return this.field.zero;if(1===e)return this;for(var r=this.coefficients.length,t=new Uint8ClampedArray(r),c=0;c<r;c++)t[c]=this.field.multiply(this.coefficients[c],e);return new o(this.field,t)},o.prototype.multiplyPoly=function(e){if(this.isZero()||e.isZero())return this.field.zero;for(var r=this.coefficients,c=r.length,s=e.coefficients,a=s.length,d=new Uint8ClampedArray(c+a-1),n=0;n<c;n++)for(var l=r[n],i=0;i<a;i++)d[n+i]=t.addOrSubtractGF(d[n+i],this.field.multiply(l,s[i]));return new o(this.field,d)},o.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new Error("Invalid degree less than 0");if(0===r)return this.field.zero;for(var t=this.coefficients.length,c=new Uint8ClampedArray(t+e),s=0;s<t;s++)c[s]=this.field.multiply(this.coefficients[s],r);return new o(this.field,c)},o.prototype.evaluateAt=function(o){var e=0;if(0===o)return this.getCoefficient(0);var r=this.coefficients.length;if(1===o)return this.coefficients.forEach(function(o){e=t.addOrSubtractGF(e,o)}),e;e=this.coefficients[0];for(var c=1;c<r;c++)e=t.addOrSubtractGF(this.field.multiply(o,e),this.coefficients[c]);return e},o}();e.default=c},function(o,e,r){"use strict";function t(o){var e=n.locate(o);if(!e)return null;var r=d.extract(o,e),t=a.decode(r.matrix);return t?{binaryData:t.bytes,data:t.text,chunks:t.chunks,location:{topRightCorner:r.mappingFunction(e.dimension,0),topLeftCorner:r.mappingFunction(0,0),bottomRightCorner:r.mappingFunction(e.dimension,e.dimension),bottomLeftCorner:r.mappingFunction(0,e.dimension),topRightFinderPattern:e.topRight,topLeftFinderPattern:e.topLeft,bottomLeftFinderPattern:e.bottomLeft,bottomRightAlignmentPattern:e.alignmentPattern}}:null}function c(o,e,r,c){void 0===c&&(c={});var a=l;Object.keys(a||{}).forEach(function(o){a[o]=c[o]||a[o]});var d="attemptBoth"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,n="onlyInvert"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,i=s.binarize(o,e,r,d),B=i.binarized,k=i.inverted,u=t(n?k:B);return u||"attemptBoth"!==a.inversionAttempts&&"invertFirst"!==a.inversionAttempts||(u=t(n?B:k)),u}Object.defineProperty(e,"__esModule",{value:!0});var s=r(4),a=r(5),d=r(11),n=r(12),l={inversionAttempts:"attemptBoth"};c.default=c,e.default=c},function(o,e,r){"use strict";function t(o,e,r){return o<e?e:o>r?r:o}function c(o,e,r,c){if(o.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var l=new n(e,r),i=0;i<e;i++)for(var B=0;B<r;B++){var k=o[4*(B*e+i)+0],u=o[4*(B*e+i)+1],C=o[4*(B*e+i)+2];l.set(i,B,.2126*k+.7152*u+.0722*C)}for(var m=Math.ceil(e/a),f=Math.ceil(r/a),w=new n(m,f),P=0;P<f;P++)for(var v=0;v<m;v++){for(var h=0,p=1/0,y=0,B=0;B<a;B++)for(var i=0;i<a;i++){var b=l.get(v*a+i,P*a+B);h+=b,p=Math.min(p,b),y=Math.max(y,b)}var g=h/Math.pow(a,2);if(y-p<=d&&(g=p/2,P>0&&v>0)){var x=(w.get(v,P-1)+2*w.get(v-1,P)+w.get(v-1,P-1))/4;p<x&&(g=x)}w.set(v,P,g)}var M=s.BitMatrix.createEmpty(e,r),L=null;c&&(L=s.BitMatrix.createEmpty(e,r));for(var P=0;P<f;P++)for(var v=0;v<m;v++){for(var N=t(v,2,m-3),I=t(P,2,f-3),h=0,O=-2;O<=2;O++)for(var z=-2;z<=2;z++)h+=w.get(N+O,I+z);for(var S=h/25,O=0;O<a;O++)for(var z=0;z<a;z++){var i=v*a+O,B=P*a+z,X=l.get(i,B);M.set(i,B,X<=S),c&&L.set(i,B,!(X<=S))}}return c?{binarized:M,inverted:L}:{binarized:M}}Object.defineProperty(e,"__esModule",{value:!0});var s=r(0),a=8,d=24,n=function(){function o(o,e){this.width=o,this.data=new Uint8ClampedArray(o*e)}return o.prototype.get=function(o,e){return this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r},o}();e.binarize=c},function(o,e,r){"use strict";function t(o,e){for(var r=o^e,t=0;r;)t++,r&=r-1;return t}function c(o,e){return e<<1|o}function s(o){var e=17+4*o.versionNumber,r=k.BitMatrix.createEmpty(e,e);r.setRegion(0,0,9,9,!0),r.setRegion(e-8,0,8,9,!0),r.setRegion(0,e-8,9,8,!0);for(var t=0,c=o.alignmentPatternCenters;t<c.length;t++)for(var s=c[t],a=0,d=o.alignmentPatternCenters;a<d.length;a++){var n=d[a];6===s&&6===n||6===s&&n===e-7||s===e-7&&6===n||r.setRegion(s-2,n-2,5,5,!0)}return r.setRegion(6,9,1,e-17,!0),r.setRegion(9,6,e-17,1,!0),o.versionNumber>6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}function a(o,e,r){for(var t=w[r.dataMask],a=o.height,d=s(e),n=[],l=0,i=0,B=!0,k=a-1;k>0;k-=2){6===k&&k--;for(var u=0;u<a;u++)for(var C=B?a-1-u:u,m=0;m<2;m++){var f=k-m;if(!d.get(f,C)){i++;var P=o.get(f,C);t({y:C,x:f})&&(P=!P),l=c(P,l),8===i&&(n.push(l),i=0,l=0)}}B=!B}return n}function d(o){var e=o.height,r=Math.floor((e-17)/4);if(r<=6)return m.VERSIONS[r-1];for(var s=0,a=5;a>=0;a--)for(var d=e-9;d>=e-11;d--)s=c(o.get(d,a),s);for(var n=0,d=5;d>=0;d--)for(var a=e-9;a>=e-11;a--)n=c(o.get(d,a),n);for(var l,i=1/0,B=0,k=m.VERSIONS;B<k.length;B++){var u=k[B];if(u.infoBits===s||u.infoBits===n)return u;var C=t(s,u.infoBits);C<i&&(l=u,i=C),C=t(n,u.infoBits),C<i&&(l=u,i=C)}return i<=3?l:void 0}function n(o){for(var e=0,r=0;r<=8;r++)6!==r&&(e=c(o.get(r,8),e));for(var s=7;s>=0;s--)6!==s&&(e=c(o.get(8,s),e));for(var a=o.height,d=0,s=a-1;s>=a-7;s--)d=c(o.get(8,s),d);for(var r=a-8;r<a;r++)d=c(o.get(r,8),d);for(var n=1/0,l=null,i=0,B=f;i<B.length;i++){var k=B[i],u=k.bits,C=k.formatInfo;if(u===e||u===d)return C;var m=t(e,u);m<n&&(l=C,n=m),e!==d&&(m=t(d,u))<n&&(l=C,n=m)}return n<=3?l:null}function l(o,e,r){var t=e.errorCorrectionLevels[r],c=[],s=0;if(t.ecBlocks.forEach(function(o){for(var e=0;e<o.numBlocks;e++)c.push({numDataCodewords:o.dataCodewordsPerBlock,codewords:[]}),s+=o.dataCodewordsPerBlock+t.ecCodewordsPerBlock}),o.length<s)return null;o=o.slice(0,s);for(var a=t.ecBlocks[0].dataCodewordsPerBlock,d=0;d<a;d++)for(var n=0,l=c;n<l.length;n++){var i=l[n];i.codewords.push(o.shift())}if(t.ecBlocks.length>1)for(var B=t.ecBlocks[0].numBlocks,k=t.ecBlocks[1].numBlocks,d=0;d<k;d++)c[B+d].codewords.push(o.shift());for(;o.length>0;)for(var u=0,C=c;u<C.length;u++){var i=C[u];i.codewords.push(o.shift())}return c}function i(o){var e=d(o);if(!e)return null;var r=n(o);if(!r)return null;var t=a(o,e,r),c=l(t,e,r.errorCorrectionLevel);if(!c)return null;for(var s=c.reduce(function(o,e){return o+e.numDataCodewords},0),i=new Uint8ClampedArray(s),B=0,k=0,m=c;k<m.length;k++){var f=m[k],w=C.decode(f.codewords,f.codewords.length-f.numDataCodewords);if(!w)return null;for(var P=0;P<f.numDataCodewords;P++)i[B++]=w[P]}try{return u.decode(i,e.versionNumber)}catch(o){return null}}function B(o){if(null==o)return null;var e=i(o);if(e)return e;for(var r=0;r<o.width;r++)for(var t=r+1;t<o.height;t++)o.get(r,t)!==o.get(t,r)&&(o.set(r,t,!o.get(r,t)),o.set(t,r,!o.get(t,r)));return i(o)}Object.defineProperty(e,"__esModule",{value:!0});var k=r(0),u=r(6),C=r(9),m=r(10),f=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],w=[function(o){return(o.y+o.x)%2==0},function(o){return o.y%2==0},function(o){return o.x%3==0},function(o){return(o.y+o.x)%3==0},function(o){return(Math.floor(o.y/2)+Math.floor(o.x/3))%2==0},function(o){return o.x*o.y%2+o.x*o.y%3==0},function(o){return(o.y*o.x%2+o.y*o.x%3)%2==0},function(o){return((o.y+o.x)%2+o.y*o.x%3)%2==0}];e.decode=B},function(o,e,r){"use strict";function t(o,e){for(var r=[],t="",c=[10,12,14][e],s=o.readBits(c);s>=3;){var a=o.readBits(10);if(a>=1e3)throw new Error("Invalid numeric value above 999");var d=Math.floor(a/100),n=Math.floor(a/10)%10,l=a%10;r.push(48+d,48+n,48+l),t+=d.toString()+n.toString()+l.toString(),s-=3}if(2===s){var a=o.readBits(7);if(a>=100)throw new Error("Invalid numeric value above 99");var d=Math.floor(a/10),n=a%10;r.push(48+d,48+n),t+=d.toString()+n.toString()}else if(1===s){var a=o.readBits(4);if(a>=10)throw new Error("Invalid numeric value above 9");r.push(48+a),t+=a.toString()}return{bytes:r,text:t}}function c(o,e){for(var r=[],t="",c=[9,11,13][e],s=o.readBits(c);s>=2;){var a=o.readBits(11),d=Math.floor(a/45),n=a%45;r.push(k[d].charCodeAt(0),k[n].charCodeAt(0)),t+=k[d]+k[n],s-=2}if(1===s){var d=o.readBits(6);r.push(k[d].charCodeAt(0)),t+=k[d]}return{bytes:r,text:t}}function s(o,e){for(var r=[],t="",c=[8,16,16][e],s=o.readBits(c),a=0;a<s;a++){var d=o.readBits(8);r.push(d)}try{t+=decodeURIComponent(r.map(function(o){return"%"+("0"+o.toString(16)).substr(-2)}).join(""))}catch(o){}return{bytes:r,text:t}}function a(o,e){for(var r=[],t="",c=[8,10,12][e],s=o.readBits(c),a=0;a<s;a++){var d=o.readBits(13),n=Math.floor(d/192)<<8|d%192;n+=n<7936?33088:49472,r.push(n>>8,255&n),t+=String.fromCharCode(i.shiftJISTable[n])}return{bytes:r,text:t}}function d(o,e){for(var r=new l.BitStream(o),d=e<=9?0:e<=26?1:2,i={text:"",bytes:[],chunks:[]};r.available()>=4;){var k=r.readBits(4);if(k===B.Terminator)return i;if(k===B.ECI)0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(7)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(14)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(21)}):i.chunks.push({type:n.ECI,assignmentNumber:-1});else if(k===B.Numeric){var u=t(r,d);i.text+=u.text,(w=i.bytes).push.apply(w,u.bytes),i.chunks.push({type:n.Numeric,text:u.text})}else if(k===B.Alphanumeric){var C=c(r,d);i.text+=C.text,(P=i.bytes).push.apply(P,C.bytes),i.chunks.push({type:n.Alphanumeric,text:C.text})}else if(k===B.Byte){var m=s(r,d);i.text+=m.text,(v=i.bytes).push.apply(v,m.bytes),i.chunks.push({type:n.Byte,bytes:m.bytes,text:m.text})}else if(k===B.Kanji){var f=a(r,d);i.text+=f.text,(h=i.bytes).push.apply(h,f.bytes),i.chunks.push({type:n.Kanji,bytes:f.bytes,text:f.text})}}var w,P,v,h}Object.defineProperty(e,"__esModule",{value:!0});var n,l=r(7),i=r(8);!function(o){o.Numeric="numeric",o.Alphanumeric="alphanumeric",o.Byte="byte",o.Kanji="kanji",o.ECI="eci"}(n=e.Mode||(e.Mode={}));var B;!function(o){o[o.Terminator=0]="Terminator",o[o.Numeric=1]="Numeric",o[o.Alphanumeric=2]="Alphanumeric",o[o.Byte=4]="Byte",o[o.Kanji=8]="Kanji",o[o.ECI=7]="ECI"}(B||(B={}));var k=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];e.decode=d},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function o(o){this.byteOffset=0,this.bitOffset=0,this.bytes=o}return o.prototype.readBits=function(o){if(o<1||o>32||o>this.available())throw new Error("Cannot read "+o.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,t=o<r?o:r,c=r-t,s=255>>8-t<<c;e=(this.bytes[this.byteOffset]&s)>>c,o-=t,this.bitOffset+=t,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(o>0){for(;o>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,o-=8;if(o>0){var c=8-o,s=255>>c<<c;e=e<<o|(this.bytes[this.byteOffset]&s)>>c,this.bitOffset+=o}}return e},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();e.BitStream=t},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,
|
|
193
|
+
36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,
|
|
194
|
+
39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,
|
|
195
|
+
59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(o,e,r){"use strict";function t(o,e,r,t){e.degree()<r.degree()&&(w=[r,e],e=w[0],r=w[1]);for(var c=e,s=r,a=o.zero,d=o.one;s.degree()>=t/2;){var n=c,l=a;if(c=s,a=d,c.isZero())return null;s=n;for(var i=o.zero,B=c.getCoefficient(c.degree()),k=o.inverse(B);s.degree()>=c.degree()&&!s.isZero();){var u=s.degree()-c.degree(),C=o.multiply(s.getCoefficient(s.degree()),k);i=i.addOrSubtract(o.buildMonomial(u,C)),s=s.addOrSubtract(c.multiplyByMonomial(u,C))}if(d=i.multiplyPoly(a).addOrSubtract(l),s.degree()>=c.degree())return null}var m=d.getCoefficient(0);if(0===m)return null;var f=o.inverse(m);return[d.multiply(f),s.multiply(f)];var w}function c(o,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var t=new Array(r),c=0,s=1;s<o.size&&c<r;s++)0===e.evaluateAt(s)&&(t[c]=o.inverse(s),c++);return c!==r?null:t}function s(o,e,r){for(var t=r.length,c=new Array(t),s=0;s<t;s++){for(var a=o.inverse(r[s]),n=1,l=0;l<t;l++)s!==l&&(n=o.multiply(n,d.addOrSubtractGF(1,o.multiply(r[l],a))));c[s]=o.multiply(e.evaluateAt(a),o.inverse(n)),0!==o.generatorBase&&(c[s]=o.multiply(c[s],a))}return c}function a(o,e){var r=new Uint8ClampedArray(o.length);r.set(o);for(var a=new d.default(285,256,0),l=new n.default(a,r),i=new Uint8ClampedArray(e),B=!1,k=0;k<e;k++){var u=l.evaluateAt(a.exp(k+a.generatorBase));i[i.length-1-k]=u,0!==u&&(B=!0)}if(!B)return r;var C=new n.default(a,i),m=t(a,a.buildMonomial(e,1),C,e);if(null===m)return null;var f=c(a,m[0]);if(null==f)return null;for(var w=s(a,m[1],f),P=0;P<f.length;P++){var v=r.length-1-a.log(f[P]);if(v<0)return null;r[v]=d.addOrSubtractGF(r[v],w[P])}return r}Object.defineProperty(e,"__esModule",{value:!0});var d=r(1),n=r(2);e.decode=a},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(o,e,r){"use strict";function t(o,e,r,t){var c=o.x-e.x+r.x-t.x,s=o.y-e.y+r.y-t.y;if(0===c&&0===s)return{a11:e.x-o.x,a12:e.y-o.y,a13:0,a21:r.x-e.x,a22:r.y-e.y,a23:0,a31:o.x,a32:o.y,a33:1};var a=e.x-r.x,d=t.x-r.x,n=e.y-r.y,l=t.y-r.y,i=a*l-d*n,B=(c*l-d*s)/i,k=(a*s-c*n)/i;return{a11:e.x-o.x+B*e.x,a12:e.y-o.y+B*e.y,a13:B,a21:t.x-o.x+k*t.x,a22:t.y-o.y+k*t.y,a23:k,a31:o.x,a32:o.y,a33:1}}function c(o,e,r,c){var s=t(o,e,r,c);return{a11:s.a22*s.a33-s.a23*s.a32,a12:s.a13*s.a32-s.a12*s.a33,a13:s.a12*s.a23-s.a13*s.a22,a21:s.a23*s.a31-s.a21*s.a33,a22:s.a11*s.a33-s.a13*s.a31,a23:s.a13*s.a21-s.a11*s.a23,a31:s.a21*s.a32-s.a22*s.a31,a32:s.a12*s.a31-s.a11*s.a32,a33:s.a11*s.a22-s.a12*s.a21}}function s(o,e){return{a11:o.a11*e.a11+o.a21*e.a12+o.a31*e.a13,a12:o.a12*e.a11+o.a22*e.a12+o.a32*e.a13,a13:o.a13*e.a11+o.a23*e.a12+o.a33*e.a13,a21:o.a11*e.a21+o.a21*e.a22+o.a31*e.a23,a22:o.a12*e.a21+o.a22*e.a22+o.a32*e.a23,a23:o.a13*e.a21+o.a23*e.a22+o.a33*e.a23,a31:o.a11*e.a31+o.a21*e.a32+o.a31*e.a33,a32:o.a12*e.a31+o.a22*e.a32+o.a32*e.a33,a33:o.a13*e.a31+o.a23*e.a32+o.a33*e.a33}}function a(o,e){for(var r=c({x:3.5,y:3.5},{x:e.dimension-3.5,y:3.5},{x:e.dimension-6.5,y:e.dimension-6.5},{x:3.5,y:e.dimension-3.5}),a=t(e.topLeft,e.topRight,e.alignmentPattern,e.bottomLeft),n=s(a,r),l=d.BitMatrix.createEmpty(e.dimension,e.dimension),i=function(o,e){var r=n.a13*o+n.a23*e+n.a33;return{x:(n.a11*o+n.a21*e+n.a31)/r,y:(n.a12*o+n.a22*e+n.a32)/r}},B=0;B<e.dimension;B++)for(var k=0;k<e.dimension;k++){var u=k+.5,C=B+.5,m=i(u,C);l.set(k,B,o.get(Math.floor(m.x),Math.floor(m.y)))}return{matrix:l,mappingFunction:i}}Object.defineProperty(e,"__esModule",{value:!0});var d=r(0);e.extract=a},function(o,e,r){"use strict";function t(o){return o.reduce(function(o,e){return o+e})}function c(o,e,r){var t,c,s,a=C(o,e),d=C(e,r),n=C(o,r);return d>=a&&d>=n?(l=[e,o,r],t=l[0],c=l[1],s=l[2]):n>=d&&n>=a?(i=[o,e,r],t=i[0],c=i[1],s=i[2]):(B=[o,r,e],t=B[0],c=B[1],s=B[2]),(s.x-c.x)*(t.y-c.y)-(s.y-c.y)*(t.x-c.x)<0&&(k=[s,t],t=k[0],s=k[1]),{bottomLeft:t,topLeft:c,topRight:s};var l,i,B,k}function s(o,e,r,c){var s=(t(d(o,r,c,5))/7+t(d(o,e,c,5))/7+t(d(r,o,c,5))/7+t(d(e,o,c,5))/7)/4;if(s<1)throw new Error("Invalid module size");var a=Math.round(C(o,e)/s),n=Math.round(C(o,r)/s),l=Math.floor((a+n)/2)+7;switch(l%4){case 0:l++;break;case 2:l--}return{dimension:l,moduleSize:s}}function a(o,e,r,t){var c,s,a,d,n=[{x:Math.floor(o.x),y:Math.floor(o.y)}],l=Math.abs(e.y-o.y)>Math.abs(e.x-o.x);l?(c=Math.floor(o.y),s=Math.floor(o.x),a=Math.floor(e.y),d=Math.floor(e.x)):(c=Math.floor(o.x),s=Math.floor(o.y),a=Math.floor(e.x),d=Math.floor(e.y));for(var i=Math.abs(a-c),B=Math.abs(d-s),k=Math.floor(-i/2),u=c<a?1:-1,m=s<d?1:-1,f=!0,w=c,P=s;w!==a+u;w+=u){var v=l?P:w,h=l?w:P;if(r.get(v,h)!==f&&(f=!f,n.push({x:v,y:h}),n.length===t+1))break;if((k+=B)>0){if(P===d)break;P+=m,k-=i}}for(var p=[],y=0;y<t;y++)n[y]&&n[y+1]?p.push(C(n[y],n[y+1])):p.push(0);return p}function d(o,e,r,t){var c=e.y-o.y,s=e.x-o.x,d=a(o,e,r,Math.ceil(t/2)),n=a(o,{x:o.x-s,y:o.y-c},r,Math.ceil(t/2)),l=d.shift()+n.shift()-1;return(i=n.concat(l)).concat.apply(i,d);var i}function n(o,e){var r=t(o)/t(e),c=0;return e.forEach(function(e,t){c+=Math.pow(o[t]-e*r,2)}),{averageSize:r,error:c}}function l(o,e,r){try{var t=d(o,{x:-1,y:o.y},r,e.length),c=d(o,{x:o.x,y:-1},r,e.length),s={x:Math.max(0,o.x-o.y)-1,y:Math.max(0,o.y-o.x)-1},a=d(o,s,r,e.length),l={x:Math.min(r.width,o.x+o.y)+1,y:Math.min(r.height,o.y+o.x)+1},i=d(o,l,r,e.length),B=n(t,e),k=n(c,e),u=n(a,e),C=n(i,e),m=Math.sqrt(B.error*B.error+k.error*k.error+u.error*u.error+C.error*C.error),f=(B.averageSize+k.averageSize+u.averageSize+C.averageSize)/4;return m+(Math.pow(B.averageSize-f,2)+Math.pow(k.averageSize-f,2)+Math.pow(u.averageSize-f,2)+Math.pow(C.averageSize-f,2))/f}catch(o){return 1/0}}function i(o){for(var e=[],r=[],a=[],d=[],n=0;n<=o.height;n++)!function(c){for(var s=0,n=!1,l=[0,0,0,0,0],i=-1;i<=o.width;i++)!function(e){var a=o.get(e,c);if(a===n)s++;else{l=[l[1],l[2],l[3],l[4],s],s=1,n=a;var i=t(l)/7,B=Math.abs(l[0]-i)<i&&Math.abs(l[1]-i)<i&&Math.abs(l[2]-3*i)<3*i&&Math.abs(l[3]-i)<i&&Math.abs(l[4]-i)<i&&!a,C=t(l.slice(-3))/3,m=Math.abs(l[2]-C)<C&&Math.abs(l[3]-C)<C&&Math.abs(l[4]-C)<C&&a;if(B){var f=e-l[3]-l[4],w=f-l[2],P={startX:w,endX:f,y:c},v=r.filter(function(o){return w>=o.bottom.startX&&w<=o.bottom.endX||f>=o.bottom.startX&&w<=o.bottom.endX||w<=o.bottom.startX&&f>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<u&&l[2]/(o.bottom.endX-o.bottom.startX)>k});v.length>0?v[0].bottom=P:r.push({top:P,bottom:P})}if(m){var h=e-l[4],p=h-l[3],P={startX:p,y:c,endX:h},v=d.filter(function(o){return p>=o.bottom.startX&&p<=o.bottom.endX||h>=o.bottom.startX&&p<=o.bottom.endX||p<=o.bottom.startX&&h>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<u&&l[2]/(o.bottom.endX-o.bottom.startX)>k});v.length>0?v[0].bottom=P:d.push({top:P,bottom:P})}}}(i);e.push.apply(e,r.filter(function(o){return o.bottom.y!==c&&o.bottom.y-o.top.y>=2})),r=r.filter(function(o){return o.bottom.y===c}),a.push.apply(a,d.filter(function(o){return o.bottom.y!==c})),d=d.filter(function(o){return o.bottom.y===c})}(n);e.push.apply(e,r.filter(function(o){return o.bottom.y-o.top.y>=2})),a.push.apply(a,d);var i=e.filter(function(o){return o.bottom.y-o.top.y>=2}).map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.round(r),Math.round(c))){
|
|
196
|
+
var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],a=t(s)/s.length;return{score:l({x:Math.round(r),y:Math.round(c)},[1,1,3,1,1],o),x:r,y:c,size:a}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}).map(function(o,e,r){if(e>B)return null;var t=r.filter(function(o,r){return e!==r}).map(function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-o.size,2)/o.size,size:e.size}}).sort(function(o,e){return o.score-e.score});if(t.length<2)return null;var c=o.score+t[0].score+t[1].score;return{points:[o].concat(t.slice(0,2)),score:c}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score});if(0===i.length)return null;var m,f,w=c(i[0].points[0],i[0].points[1],i[0].points[2]),P=w.topRight,v=w.topLeft,h=w.bottomLeft;try{L=s(v,P,h,o),m=L.dimension,f=L.moduleSize}catch(o){return null}var p={x:P.x-v.x+h.x,y:P.y-v.y+h.y},y=(C(v,h)+C(v,P))/2/f,b=1-3/y,g={x:v.x+b*(p.x-v.x),y:v.y+b*(p.y-v.y)},x=a.map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.floor(r),Math.floor(c))){var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1];t(s);return{x:r,y:c,score:l({x:Math.floor(r),y:Math.floor(c)},[1,1,1],o)+C({x:r,y:c},g)}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}),M=y>=15&&x.length?x[0]:g;return{alignmentPattern:{x:M.x,y:M.y},bottomLeft:{x:h.x,y:h.y},dimension:m,topLeft:{x:v.x,y:v.y},topRight:{x:P.x,y:P.y}};var L}Object.defineProperty(e,"__esModule",{value:!0});var B=4,k=.5,u=1.5,C=function(o,e){return Math.sqrt(Math.pow(e.x-o.x,2)+Math.pow(e.y-o.y,2))};e.locate=i}]).default}),self.addEventListener("message",function(o){var e=jsQR(o.data.data,o.data.width,o.data.height);e?postMessage(e.data):postMessage(null)});`],{type:"application/javascript"}),x=["delay","legacyMode","facingMode"];return _o=(r=t=function(y){u(g,y);function g(v){i(this,g);var b=s(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v));return b.els={},b.state={mirrorVideo:!1},b.initiate=b.initiate.bind(b),b.initiateLegacyMode=b.initiateLegacyMode.bind(b),b.check=b.check.bind(b),b.handleVideo=b.handleVideo.bind(b),b.handleLoadStart=b.handleLoadStart.bind(b),b.handleInputChange=b.handleInputChange.bind(b),b.clearComponent=b.clearComponent.bind(b),b.handleReaderLoad=b.handleReaderLoad.bind(b),b.openImageDialog=b.openImageDialog.bind(b),b.handleWorkerMessage=b.handleWorkerMessage.bind(b),b.setRefFactory=b.setRefFactory.bind(b),b}return n(g,[{key:"componentDidMount",value:function(){this.worker=new Worker(URL.createObjectURL(m)),this.worker.onmessage=this.handleWorkerMessage,this.props.legacyMode?this.initiateLegacyMode():this.initiate()}},{key:"componentWillReceiveProps",value:function(b){var E=d(this.props,b,x),D=!0,w=!1,p=void 0;try{for(var C=E[Symbol.iterator](),S;!(D=(S=C.next()).done);D=!0){var A=S.value;if(A=="facingMode"){this.clearComponent(),this.initiate(b);break}else if(A=="delay")this.props.delay==!1&&!b.legacyMode&&(this.timeout=setTimeout(this.check,b.delay)),b.delay==!1&&clearTimeout(this.timeout);else if(A=="legacyMode"){this.props.legacyMode&&!b.legacyMode?(this.clearComponent(),this.initiate(b)):(this.clearComponent(),this.componentDidUpdate=this.initiateLegacyMode);break}}}catch(j){w=!0,p=j}finally{try{!D&&C.return&&C.return()}finally{if(w)throw p}}}},{key:"shouldComponentUpdate",value:function(b,E){if(E!==this.state)return!0;var D=d(this.props,b,x);return D.length>0}},{key:"componentWillUnmount",value:function(){this.worker&&(this.worker.terminate(),this.worker=void 0),this.clearComponent()}},{key:"clearComponent",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this.stopCamera&&this.stopCamera(),this.reader&&this.reader.removeEventListener("load",this.handleReaderLoad),this.els.img&&this.els.img.removeEventListener("load",this.check)}},{key:"initiate",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,E=b.onError,D=b.facingMode,w=/firefox/i.test(navigator.userAgent),p={};navigator.mediaDevices&&typeof navigator.mediaDevices.getSupportedConstraints=="function"&&(p=navigator.mediaDevices.getSupportedConstraints());var C={};p.facingMode&&(C.facingMode={ideal:D}),p.frameRate&&(C.frameRate={ideal:25,min:10});var S=p.facingMode||w?Promise.resolve(b.constraints||C):l(D).then(function(A){return Object.assign({},{deviceId:A},b.constraints)});S.then(function(A){return navigator.mediaDevices.getUserMedia({video:A})}).then(this.handleVideo).catch(E)}},{key:"handleVideo",value:function(b){var E=this.els.preview,D=this.props.facingMode;if(!E)return setTimeout(this.handleVideo,200,b);(E||{}).srcObject!==void 0?E.srcObject=b:E.mozSrcObject!==void 0?E.mozSrcObject=b:window.URL.createObjectURL?E.src=window.URL.createObjectURL(b):window.webkitURL?E.src=window.webkitURL.createObjectURL(b):E.src=b,E.playsInline=!0;var w=b.getTracks()[0];this.stopCamera=w.stop.bind(w),E.addEventListener("loadstart",this.handleLoadStart),this.setState({mirrorVideo:D=="user",streamLabel:w.label})}},{key:"handleLoadStart",value:function(){var b=this.props,E=b.delay,D=b.onLoad,w=this.state,p=w.mirrorVideo,C=w.streamLabel,S=this.els.preview;S.play(),typeof D=="function"&&D({mirrorVideo:p,streamLabel:C}),typeof E=="number"&&(this.timeout=setTimeout(this.check,E)),S.removeEventListener("loadstart",this.handleLoadStart)}},{key:"check",value:function(){var b=this.props,E=b.legacyMode,D=b.resolution,w=b.delay,p=this.els,C=p.preview,S=p.canvas,A=p.img,j=Math.floor(E?A.naturalWidth:C.videoWidth),V=Math.floor(E?A.naturalHeight:C.videoHeight),z=0,L=0;if(E){var F=j>V?j:V,W=D/F;V=W*V,j=W*j,S.width=j,S.height=V}else{var R=j<V?j:V,O=D/R;V=O*V,j=O*j,L=(V-D)/2*-1,z=(j-D)/2*-1,S.width=D,S.height=D}var N=C&&C.readyState===C.HAVE_ENOUGH_DATA;if(E||N){var G=S.getContext("2d");G.drawImage(E?A:C,z,L,j,V);var J=G.getImageData(0,0,S.width,S.height);this.worker.postMessage(J)}else this.timeout=setTimeout(this.check,w)}},{key:"handleWorkerMessage",value:function(b){var E=this.props,D=E.onScan,w=E.legacyMode,p=E.delay,C=b.data;D(C||null),!w&&typeof p=="number"&&this.worker&&(this.timeout=setTimeout(this.check,p))}},{key:"initiateLegacyMode",value:function(){this.reader=new FileReader,this.reader.addEventListener("load",this.handleReaderLoad),this.els.img.addEventListener("load",this.check,!1),this.componentDidUpdate=void 0,typeof this.props.onLoad=="function"&&this.props.onLoad()}},{key:"handleInputChange",value:function(b){var E=b.target.files[0];this.reader.readAsDataURL(E)}},{key:"handleReaderLoad",value:function(b){this.els.img.src=b.target.result}},{key:"openImageDialog",value:function(){this.els.input.click()}},{key:"setRefFactory",value:function(b){var E=this;return function(D){E.els[b]=D}}},{key:"render",value:function(){var b=this.props,E=b.style,D=b.className,w=b.onImageLoad,p=b.legacyMode,C=b.showViewFinder;b.facingMode;var S={overflow:"hidden",position:"relative",width:"100%",paddingTop:"100%"},A={display:"none"},j={top:0,left:0,display:"block",position:"absolute",overflow:"hidden",width:"100%",height:"100%"},V=e({},j,{objectFit:"cover",transform:this.state.mirrorVideo?"scaleX(-1)":void 0}),z=e({},j,{objectFit:"scale-down"}),L={top:0,left:0,zIndex:1,boxSizing:"border-box",border:"50px solid rgba(0, 0, 0, 0.3)",boxShadow:"inset 0 0 0 5px rgba(255, 0, 0, 0.5)",position:"absolute",width:"100%",height:"100%"};return a.createElement("section",{className:D,style:E},a.createElement("section",{style:S},!p&&C?a.createElement("div",{style:L}):null,p?a.createElement("input",{style:A,type:"file",accept:"image/*",ref:this.setRefFactory("input"),onChange:this.handleInputChange}):null,p?a.createElement("img",{style:z,ref:this.setRefFactory("img"),onLoad:w}):a.createElement("video",{style:V,ref:this.setRefFactory("preview")}),a.createElement("canvas",{style:A,ref:this.setRefFactory("canvas")})))}}]),g}(f),t.propTypes={onScan:o.func.isRequired,onError:o.func.isRequired,onLoad:o.func,onImageLoad:o.func,delay:o.oneOfType([o.number,o.bool]),facingMode:o.oneOf(["user","environment"]),legacyMode:o.bool,resolution:o.number,showViewFinder:o.bool,style:o.any,className:o.string,constraints:o.object},t.defaultProps={delay:500,resolution:600,facingMode:"environment",showViewFinder:!0,constraints:null},r),_o}var Y0;function d5(){return Y0||(Y0=1,function(e){function n(L){return L&&typeof L=="object"&&"default"in L?L.default:L}Object.defineProperty(e,"__esModule",{value:!0});var t=n(Bu()),r=Et(),i=n(r),s=n(n1()),u=fa(),a=$d,f=n(Vd()),o=Er();const c=({size:L=200,data:F="",ecl:W="L"})=>i.createElement(f,{value:F,size:L,level:W});var l,d,h;(l=e.ReadStatus||(e.ReadStatus={})).canceled="canceled",l.success="success",(d=e.PlayStatus||(e.PlayStatus={})).canceled="canceled",d.success="success",(h=e.SupportedResult||(e.SupportedResult={})).UR_BYTES="bytes",h.UR_CRYPTO_HDKEY="crypto-hdkey",h.UR_CRYPTO_ACCOUNT="crypto-account",h.UR_ETH_SIGN_REQUEST="eth-sign-request",h.UR_ETH_SIGNATURE="eth-signature",h.UR_CRYPTO_MULTI_ACCOUNTS="crypto-multi-accounts",h.UR_SOL_SIGN_REQUEST="sol-sign-request",h.UR_SOL_SIGNATURE="sol-signature",h.UR_APTOS_SIGN_REQUEST="aptos-sign-request",h.UR_APTOS_SIGNATURE="aptos-signature",h.UR_ARWEAVE_SIGN_REQUEST="arweave-sign-request",h.UR_ARWEAVE_SIGNATURE="arweave-signature",h.UR_ARWEAVE_CRYPTO_ACCOUNT="arweave-crypto-account",h.UR_COSMOS_SIGN_REQUEST="cosmos-sign-request",h.UR_COSMOS_SIGNATURE="cosmos-signature";const m={minWidth:"16rem",height:"3rem",background:"#784FFE",borderColor:"grey",borderRadius:"8px",borderWidth:1,color:"white",outline:"none",margin:2},x=L=>{const{onClick:F,children:W}=L;return i.createElement("button",{onClick:F,style:m},W)},y=L=>i.createElement("div",{style:{width:"100%",marginTop:"1rem",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"center"}},L.children),g=new o.UR(Buffer.from("NO DATA","utf-8"));class v extends Error{constructor(F){super(F),Object.setPrototypeOf(this,v.prototype)}}const b=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"block",shapeRendering:"auto",animationPlayState:"running",animationDelay:"0s"},width:"200px",height:"200px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},i.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:"#9b9b9b",strokeWidth:"7",r:"35",strokeDasharray:"164.93361431346415 56.97787143782138",style:{animationPlayState:"running",animationDelay:"0s"}},i.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1",style:{animationPlayState:"running",animationDelay:"0s"}}))),E=i.lazy(()=>new Promise(function(L){L(function(F){if(F&&F.__esModule)return F;var W={};return F&&Object.keys(F).forEach(function(R){var O=Object.getOwnPropertyDescriptor(F,R);Object.defineProperty(W,R,O.get?O:{enumerable:!0,get:function(){return F[R]}})}),W.default=F,W}(l5()))}));let D="";const w=L=>i.createElement("div",{style:{paddingLeft:"1rem"}},i.createElement("div",{style:{display:"flex",alignItems:"center",padding:0}},i.createElement("img",{style:{display:"inline-block"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAKAAAAACc9ikyAAAD+ElEQVRYCb1WbWiNURw/Z9caY5SyrKzVhuUtZcYoJdZ8kMywGClG+WK+eJsPmogNKfZBxBbmAyPyEgvtA8UUX9inbVeb8AGTd8t2j9/vdp91ntPzPPd57h3/+t1z/uf/ev7nnP9zhUiMsmH2BOgF9ifmIjmrVpgrDWuScxfMeqUW2EqiB2sjgrlJTDsNZmHACqyP2xJzGcyq2iU4E7kTzFVw7fEw+Qbou9bn94K7FCIlgNFh6I7y0E8oAQ9/NlEBuAig71ifv4VspM1iiJnHHsGZyPohjmdzxzeu79acsyFJm8UQMnzbfONmUIvnsRTG4g3DWAM8B24DM4GkaR88WMGcxkYtQr2h+wl8niYPPJ0Aix+AU2Cu8UlmASRe0gHA1L1JYaLUBEPToc7v1hx7XdISTc/3tAiaXs+uE3K2ZdJaQE/MnLdDzvvhm3ij2wDTkc4vj3lLx/gmji7tqmL6voYNcRze17zwv4CemNuc/xt8NSoqsau5OfoD2TSAxDb+EXDTNdeX0igeHYSCaajzfGoWZWDidU90O84XWIZuYw4EvwDT0OK527GG8VUPfcuO4wPAsVvqt/MolIYDbsSmxLPUiS+gEpgBOH1Z+7HOC90MMBFXYnn0jM35S8hDrtZJCFgBluZEHB/bIWenc6XVV1Qo/MCxCoM2ucUi0lwubX4YfBng1TKvQ1426MWY1NSolAs94jJKVoYaOh2DbqGw3ddQqutqkGcooEG5rmHM+8DvMNZs7KVuUaiUWOUjOO0k9HIjSpzOq1RRv0xgus2jnTkONhxbKsZ4A7gFlMbWRChddMLtZ4v3O0YiojZvq8rkEbwCrOai278Dkw98BxYBLYD+anaB58sREzerosiAaMExjCbvl0KpooAV6HIx2IN1Bk8FTgF6cLDiCLCTk86z8mlKSCzBbr6S90NSooumiXYm8MjBgG+3KbZehXGygw6XmAQrEU0C77TETxII3ofA6zrrZR+PIAvoBrhTEnvAPIBJZAIdQLzS8r8BkxGTNqq5AxLHocQY8iYxOIKuwCu4Sxkr8B7g5bLoIiYMTjoExAtOvTqASYiORtmmJCohxRfyBv3GeqkVnDJWgLQQaAV45iw3k5oKsAMySb9UDcVaKuduUYWiX1xDObPJI/AHDBXhBsnvwiBZCXChAuA/nWdkQLxg0bJGOf8/tDtG9fxNKqNfisX4ZKamC/Gw/Zzs9e9GiL1Q5n0ICn6A5gQJ5KY7C4Ig33s90WibdXOsr3ud7wsoshcwiaAUPfegRm76syHgBylINaIX0c1hout8FecB/i/Uy23OedvZP/4Z5cDzSeAnYAZnK54P/BcahygHAD5dNh12tilAIPoLD0OnpwCV000AAAAASUVORK5CYII=",alt:""}),i.createElement("div",{style:{fontSize:"1.25rem",fontWeight:"bold",marginLeft:"1rem"}},"Sync Keystone")),i.createElement("ul",{style:{marginTop:"2rem",listStyleType:"none",padding:0,fontSize:"1rem"}},i.createElement("li",{style:{marginBottom:"0.75rem"}},"1. Turn on your Keystone hardware device"),i.createElement("li",{style:{marginBottom:"0.75rem"}},`2. Select your "${L.walletMode}" as your Watch-only wallet(Companion App)`),i.createElement("li",{style:{marginBottom:"0.75rem"}}," ",'3. Press the "Scan Keystone" button and scan the QR Code displayed on your Keystone hardware wallet'),i.createElement("li",{style:{marginBottom:"0.75rem"}}," ","4. Select account and check your watch-only wallet")),i.createElement("div",{style:{marginBottom:"1rem"}},i.createElement("a",{style:{marginTop:"1.25rem",color:"#784FFE",textDecoration:"none"},href:L.link,target:"_blank",rel:"noreferrer"},"Click here to view detailed tutorial")),i.createElement(x,{onClick:L.onButtonClick},"Sync Keystone")),p={overlay:{zIndex:999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",borderRadius:"10px",width:"37rem",marginRight:"-50%",transform:"translate(-50%, -50%)",postion:"relative"}};var C=()=>{const[L,{read:F,play:W,cameraReady:R}]=(()=>{const O=r.useMemo(()=>new u.EventEmitter,[]),[N,G]=r.useState(!1),[J,Z]=r.useState(""),[$,M]=r.useState(""),[U,q]=r.useState(null),[P,{play:k}]=(()=>{const[fe,he]=r.useState(g),[I,_]=r.useState(!1),[B,T]=r.useState(100),[X,ee]=r.useState(400),[te,ce]=r.useState(!1),[K,Q]=r.useState(null),[ie,ae]=r.useState(null),se=r.useMemo(()=>new o.UREncoder(fe,X),[fe]),[le,ue]=r.useState(se.nextPart()),de=r.useMemo(()=>new u.EventEmitter,[]);return r.useEffect(()=>{se.cbor.toString("hex")!==g.cbor.toString("hex")&&_(!0)},[se]),r.useEffect(()=>{const pe=a.interval(B).subscribe(()=>{ue(se.nextPart())});return()=>{pe.unsubscribe()}},[B,se]),[I?i.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},K&&i.createElement("p",{style:{fontSize:"1.25rem",fontWeight:"bold"}},K),i.createElement(c,{size:288,data:le}),ie&&i.createElement("p",{style:{fontSize:"1rem",textAlign:"center"}},ie),i.createElement(y,null,i.createElement(x,{onClick:()=>{de.emit("finish",!0)}},te?"Scan Keystone":"Finish"))):i.createElement("div",null),{play:(pe,ge)=>new Promise(xe=>{he(pe),ge&&(ge.refreshSpeed&&T(ge.refreshSpeed),ge.hasNext&&ce(ge.hasNext),ge.title&&Q(ge.title),ge.description&&ae(ge.description),ge.maxFragmentLength&&ee(ge.maxFragmentLength)),de.once("finish",()=>{he(g),_(!1),T(100),xe(e.PlayStatus.success)})})}]})(),[H,{read:Y,cameraReady:ne}]=(()=>{const[fe,he]=r.useState(!1),[I,_]=r.useState([]),[B,T]=r.useState(new o.URDecoder),[X,ee]=r.useState(""),te=r.useMemo(()=>new u.EventEmitter,[]),[ce,K]=r.useState(null),[Q,ie]=r.useState(0),[ae,se]=r.useState(null),le=()=>{T(new o.URDecoder),ee("")};return[i.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},ce&&i.createElement("p",{style:{fontSize:"1.25rem",fontWeight:"bold"}},ce),ae&&i.createElement("p",{style:{fontSize:"1rem",textAlign:"center"}},ae),i.createElement(r.Suspense,{fallback:i.createElement("div",null)},i.createElement("div",{style:{position:"relative",width:"100%"}},fe?null:i.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},i.createElement(b,null)),i.createElement(E,{onScan:ue=>{ue&&(he(!0),((de,pe)=>{try{if(B.isComplete()){const ge=B.resultUR();let xe=!1;if(I.forEach(st=>{if(st===ge.type)return xe=!0,void te.emit("read",{result:ge,status:"success"})}),!xe)throw new v(`received ur type ${ge.type}, but expected [${I.join(",")}]`)}else B.receivePart(de),ie(B.getProgress())}catch(ge){ee(ge instanceof v?pe:ge.message)}})(ue,D))},delay:100,style:{width:"100%"},onError:ue=>{ee(ue.message)}}))),i.createElement("p",null,(100*Q).toFixed(0)," %"),X&&i.createElement("p",{style:{color:"red",fontSize:"1rem"}},X),i.createElement(y,null,i.createElement(x,{onClick:()=>{te.emit("read",{status:"canceled"})}},"Close"),X&&i.createElement(x,{onClick:()=>{le()}},"Retry"))),{read:(ue,de)=>new Promise(pe=>{_(ue),de&&(de.title&&K(de.title),de.description&&se(de.description),D=de.URTypeErrorMessage?de.URTypeErrorMessage:""),te.once("read",ge=>{le(),pe(ge)})}),cameraReady:fe}]})(),re=()=>{q(null),M(""),Z(""),G(!1)};var oe;return[i.createElement(s,{isOpen:N,style:p},i.createElement("div",{onClick:()=>{O.emit("close"),re()}},i.createElement("img",{style:{position:"absolute",top:"1rem",right:"1rem"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAADAAAAAATDPpdAAAAmklEQVQoFZWRwQ3DIAwAa4brJPBP80hnaD/lD5N0iYxEfRVBxBGRwsvgO2PZklJaReTrvX/eTk7O+VVKuTtgDRYVPyOeHAysAFV40jCGEB69aHN/YSRZGK4JVuKu5/DrToDoqnI9tOh4vXJ2Qlc96kSY2lTfWs0m9DCT0r3MSkUrXR9r3eBCNbuDrY/td23z7Vg3wQhGIgcD+wPGY2fPvHuWagAAAABJRU5ErkJggg=="})),i.createElement("div",{style:{width:"35rem",padding:18,flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#002237"}},(oe=U)==="initial"?i.createElement(w,{walletMode:J,link:$,onButtonClick:()=>{q("read")}}):oe==="read"?H:oe==="play"?P:null)),{play:(fe,he)=>new Promise(I=>{O.once("close",()=>{I(e.PlayStatus.canceled)}),G(!0),q("play"),k(fe,he).then(()=>{re(),I(e.PlayStatus.success)})}),read:async(fe,he)=>new Promise(I=>{O.once("close",()=>{re(),I({status:e.ReadStatus.canceled})}),he.renderInitial?(Z(he.renderInitial.walletMode),M(he.renderInitial.link),q("initial"),G(!0),Y(fe,he).then(_=>{re(),I(_)})):(q("read"),G(!0),Y(fe,he).then(_=>{re(),I(_)}))}),cameraReady:ne}]})();return z(F,W,R),L};let S,A,j,V=!1;const z=(L,F,W)=>{V=!0,S=L,A=F,j=W};e.default={bootstrap:()=>{const L=document.getElementsByTagName("body").item(0),F=document.createElement("div");F.id="kv_sdk_container",L.appendChild(F),s.setAppElement("#kv_sdk_container"),t.render(i.createElement(C),F)},getSdk:()=>{if(V)return{read:S,play:A,cameraReady:j};throw new Error("SDK is not initialized")}}}(Ji)),Ji}var X0;function h5(){return X0||(X0=1,Qi.exports=d5()),Qi.exports}var Bo={},wo={},Zt={},So={},Qr={exports:{}},er={},Q0;function ka(){if(Q0)return er;Q0=1,Object.defineProperty(er,"__esModule",{value:!0}),er.DataItem=void 0;let e=class{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 er.DataItem=e,er}var p5=Qr.exports,J0;function g5(){return J0||(J0=1,function(e){(function(n,t){e.exports?e.exports=t():n.CBOR=t()})(p5,function(){const{DataItem:n}=ka();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})}(Qr)),Qr.exports}var Z0;function Ne(){return Z0||(Z0=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=g5();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=ka();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return t.DataItem}})}(So)),So}var ec;function oa(){if(ec)return Zt;ec=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.patchTags=void 0;const e=Ne(),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 Zt.patchTags=t,Zt}var lt={},tc;function Fe(){if(tc)return lt;tc=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.RegistryTypes=lt.RegistryType=void 0;let e=class{constructor(t,r){this.type=t,this.tag=r,this.getTag=()=>this.tag,this.getType=()=>this.type}};return lt.RegistryType=e,lt.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_ACCOUNT:new e("crypto-account",311),CRYPTO_MULTI_ACCOUNTS:new e("crypto-multi-accounts",1103)},lt}var Eo={},rc;function Ta(){return rc||(rc=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")}}(Eo)),Eo}var nc;function ic(){if(nc)return wo;nc=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=oa(),n=Fe(),t=Ta(),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)),wo}var tr={},Po={},rr={},oc;function Ge(){if(oc)return rr;oc=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.RegistryItem=void 0;const e=Er(),n=Ne();let t=class{constructor(){this.toCBOR=()=>{if(this.toDataItem()===void 0)throw new Error(`#[ur-registry][RegistryItem][fn.toCBOR]: registry ${this.getRegistryType()}'s method toDataItem returns undefined`);return(0,n.encodeDataItem)(this.toDataItem())},this.toUR=()=>new e.UR(this.toCBOR(),this.getRegistryType().getType()),this.toUREncoder=(i,s,u)=>{const a=this.toUR();return new e.UREncoder(a,i,s,u)}}};return rr.RegistryItem=t,rr}var ac;function aa(){return ac||(ac=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CryptoCoinInfo=e.Network=e.Type=void 0;const n=Ne(),t=Ge(),r=Fe();var i;(function(f){f.type="1",f.network="2"})(i||(i={}));var s;(function(f){f[f.bitcoin=0]="bitcoin"})(s=e.Type||(e.Type={}));var u;(function(f){f[f.mainnet=0]="mainnet",f[f.testnet=1]="testnet"})(u=e.Network||(e.Network={}));class a extends t.RegistryItem{constructor(o,c){super(),this.type=o,this.network=c,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_COIN_INFO,this.getType=()=>this.type||s.bitcoin,this.getNetwork=()=>this.network||u.mainnet,this.toDataItem=()=>{const l={};return this.type&&(l[i.type]=this.type),this.network&&(l[i.network]=this.network),new n.DataItem(l)}}}e.CryptoCoinInfo=a,a.fromDataItem=f=>{const o=f.getData(),c=o[i.type],l=o[i.network];return new a(c,l)},a.fromCBOR=f=>{const o=(0,n.decodeToDataItem)(f);return a.fromDataItem(o)}}(Po)),Po}var nr={},ir={},sc;function sa(){if(sc)return ir;sc=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.PathComponent=void 0;let e=class zf{constructor(t){if(this.getIndex=()=>this.index,this.isWildcard=()=>this.wildcard,this.isHardened=()=>this.hardened,this.index=t.index,this.hardened=t.hardened,this.index!==void 0?this.wildcard=!1:this.wildcard=!0,this.index&&(this.index&zf.HARDENED_BIT)!==0)throw new Error(`#[ur-registry][PathComponent][fn.constructor]: Invalid index ${this.index} - most significant bit cannot be set`)}};return ir.PathComponent=e,e.HARDENED_BIT=2147483648,ir}var cc;function ca(){if(cc)return nr;cc=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.CryptoKeypath=void 0;const e=Ne(),n=sa(),t=Ge(),r=Fe();var i;(function(u){u[u.components=1]="components",u[u.source_fingerprint=2]="source_fingerprint",u[u.depth=3]="depth"})(i||(i={}));let s=class extends t.RegistryItem{constructor(a=[],f,o){super(),this.components=a,this.sourceFingerprint=f,this.depth=o,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_KEYPATH,this.getPath=()=>this.components.length===0?void 0:this.components.map(l=>`${l.isWildcard()?"*":l.getIndex()}${l.isHardened()?"'":""}`).join("/"),this.getComponents=()=>this.components,this.getSourceFingerprint=()=>this.sourceFingerprint,this.getDepth=()=>this.depth,this.toDataItem=()=>{const c={},l=[];return this.components&&this.components.forEach(d=>{d.isWildcard()?l.push([]):l.push(d.getIndex()),l.push(d.isHardened())}),c[i.components]=l,this.sourceFingerprint&&(c[i.source_fingerprint]=this.sourceFingerprint.readUInt32BE(0)),this.depth!==void 0&&(c[i.depth]=this.depth),new e.DataItem(c)}}};return nr.CryptoKeypath=s,s.fromDataItem=u=>{const a=u.getData(),f=[],o=a[i.components];if(o)for(let h=0;h<o.length;h+=2){const m=o[h+1],x=o[h];typeof x=="number"?f.push(new n.PathComponent({index:x,hardened:m})):f.push(new n.PathComponent({hardened:m}))}const c=a[i.source_fingerprint];let l;c&&(l=Buffer.alloc(4),l.writeUInt32BE(c,0));const d=a[i.depth];return new s(f,l,d)},s.fromCBOR=u=>{const a=(0,e.decodeToDataItem)(u);return s.fromDataItem(a)},nr}var uc;function wr(){if(uc)return tr;uc=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.CryptoHDKey=void 0;const e=Wc(),n=aa(),t=ca(),r=Ne(),i=Ge(),s=Fe();var u;(function(f){f[f.is_master=1]="is_master",f[f.is_private=2]="is_private",f[f.key_data=3]="key_data",f[f.chain_code=4]="chain_code",f[f.use_info=5]="use_info",f[f.origin=6]="origin",f[f.children=7]="children",f[f.parent_fingerprint=8]="parent_fingerprint",f[f.name=9]="name",f[f.note=10]="note"})(u||(u={}));let a=class extends i.RegistryItem{constructor(o){super(),this.isECKey=()=>!1,this.getKey=()=>this.key,this.getChainCode=()=>this.chainCode,this.isMaster=()=>this.master,this.isPrivateKey=()=>!!this.privateKey,this.getUseInfo=()=>this.useInfo,this.getOrigin=()=>this.origin,this.getChildren=()=>this.children,this.getParentFingerprint=()=>this.parentFingerprint,this.getName=()=>this.name,this.getNote=()=>this.note,this.getBip32Key=()=>{var c,l,d;let h,m,x=0,y=Buffer.alloc(4).fill(0);if(this.isMaster())h=Buffer.from("0488ADE4","hex"),m=0,x=0;else{m=((c=this.getOrigin())===null||c===void 0?void 0:c.getComponents().length)||((l=this.getOrigin())===null||l===void 0?void 0:l.getDepth());const D=(d=this.getOrigin())===null||d===void 0?void 0:d.getComponents(),w=D[D.length-1];w&&(x=w.isHardened()?w.getIndex()+2147483648:w.getIndex(),this.getParentFingerprint()&&(y=this.getParentFingerprint())),this.isPrivateKey()?h=Buffer.from("0488ADE4","hex"):h=Buffer.from("0488B21E","hex")}const g=Buffer.alloc(1);g.writeUInt8(m,0);const v=Buffer.alloc(4);v.writeUInt32BE(x,0);const b=this.getChainCode(),E=this.getKey();return(0,e.encode)(Buffer.concat([h,g,y,v,b,E]))},this.getRegistryType=()=>s.RegistryTypes.CRYPTO_HDKEY,this.getOutputDescriptorContent=()=>{var c,l,d,h,m,x,y;let g="";return this.getOrigin()&&!((c=this.getOrigin())===null||c===void 0)&&c.getSourceFingerprint()&&!((l=this.getOrigin())===null||l===void 0)&&l.getPath()&&(g+=`${(h=(d=this.getOrigin())===null||d===void 0?void 0:d.getSourceFingerprint())===null||h===void 0?void 0:h.toString("hex")}/${(m=this.getOrigin())===null||m===void 0?void 0:m.getPath()}`),g+=this.getBip32Key(),this.getChildren()&&!((x=this.getChildren())===null||x===void 0)&&x.getPath()&&(g+=`/${(y=this.getChildren())===null||y===void 0?void 0:y.getPath()}`),g},this.setupMasterKey=c=>{this.master=!0,this.key=c.key,this.chainCode=c.chainCode},this.setupDeriveKey=c=>{this.master=!1,this.privateKey=c.isPrivateKey,this.key=c.key,this.chainCode=c.chainCode,this.useInfo=c.useInfo,this.origin=c.origin,this.children=c.children,this.parentFingerprint=c.parentFingerprint,this.name=c.name,this.note=c.note},this.toDataItem=()=>{const c={};if(this.master)c[u.is_master]=!0,c[u.key_data]=this.key,c[u.chain_code]=this.chainCode;else{if(this.privateKey!==void 0&&(c[u.is_private]=this.privateKey),c[u.key_data]=this.key,this.chainCode&&(c[u.chain_code]=this.chainCode),this.useInfo){const l=this.useInfo.toDataItem();l.setTag(this.useInfo.getRegistryType().getTag()),c[u.use_info]=l}if(this.origin){const l=this.origin.toDataItem();l.setTag(this.origin.getRegistryType().getTag()),c[u.origin]=l}if(this.children){const l=this.children.toDataItem();l.setTag(this.children.getRegistryType().getTag()),c[u.children]=l}this.parentFingerprint&&(c[u.parent_fingerprint]=this.parentFingerprint.readUInt32BE(0)),this.name!==void 0&&(c[u.name]=this.name),this.note!==void 0&&(c[u.note]=this.note)}return new r.DataItem(c)},o.isMaster?this.setupMasterKey(o):this.setupDeriveKey(o)}};return tr.CryptoHDKey=a,a.fromDataItem=f=>{const o=f.getData(),c=!!o[u.is_master],l=o[u.is_private],d=o[u.key_data],h=o[u.chain_code],m=o[u.use_info]?n.CryptoCoinInfo.fromDataItem(o[u.use_info]):void 0,x=o[u.origin]?t.CryptoKeypath.fromDataItem(o[u.origin]):void 0,y=o[u.children]?t.CryptoKeypath.fromDataItem(o[u.children]):void 0,g=o[u.parent_fingerprint];let v;g&&(v=Buffer.alloc(4),v.writeUInt32BE(g,0));const b=o[u.name],E=o[u.note];return new a({isMaster:c,isPrivateKey:l,key:d,chainCode:h,useInfo:m,origin:x,children:y,parentFingerprint:v,name:b,note:E})},a.fromCBOR=f=>{const o=(0,r.decodeToDataItem)(f);return a.fromDataItem(o)},tr}var or={},fc;function nn(){if(fc)return or;fc=1,Object.defineProperty(or,"__esModule",{value:!0}),or.CryptoECKey=void 0;const e=Ne(),n=Ge(),t=Fe();var r;(function(s){s[s.curve=1]="curve",s[s.private=2]="private",s[s.data=3]="data"})(r||(r={}));let i=class extends n.RegistryItem{constructor(u){super(),this.isECKey=()=>!0,this.getCurve=()=>this.curve||0,this.isPrivateKey=()=>this.privateKey||!1,this.getData=()=>this.data,this.getRegistryType=()=>t.RegistryTypes.CRYPTO_ECKEY,this.toDataItem=()=>{const a={};return this.curve&&(a[r.curve]=this.curve),this.privateKey!==void 0&&(a[r.private]=this.privateKey),a[r.data]=this.data,new e.DataItem(a)},this.getOutputDescriptorContent=()=>this.data.toString("hex"),this.data=u.data,this.curve=u.curve,this.privateKey=u.privateKey||void 0}};return or.CryptoECKey=i,i.fromDataItem=s=>{const u=s.getData(),a=u[r.curve],f=u[r.private],o=u[r.data];if(!o)throw new Error(`#[ur-registry][CryptoECKey][fn.fromDataItem]: decoded [dataItem][#data.data] is undefined: ${s}`);return new i({data:o,curve:a,privateKey:f})},i.fromCBOR=s=>{const u=(0,e.decodeToDataItem)(s);return i.fromDataItem(u)},or}var ar={},lc;function y5(){if(lc)return ar;lc=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.Bytes=void 0;const e=Ne(),n=Ge(),t=Fe();let r=class extends n.RegistryItem{constructor(s){super(),this.bytes=s,this.getRegistryType=()=>t.RegistryTypes.BYTES,this.getData=()=>this.bytes,this.toDataItem=()=>new e.DataItem(this.bytes)}};return ar.Bytes=r,r.fromDataItem=i=>{const s=i.getData();if(!s)throw new Error(`#[ur-registry][Bytes][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${i}`);return new r(s)},r.fromCBOR=i=>{const s=(0,e.decodeToDataItem)(i);return r.fromDataItem(s)},ar}var sr={},cr={},dc;function ua(){if(dc)return cr;dc=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.MultiKey=void 0;const e=nn(),n=wr(),t=ka(),r=Ge(),i=Fe();var s;(function(a){a[a.threshold=1]="threshold",a[a.keys=2]="keys"})(s||(s={}));let u=class extends r.RegistryItem{constructor(f,o){super(),this.threshold=f,this.keys=o,this.getThreshold=()=>this.threshold,this.getKeys=()=>this.keys,this.toDataItem=()=>{const c={};c[s.threshold]=this.threshold;const l=this.keys.map(d=>{const h=d.toDataItem();return h.setTag(d.getRegistryType().getTag()),h});return c[s.keys]=l,new t.DataItem(c)},this.getOutputDescriptorContent=()=>[this.getThreshold(),this.keys.map(c=>c.getOutputDescriptorContent()).join(",")].join(",")}};return cr.MultiKey=u,u.fromDataItem=a=>{const f=a.getData(),o=f[s.threshold],c=f[s.keys],l=[];return c.forEach(d=>{d.getTag()===i.RegistryTypes.CRYPTO_HDKEY.getTag()?l.push(n.CryptoHDKey.fromDataItem(d)):d.getTag()===i.RegistryTypes.CRYPTO_ECKEY.getTag()&&l.push(e.CryptoECKey.fromDataItem(d))}),new u(o,l)},cr}var hc;function pc(){if(hc)return sr;hc=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.CryptoOutput=void 0;const e=nn(),n=wr(),t=Ne(),r=ua(),i=Ge(),s=Fe(),u=Ta();let a=class extends i.RegistryItem{constructor(o,c){super(),this.scriptExpressions=o,this.cryptoKey=c,this.getRegistryType=()=>s.RegistryTypes.CRYPTO_OUTPUT,this.getCryptoKey=()=>this.cryptoKey,this.getHDKey=()=>{if(this.cryptoKey instanceof n.CryptoHDKey)return this.cryptoKey},this.getECKey=()=>{if(this.cryptoKey instanceof e.CryptoECKey)return this.cryptoKey},this.getMultiKey=()=>{if(this.cryptoKey instanceof r.MultiKey)return this.cryptoKey},this.getScriptExpressions=()=>this.scriptExpressions,this._toOutputDescriptor=l=>l>=this.scriptExpressions.length?this.cryptoKey.getOutputDescriptorContent():`${this.scriptExpressions[l].getExpression()}(${this._toOutputDescriptor(l+1)})`,this.toString=()=>this._toOutputDescriptor(0),this.toDataItem=()=>{let l=this.cryptoKey.toDataItem();return(this.cryptoKey instanceof e.CryptoECKey||this.cryptoKey instanceof n.CryptoHDKey)&&l.setTag(this.cryptoKey.getRegistryType().getTag()),[...this.scriptExpressions].reverse().forEach(h=>{const m=h.getTag();l.getTag()===void 0?l.setTag(m):l=new t.DataItem(l,m)}),l}}};return sr.CryptoOutput=a,a.fromDataItem=f=>{const o=[];let c=f;for(;;){let h=c.getTag();const m=u.ScriptExpression.fromTag(h);if(m)if(o.push(m),c.getData()instanceof t.DataItem)c=c.getData(),h=c.getTag();else break;else break}const l=o.length;if(l>0&&(o[l-1].getExpression()===u.ScriptExpressions.MULTISIG.getExpression()||o[l-1].getExpression()===u.ScriptExpressions.SORTED_MULTISIG.getExpression())){const h=r.MultiKey.fromDataItem(c);return new a(o,h)}if(c.getTag()===s.RegistryTypes.CRYPTO_HDKEY.getTag()){const h=n.CryptoHDKey.fromDataItem(c);return new a(o,h)}else{const h=e.CryptoECKey.fromDataItem(c);return new a(o,h)}},a.fromCBOR=f=>{const o=(0,t.decodeToDataItem)(f);return a.fromDataItem(o)},sr}var ur={},gc;function yc(){if(gc)return ur;gc=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.CryptoPSBT=void 0;const e=Ne(),n=Ge(),t=Fe();let r=class extends n.RegistryItem{constructor(s){super(),this.psbt=s,this.getRegistryType=()=>t.RegistryTypes.CRYPTO_PSBT,this.getPSBT=()=>this.psbt,this.toDataItem=()=>new e.DataItem(this.psbt)}};return ur.CryptoPSBT=r,r.fromDataItem=i=>{const s=i.getData();if(!s)throw new Error(`#[ur-registry][CryptoPSBT][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${i}`);return new r(s)},r.fromCBOR=i=>{const s=(0,e.decodeToDataItem)(i);return r.fromDataItem(s)},ur}var fr={},mc;function vc(){if(mc)return fr;mc=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.CryptoAccount=void 0;const e=Ra(),n=Ne(),t=Ge(),r=Fe();var i;(function(u){u[u.masterFingerprint=1]="masterFingerprint",u[u.outputDescriptors=2]="outputDescriptors"})(i||(i={}));let s=class extends t.RegistryItem{constructor(a,f){super(),this.masterFingerprint=a,this.outputDescriptors=f,this.getRegistryType=()=>r.RegistryTypes.CRYPTO_ACCOUNT,this.getMasterFingerprint=()=>this.masterFingerprint,this.getOutputDescriptors=()=>this.outputDescriptors,this.toDataItem=()=>{const o={};return this.masterFingerprint&&(o[i.masterFingerprint]=this.masterFingerprint.readUInt32BE(0)),this.outputDescriptors&&(o[i.outputDescriptors]=this.outputDescriptors.map(c=>c.toDataItem())),new n.DataItem(o)}}};return fr.CryptoAccount=s,s.fromDataItem=u=>{const a=u.getData(),f=Buffer.alloc(4),o=a[i.masterFingerprint];o&&f.writeUInt32BE(o,0);const l=a[i.outputDescriptors].map(d=>e.CryptoOutput.fromDataItem(d));return new s(f,l)},s.fromCBOR=u=>{const a=(0,n.decodeToDataItem)(u);return s.fromDataItem(a)},fr}var lr={},dr={},xc;function Gf(){if(xc)return dr;xc=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.UnknownURTypeError=void 0;class e extends Error{constructor(t){super(t)}}return dr.UnknownURTypeError=e,dr}var bc;function Cc(){if(bc)return lr;bc=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.URRegistryDecoder=void 0;const e=Er(),n=Ra(),t=Fe(),r=Gf();class i extends e.URDecoder{constructor(){super(...arguments),this.resultRegistryType=()=>{const u=this.resultUR();switch(u.type){case t.RegistryTypes.BYTES.getType():return n.Bytes.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_HDKEY.getType():return n.CryptoHDKey.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_KEYPATH.getType():return n.CryptoKeypath.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_COIN_INFO.getType():return n.CryptoCoinInfo.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_ECKEY.getType():return n.CryptoECKey.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_OUTPUT.getType():return n.CryptoOutput.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_PSBT.getType():return n.CryptoPSBT.fromCBOR(u.cbor);case t.RegistryTypes.CRYPTO_ACCOUNT.getType():return n.CryptoAccount.fromCBOR(u.cbor);default:throw new r.UnknownURTypeError(`#[ur-registry][Decoder][fn.resultRegistryType]: registry type ${u.type} is not supported now`)}}}}return lr.URRegistryDecoder=i,lr}var hr={},_c;function Bc(){if(_c)return hr;_c=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.CryptoMultiAccounts=void 0;const e=Fe(),n=wr(),t=Ge(),r=Ne();var i;(function(u){u[u.masterFingerprint=1]="masterFingerprint",u[u.keys=2]="keys",u[u.device=3]="device"})(i||(i={}));let s=class extends t.RegistryItem{constructor(a,f,o){super(),this.masterFingerprint=a,this.keys=f,this.device=o,this.getRegistryType=()=>e.RegistryTypes.CRYPTO_MULTI_ACCOUNTS,this.getMasterFingerprint=()=>this.masterFingerprint,this.getKeys=()=>this.keys,this.getDevice=()=>this.device,this.toDataItem=()=>{const c={};return this.masterFingerprint&&(c[i.masterFingerprint]=this.masterFingerprint.readUInt32BE(0)),this.keys&&(c[i.keys]=this.keys.map(l=>{const d=l.toDataItem();return d.setTag(l.getRegistryType().getTag()),d})),this.device&&(c[i.device]=this.device),new r.DataItem(c)}}};return hr.CryptoMultiAccounts=s,s.fromDataItem=u=>{const a=u.getData(),f=Buffer.alloc(4),o=a[i.masterFingerprint];o&&f.writeUInt32BE(o,0);const l=a[i.keys].map(h=>n.CryptoHDKey.fromDataItem(h)),d=a[i.device];return new s(f,l,d)},s.fromCBOR=u=>{const a=(0,r.decodeToDataItem)(u);return s.fromDataItem(a)},hr}var ko={},wc;function m5(){return wc||(wc=1,Object.defineProperty(ko,"__esModule",{value:!0})),ko}var Sc;function Ra(){return Sc||(Sc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Buffer=e.extend=e.PathComponent=e.ScriptExpressions=e.MultiKey=e.CryptoPSBT=e.CryptoOutput=e.CryptoECKey=e.CryptoCoinInfoNetwork=e.CryptoCoinInfoType=e.CryptoCoinInfo=e.CryptoKeypath=e.CryptoMultiAccounts=e.CryptoHDKey=e.CryptoAccount=e.Bytes=e.URRegistryDecoder=e.DataItem=void 0;const n=Tc;ic();const t=wt();Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});const r=wr();Object.defineProperty(e,"CryptoHDKey",{enumerable:!0,get:function(){return r.CryptoHDKey}});const i=ca();Object.defineProperty(e,"CryptoKeypath",{enumerable:!0,get:function(){return i.CryptoKeypath}});const s=aa();Object.defineProperty(e,"CryptoCoinInfo",{enumerable:!0,get:function(){return s.CryptoCoinInfo}}),Object.defineProperty(e,"CryptoCoinInfoType",{enumerable:!0,get:function(){return s.Type}}),Object.defineProperty(e,"CryptoCoinInfoNetwork",{enumerable:!0,get:function(){return s.Network}});const u=nn();Object.defineProperty(e,"CryptoECKey",{enumerable:!0,get:function(){return u.CryptoECKey}});const a=y5();Object.defineProperty(e,"Bytes",{enumerable:!0,get:function(){return a.Bytes}});const f=pc();Object.defineProperty(e,"CryptoOutput",{enumerable:!0,get:function(){return f.CryptoOutput}});const o=yc();Object.defineProperty(e,"CryptoPSBT",{enumerable:!0,get:function(){return o.CryptoPSBT}});const c=vc();Object.defineProperty(e,"CryptoAccount",{enumerable:!0,get:function(){return c.CryptoAccount}});const l=Cc();Object.defineProperty(e,"URRegistryDecoder",{enumerable:!0,get:function(){return l.URRegistryDecoder}});const d=ua();Object.defineProperty(e,"MultiKey",{enumerable:!0,get:function(){return d.MultiKey}});const h=Ta();Object.defineProperty(e,"ScriptExpressions",{enumerable:!0,get:function(){return h.ScriptExpressions}});const m=sa();Object.defineProperty(e,"PathComponent",{enumerable:!0,get:function(){return m.PathComponent}});const x=Ge(),y=Fe(),g=Ne();var v=Ne();Object.defineProperty(e,"DataItem",{enumerable:!0,get:function(){return v.DataItem}});const b=oa(),E=Bc();Object.defineProperty(e,"CryptoMultiAccounts",{enumerable:!0,get:function(){return E.CryptoMultiAccounts}});const D={URRegistryDecoder:l.URRegistryDecoder,Bytes:a.Bytes,CryptoAccount:c.CryptoAccount,CryptoHDKey:r.CryptoHDKey,CryptoMultiAccounts:E.CryptoMultiAccounts,CryptoKeypath:i.CryptoKeypath,CryptoCoinInfo:s.CryptoCoinInfo,CryptoCoinInfoType:s.Type,CryptoCoinInfoNetwork:s.Network,CryptoECKey:u.CryptoECKey,CryptoOutput:f.CryptoOutput,CryptoPSBT:o.CryptoPSBT,MultiKey:d.MultiKey,ScriptExpressions:h.ScriptExpressions,PathComponent:m.PathComponent},w={addReader:g.addReader,addSemanticDecode:g.addSemanticDecode,addSemanticEncode:g.addSemanticEncode,addWriter:g.addWriter,patchTags:b.patchTags},p={RegistryTypes:y.RegistryTypes,RegistryItem:x.RegistryItem,RegistryType:y.RegistryType,decodeToDataItem:g.decodeToDataItem,encodeDataItem:g.encodeDataItem,cbor:w};e.extend=p,(0,n.__exportStar)(Gf(),e),(0,n.__exportStar)(Cc(),e),(0,n.__exportStar)(Ne(),e),(0,n.__exportStar)(vc(),e),(0,n.__exportStar)(yc(),e),(0,n.__exportStar)(wr(),e),(0,n.__exportStar)(Bc(),e),(0,n.__exportStar)(pc(),e),(0,n.__exportStar)(aa(),e),(0,n.__exportStar)(nn(),e),(0,n.__exportStar)(ua(),e),(0,n.__exportStar)(ca(),e),(0,n.__exportStar)(ic(),e),(0,n.__exportStar)(sa(),e),(0,n.__exportStar)(Ge(),e),(0,n.__exportStar)(Fe(),e),(0,n.__exportStar)(m5(),e),(0,n.__exportStar)(oa(),e),e.default=D}(Bo)),Bo}var Hr,v5=new Uint8Array(16);function Wf(){if(!Hr&&(Hr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Hr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hr(v5)}const x5=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function gn(e){return typeof e=="string"&&x5.test(e)}var Se=[];for(var To=0;To<256;++To)Se.push((To+256).toString(16).substr(1));function yn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Se[e[n+0]]+Se[e[n+1]]+Se[e[n+2]]+Se[e[n+3]]+"-"+Se[e[n+4]]+Se[e[n+5]]+"-"+Se[e[n+6]]+Se[e[n+7]]+"-"+Se[e[n+8]]+Se[e[n+9]]+"-"+Se[e[n+10]]+Se[e[n+11]]+Se[e[n+12]]+Se[e[n+13]]+Se[e[n+14]]+Se[e[n+15]]).toLowerCase();if(!gn(t))throw TypeError("Stringified UUID is invalid");return t}var Ec,Ro,Io=0,Do=0;function b5(e,n,t){var r=n&&t||0,i=n||new Array(16);e=e||{};var s=e.node||Ec,u=e.clockseq!==void 0?e.clockseq:Ro;if(s==null||u==null){var a=e.random||(e.rng||Wf)();s==null&&(s=Ec=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),u==null&&(u=Ro=(a[6]<<8|a[7])&16383)}var f=e.msecs!==void 0?e.msecs:Date.now(),o=e.nsecs!==void 0?e.nsecs:Do+1,c=f-Io+(o-Do)/1e4;if(c<0&&e.clockseq===void 0&&(u=u+1&16383),(c<0||f>Io)&&e.nsecs===void 0&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Io=f,Do=o,Ro=u,f+=122192928e5;var l=((f&268435455)*1e4+o)%4294967296;i[r++]=l>>>24&255,i[r++]=l>>>16&255,i[r++]=l>>>8&255,i[r++]=l&255;var d=f/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=d&255,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=u>>>8|128,i[r++]=u&255;for(var h=0;h<6;++h)i[r+h]=s[h];return n||yn(i)}function Vf(e){if(!gn(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function C5(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var _5="6ba7b810-9dad-11d1-80b4-00c04fd430c8",B5="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Yf(e,n,t){function r(i,s,u,a){if(typeof i=="string"&&(i=C5(i)),typeof s=="string"&&(s=Vf(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+i.length);if(f.set(s),f.set(i,s.length),f=t(f),f[6]=f[6]&15|n,f[8]=f[8]&63|128,u){a=a||0;for(var o=0;o<16;++o)u[a+o]=f[o];return u}return yn(f)}try{r.name=e}catch{}return r.DNS=_5,r.URL=B5,r}function w5(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return S5(E5(P5(e),e.length*8))}function S5(e){for(var n=[],t=e.length*32,r="0123456789abcdef",i=0;i<t;i+=8){var s=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(s>>>4&15)+r.charAt(s&15),16);n.push(u)}return n}function Xf(e){return(e+64>>>9<<4)+14+1}function E5(e,n){e[n>>5]|=128<<n%32,e[Xf(n)-1]=n;for(var t=1732584193,r=-271733879,i=-1732584194,s=271733878,u=0;u<e.length;u+=16){var a=t,f=r,o=i,c=s;t=Oe(t,r,i,s,e[u],7,-680876936),s=Oe(s,t,r,i,e[u+1],12,-389564586),i=Oe(i,s,t,r,e[u+2],17,606105819),r=Oe(r,i,s,t,e[u+3],22,-1044525330),t=Oe(t,r,i,s,e[u+4],7,-176418897),s=Oe(s,t,r,i,e[u+5],12,1200080426),i=Oe(i,s,t,r,e[u+6],17,-1473231341),r=Oe(r,i,s,t,e[u+7],22,-45705983),t=Oe(t,r,i,s,e[u+8],7,1770035416),s=Oe(s,t,r,i,e[u+9],12,-1958414417),i=Oe(i,s,t,r,e[u+10],17,-42063),r=Oe(r,i,s,t,e[u+11],22,-1990404162),t=Oe(t,r,i,s,e[u+12],7,1804603682),s=Oe(s,t,r,i,e[u+13],12,-40341101),i=Oe(i,s,t,r,e[u+14],17,-1502002290),r=Oe(r,i,s,t,e[u+15],22,1236535329),t=Ae(t,r,i,s,e[u+1],5,-165796510),s=Ae(s,t,r,i,e[u+6],9,-1069501632),i=Ae(i,s,t,r,e[u+11],14,643717713),r=Ae(r,i,s,t,e[u],20,-373897302),t=Ae(t,r,i,s,e[u+5],5,-701558691),s=Ae(s,t,r,i,e[u+10],9,38016083),i=Ae(i,s,t,r,e[u+15],14,-660478335),r=Ae(r,i,s,t,e[u+4],20,-405537848),t=Ae(t,r,i,s,e[u+9],5,568446438),s=Ae(s,t,r,i,e[u+14],9,-1019803690),i=Ae(i,s,t,r,e[u+3],14,-187363961),r=Ae(r,i,s,t,e[u+8],20,1163531501),t=Ae(t,r,i,s,e[u+13],5,-1444681467),s=Ae(s,t,r,i,e[u+2],9,-51403784),i=Ae(i,s,t,r,e[u+7],14,1735328473),r=Ae(r,i,s,t,e[u+12],20,-1926607734),t=Me(t,r,i,s,e[u+5],4,-378558),s=Me(s,t,r,i,e[u+8],11,-2022574463),i=Me(i,s,t,r,e[u+11],16,1839030562),r=Me(r,i,s,t,e[u+14],23,-35309556),t=Me(t,r,i,s,e[u+1],4,-1530992060),s=Me(s,t,r,i,e[u+4],11,1272893353),i=Me(i,s,t,r,e[u+7],16,-155497632),r=Me(r,i,s,t,e[u+10],23,-1094730640),t=Me(t,r,i,s,e[u+13],4,681279174),s=Me(s,t,r,i,e[u],11,-358537222),i=Me(i,s,t,r,e[u+3],16,-722521979),r=Me(r,i,s,t,e[u+6],23,76029189),t=Me(t,r,i,s,e[u+9],4,-640364487),s=Me(s,t,r,i,e[u+12],11,-421815835),i=Me(i,s,t,r,e[u+15],16,530742520),r=Me(r,i,s,t,e[u+2],23,-995338651),t=Ue(t,r,i,s,e[u],6,-198630844),s=Ue(s,t,r,i,e[u+7],10,1126891415),i=Ue(i,s,t,r,e[u+14],15,-1416354905),r=Ue(r,i,s,t,e[u+5],21,-57434055),t=Ue(t,r,i,s,e[u+12],6,1700485571),s=Ue(s,t,r,i,e[u+3],10,-1894986606),i=Ue(i,s,t,r,e[u+10],15,-1051523),r=Ue(r,i,s,t,e[u+1],21,-2054922799),t=Ue(t,r,i,s,e[u+8],6,1873313359),s=Ue(s,t,r,i,e[u+15],10,-30611744),i=Ue(i,s,t,r,e[u+6],15,-1560198380),r=Ue(r,i,s,t,e[u+13],21,1309151649),t=Ue(t,r,i,s,e[u+4],6,-145523070),s=Ue(s,t,r,i,e[u+11],10,-1120210379),i=Ue(i,s,t,r,e[u+2],15,718787259),r=Ue(r,i,s,t,e[u+9],21,-343485551),t=nt(t,a),r=nt(r,f),i=nt(i,o),s=nt(s,c)}return[t,r,i,s]}function P5(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Xf(n)),r=0;r<n;r+=8)t[r>>5]|=(e[r/8]&255)<<r%32;return t}function nt(e,n){var t=(e&65535)+(n&65535),r=(e>>16)+(n>>16)+(t>>16);return r<<16|t&65535}function k5(e,n){return e<<n|e>>>32-n}function mn(e,n,t,r,i,s){return nt(k5(nt(nt(n,e),nt(r,s)),i),t)}function Oe(e,n,t,r,i,s,u){return mn(n&t|~n&r,e,n,i,s,u)}function Ae(e,n,t,r,i,s,u){return mn(n&r|t&~r,e,n,i,s,u)}function Me(e,n,t,r,i,s,u){return mn(n^t^r,e,n,i,s,u)}function Ue(e,n,t,r,i,s,u){return mn(t^(n|~r),e,n,i,s,u)}var T5=Yf("v3",48,w5);function R5(e,n,t){e=e||{};var r=e.random||(e.rng||Wf)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return yn(r)}function I5(e,n,t,r){switch(e){case 0:return n&t^~n&r;case 1:return n^t^r;case 2:return n&t^n&r^t&r;case 3:return n^t^r}}function Oo(e,n){return e<<n|e>>>32-n}function D5(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),a=new Array(u),f=0;f<u;++f){for(var o=new Uint32Array(16),c=0;c<16;++c)o[c]=e[f*64+c*4]<<24|e[f*64+c*4+1]<<16|e[f*64+c*4+2]<<8|e[f*64+c*4+3];a[f]=o}a[u-1][14]=(e.length-1)*8/Math.pow(2,32),a[u-1][14]=Math.floor(a[u-1][14]),a[u-1][15]=(e.length-1)*8&4294967295;for(var l=0;l<u;++l){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[l][h];for(var m=16;m<80;++m)d[m]=Oo(d[m-3]^d[m-8]^d[m-14]^d[m-16],1);for(var x=t[0],y=t[1],g=t[2],v=t[3],b=t[4],E=0;E<80;++E){var D=Math.floor(E/20),w=Oo(x,5)+I5(D,y,g,v)+b+n[D]+d[E]>>>0;b=v,v=g,g=Oo(y,30)>>>0,y=x,x=w}t[0]=t[0]+x>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+g>>>0,t[3]=t[3]+v>>>0,t[4]=t[4]+b>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var O5=Yf("v5",80,D5);const A5="00000000-0000-0000-0000-000000000000";function M5(e){if(!gn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const U5=Object.freeze(Object.defineProperty({__proto__:null,NIL:A5,parse:Vf,stringify:yn,v1:b5,v3:T5,v4:R5,v5:O5,validate:gn,version:M5},Symbol.toStringTag,{value:"Module"})),L5=St(U5);var Pc;function j5(){if(Pc)return At;Pc=1;function e(l){return l&&typeof l=="object"&&"default"in l?l.default:l}Object.defineProperty(At,"__esModule",{value:!0});var n=$l(),t=h5(),r=e(t),i=Ra(),s=e(t2()),u=L5,a=r2;class f{constructor(){if(this.keystoneSDK=void 0,this.readCryptoMultiAccounts=async()=>{const d=await this.keystoneSDK.read([t.SupportedResult.UR_CRYPTO_MULTI_ACCOUNTS],{title:"Sync Keystone",description:"Please scan the QR code displayed on your Keystone",renderInitial:{walletMode:"Solflare",link:"https://keyst.one/defi"},URTypeErrorMessage:"The scanned QR code is not the sync code from the Keystone hardware wallet. Please verify the code and try again"});if(d.status===t.ReadStatus.success){const{result:h}=d;return i.CryptoMultiAccounts.fromCBOR(h.cbor)}throw new Error("Reading canceled")},this.requestSignature=async(d,h,m)=>{if(await this.keystoneSDK.play(d.toUR(),{hasNext:!0,title:h,description:m,maxFragmentLength:400})===t.PlayStatus.canceled)throw new Error("#ktek_error[play-cancel]: play canceled");const x=await this.keystoneSDK.read([t.SupportedResult.UR_SOL_SIGNATURE],{title:"Scan Keystone",description:"Please scan the QR code displayed on your Keystone"});if(x.status===t.ReadStatus.canceled)throw new Error("#ktek_error[read-cancel]: read signature canceled");return n.SolSignature.fromCBOR(x.result.cbor)},f.instance)return f.instance;r.bootstrap(),this.keystoneSDK=r.getSdk(),f.instance=this}}class o{constructor(){this.getInteraction=()=>{throw new Error("KeystoneError#invalid_extends: method getInteraction not implemented, please extend BaseKeyring by overwriting this method.")},this.type="QR Hardware Wallet Device",this.requestSignature=async(d,h,m,x)=>{const y=await this.getInteraction().requestSignature(h,m,x),g=y.getRequestId(),v=y.getSignature();if(g&&u.stringify(g)!==d)throw new Error("KeystoneError#invalid_data: read signature error: mismatched requestId");return v},this.getName=()=>this.name,this.keys=[],this.name="QR Hardware",this.initialized=!1,this.device="",this.xfp=""}async readKeyring(){const d=await this.getInteraction().readCryptoMultiAccounts();this.syncKeyring(d)}syncKeyring(d){var h;const m=d.getKeys();this.device=d.getDevice(),this.xfp=(h=d.getKeys()[0].getOrigin().getSourceFingerprint())===null||h===void 0?void 0:h.toString("hex"),this.name=d.getKeys()[0].getName(),this.keys=m.map((x,y)=>({hdPath:x.getOrigin().getPath(),pubKey:s.encode(x.getKey()),index:y})),this.initialized=!0}syncKeyringData({xfp:d,keys:h,name:m="QR Hardware",device:x}){this.xfp=d,this.name=m,this.keys=h,this.device=x,this.initialized=!0}getAccounts(){return this.initialized?this.keys:[]}async signTransaction(d,h){return await this._getSignature(d,Buffer.from(h),n.SignType.Transaction)}async signMessage(d,h){return await this._getSignature(d,Buffer.from(h),n.SignType.Message)}async createSignature(d,h){try{const m=a.Message.from(h);if(a.Transaction.populate(m,[]))return this._getSignature(d,Buffer.from(h),n.SignType.Transaction)}catch(m){console.error(m)}return this.signMessage(d,h)}async _getSignature(d,h,m){const x=u.v4(),y=this.getAccounts().find(v=>v.pubKey==d),g=n.SolSignRequest.constructSOLRequest(h,y.hdPath,this.xfp,m,x);return this.requestSignature(x,g,"Scan with your Keystone",'After your Keystone has signed this message, click on "Scan Keystone" to receive the signature')}}o.type="QR Hardware Wallet Device";class c extends o{constructor(){super(),this.getInteraction=()=>new f}static getEmptyKeyring(){return new c}}return c.type=o.type,At.BaseKeyring=o,At.DefaultKeyring=c,At}var kc;function N5(){return kc||(kc=1,vn.exports=j5()),vn.exports}var F5=N5();const ah=l2({__proto__:null},[F5]);export{ah as i};
|